diff options
author | Haoyi Li <haoyi@haoyi-mbp.corp.dropbox.com> | 2014-11-26 00:44:45 -0800 |
---|---|---|
committer | Haoyi Li <haoyi@haoyi-mbp.corp.dropbox.com> | 2014-11-26 00:44:45 -0800 |
commit | f2f03076c55939e454b8e3ce71408c1fd9cd1994 (patch) | |
tree | ce3b70765a84549c73e198b667548516f4b8b1ec /src/main/resources | |
download | hands-on-scala-js-f2f03076c55939e454b8e3ce71408c1fd9cd1994.tar.gz hands-on-scala-js-f2f03076c55939e454b8e3ce71408c1fd9cd1994.tar.bz2 hands-on-scala-js-f2f03076c55939e454b8e3ce71408c1fd9cd1994.zip |
Squashed 'examples/workbench-example-app/' content from commit ab2adb3
git-subtree-dir: examples/workbench-example-app
git-subtree-split: ab2adb3d7eef35deee9685236f5aac4f06c2241c
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/index-dev.html | 19 | ||||
-rw-r--r-- | src/main/resources/index-opt.html | 18 |
2 files changed, 37 insertions, 0 deletions
diff --git a/src/main/resources/index-dev.html b/src/main/resources/index-dev.html new file mode 100644 index 0000000..3c03bc1 --- /dev/null +++ b/src/main/resources/index-dev.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> + <title>Example Scala.js application</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> +</head> +<body style="margin: 0px"> + +<div> + <canvas style="display: block" id="canvas" width="255" height="255"/> +</div> + +<script type="text/javascript" src="../example-fastopt.js"></script> +<script type="text/javascript" src="/workbench.js"></script> +<script> + ScalaJSExample().main(document.getElementById('canvas')); +</script> +</body> +</html> diff --git a/src/main/resources/index-opt.html b/src/main/resources/index-opt.html new file mode 100644 index 0000000..4f1f784 --- /dev/null +++ b/src/main/resources/index-opt.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> + <title>Example Scala.js application</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> +</head> +<body style="margin: 0px"> + +<div> + <canvas style="display: block" id="canvas" width="255" height="255"/> +</div> + +<script type="text/javascript" src="../example-opt.js"></script> +<script> + ScalaJSExample().main(document.getElementById('canvas')); +</script> +</body> +</html> |