summaryrefslogtreecommitdiff
path: root/book/index.tw
diff options
context:
space:
mode:
Diffstat (limited to 'book/index.tw')
-rw-r--r--book/index.tw11
1 files changed, 5 insertions, 6 deletions
diff --git a/book/index.tw b/book/index.tw
index db27d24..4dcea2d 100644
--- a/book/index.tw
+++ b/book/index.tw
@@ -2,22 +2,21 @@
@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*/", false)
+ @hl.ref("examples/src/main/scala/Example.scala", "/*example*/", indented=false)
@div(cls:="pure-u-1 pure-u-md-11-24")
- @canvas(id:="example-canvas", display:="block")
- @script(src:="example-fastopt.js")
- @script("Example().main('example-canvas')")
+ @canvas(id:="canvas1", display:="block")
+ @script("Example().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.
@p
- This book contains something for all levels of experience with Scala.js: beginners can get started with the Introduction and Hands-on tutorial, people who have used it before can skip ahead to the later parts of the tutorial, and even experienced users will find the In-depth Documention useful.
+ This book contains something for all levels of experience with Scala.js: absolute beginners can get started with the Introduction and Hands-on tutorial, people who have used it before can skip ahead to the later parts of the tutorial, building a canvas app or dynamic HTML page. Intermediate users will find the chapters on cross-publishing a Scala.js library interesting, and even experienced users will find the In-depth Documention useful.
@Book.intro
@Book.gettingStarted
-
+ @Book.canvasApp