diff --git a/static/js/playground.js b/static/js/playground.js index 887a52b..6447d1d 100644 --- a/static/js/playground.js +++ b/static/js/playground.js @@ -22,7 +22,7 @@ var playground = { return false; } if (config.embed) { - $("#editorDiv").parent().height($(window).height() - 35 - $(".footer").height()); + $("#editorDiv").parent().height($(window).height() - 33 - $(".footer").height()); playground.editor.setSize("auto", ($("#editorDiv").parent().height() * 0.7) + "px"); } else { $("#editor, #output").height($(window).height() - 60 - $(".footer").height()); @@ -191,6 +191,12 @@ var playground = { playground._resize(); }); + if (config.embed) { + playground.editor.setSize("auto", ($("#editorDiv").parent().height() * 0.7) + "px"); + } else { + playground.editor.setSize("auto", $("#editor").height() + "px"); + } + var hovered = false; $(".menu .ico-share").hover(function () { $(".menu .share-panel").show(); @@ -309,13 +315,13 @@ var playground = { return; } - var html = '
' + url + "
"; - html += '' + html += '' + data.shortURL + '
'; - html += '
'; diff --git a/views/playground/index.html b/views/playground/index.html index 105dde7..49aa607 100644 --- a/views/playground/index.html +++ b/views/playground/index.html @@ -61,7 +61,7 @@
- +