(function() {
    var demoArea = document.getElementById('demo-script');
    var sourceCodeArea = document.createElement('pre');
    sourceCodeArea.innerHTML = '<code class="language-javascript">' + demoArea.innerHTML + '<\/code>';
    if (document.querySelector('.container')) {
        document.querySelector('.container').appendChild(sourceCodeArea)
    }
    else {
        document.body.appendChild(sourceCodeArea);
    }

    setTimeout(function() {
        var height = parseInt(window.getComputedStyle(document.body).height) + 40;
        console.log(height);
        window.parent.postMessage(height, '*');
    }, 100);
    
})();
@@ -536,37 +536,8 @@
 40;%0A
-        console.log(height);%0A
     

remove console