diff options
author | Li Haoyi <haoyi@dropbox.com> | 2014-11-02 16:46:59 -0800 |
---|---|---|
committer | Li Haoyi <haoyi@dropbox.com> | 2014-11-02 16:46:59 -0800 |
commit | 78f7ed0303ea42fca8f4e1535ea800d12d2a80eb (patch) | |
tree | 0bded0822fcba8fdea5d6f318603ae324b70dac4 /examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala | |
parent | a33254276bd211bf33be86eeb871ddbfe36fdb47 (diff) | |
download | hands-on-scala-js-78f7ed0303ea42fca8f4e1535ea800d12d2a80eb.tar.gz hands-on-scala-js-78f7ed0303ea42fca8f4e1535ea800d12d2a80eb.tar.bz2 hands-on-scala-js-78f7ed0303ea42fca8f4e1535ea800d12d2a80eb.zip |
tweaked cross-build example
Diffstat (limited to 'examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala')
-rw-r--r-- | examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala b/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala index 40f65f4..ee2f5da 100644 --- a/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala +++ b/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala @@ -1,18 +1,17 @@ -/*js/src/main/scala/simple/Platform.scala*/ +//js/src/main/scala/simple/Platform.scala package simple import scala.scalajs.js object Platform extends js.JSApp{ def format(ts: Long) = { - new js.Date(ts).toLocaleString(); + new js.Date(ts).toLocaleString() } def main() = { - println("simple.js") val times = Seq( System.currentTimeMillis(), - System.currentTimeMillis() + 1000, - System.currentTimeMillis() + 2000 + System.currentTimeMillis() + 1000 ) - println(Simple.formatTimestamps(times)) + println("Running on JS! " + 1.0d) + println(Simple.formatTimes(times)) } }
\ No newline at end of file |