diff options
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/index.html b/index.html new file mode 100644 index 0000000..94606af --- /dev/null +++ b/index.html @@ -0,0 +1,26 @@ +<html> + <head> + <meta charset="utf-8"> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + </head> + <body> + <script type='text/javascript'> + var Module = {}; + fetch('index.wasm') + .then(response => + response.arrayBuffer() + ).then(buffer => { + Module.canvas = document.getElementById("canvas"); + Module.wasmBinary = buffer; + var script = document.createElement('script'); + script.src = "index.js"; + script.onload = function() { + console.log("Emscripten boilerplate loaded.") + } + document.body.appendChild(script); + }); + </script> + <canvas id="canvas"></canvas> + + </body> +</html>
\ No newline at end of file |