summaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorHaoyi Li <haoyi@haoyi-mbp.corp.dropbox.com>2014-11-26 00:44:45 -0800
committerHaoyi Li <haoyi@haoyi-mbp.corp.dropbox.com>2014-11-26 00:44:45 -0800
commitf2f03076c55939e454b8e3ce71408c1fd9cd1994 (patch)
treece3b70765a84549c73e198b667548516f4b8b1ec /src/main/resources
downloadhands-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.html19
-rw-r--r--src/main/resources/index-opt.html18
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>