diff options
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> |