diff options
Diffstat (limited to 'book/index.tw')
-rw-r--r-- | book/index.tw | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/book/index.tw b/book/index.tw index 4dcea2d..3cf8df3 100644 --- a/book/index.tw +++ b/book/index.tw @@ -2,11 +2,11 @@ @sect("Hands-on Scala.js") @div(cls:="pure-g") @div(cls:="pure-u-1 pure-u-md-13-24") - @hl.ref("examples/src/main/scala/Example.scala", "/*example*/", indented=false) + @hl.ref("examples/src/main/scala/Splash.scala", "var x") @div(cls:="pure-u-1 pure-u-md-11-24") @canvas(id:="canvas1", display:="block") - @script("Example().main(document.getElementById('canvas1'))") + @script("Splash().main(document.getElementById('canvas1'))") @p @a("Scala.js", href:="http://www.scala-js.org/") is a compiler that compiles Scala source code to equivalent Javascript code. That lets you write Scala code that you can run in a web browser, or other environments (Chrome plugins, Node.js, etc.) where Javascript is supported. |