Edit on
<p>Trading is <span id="trState"></span></p>
<button type="button" class="btn btn-info" onclick='tradableEmbed.authenticateWithWindow()'>Enable trading</button>
body {
  text-align: center;
  font-size: 22px;
  background: #2B3641;
  color: #FAFAFA;
  top: 35%;
  position: fixed;
  left: 0;
  right: 0;
}
$ = trEmbJQ; // Assign jQuery back to $

tradableEmbed.onEmbedReady(function () {
    if(!tradableEmbed.tradingEnabled) {
        $("#trState").text('not enabled...');
    } else {
        $("#trState").text('enabled!');
        $(".btn").hide();
    }
});
Rerun