Skip to content

Instantly share code, notes, and snippets.

@tyrcho
Last active June 15, 2016 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyrcho/b70c40da900a7dd984496de7ca0eb297 to your computer and use it in GitHub Desktop.
Save tyrcho/b70c40da900a7dd984496de7ca0eb297 to your computer and use it in GitHub Desktop.
Sample to use scala-js-fiddle in full page mode (to hide the source from the users) - http://www.scala-js-fiddle.com/gist/b70c40da900a7dd984496de7ca0eb297
object ScalaJSExample extends js.JSApp{
def main() = {
val document = js.Dynamic.global.document
document.getElementById("logspam").style="display:none"
document.getElementById("sandbox").style="bottom:0; left:0"
document.getElementById("editor").style="display:none"
println("hello")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment