diff options
Diffstat (limited to 'src/index.html')
-rw-r--r-- | src/index.html | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..e48f3af --- /dev/null +++ b/src/index.html @@ -0,0 +1,49 @@ +<!DOCTYPE html> +<html> + +<head> + <meta charset="utf-8"> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <script type='text/javascript'> + window.onload = function () { window.focus(); } + window.onclick = function () { window.focus(); } + </script> + <style> + html, body + { + height: 100%; + margin: 0; + } + body + { + display: flex; + display: -webkit-flex; + -webkit-justify-content: center; + justify-content: center; + -webkit-align-items: center; + align-items: center; + } + canvas + { + display: block; + outline: none; + height: 100%; + max-height: 100%; + width: 100%; + max-width: 100%; + } + </style> +</head> + +<body> + <canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas> + <script type='text/javascript'> + var Module = { + canvas: (function() { return document.getElementById('canvas'); })() + }; + </script> + <script src="index.js"></script> + +</body> + +</html> |