summaryrefslogtreecommitdiff
path: root/src/main/resources/index-opt.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/index-opt.html')
-rw-r--r--src/main/resources/index-opt.html18
1 files changed, 18 insertions, 0 deletions
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>