diff options
author | ZoRo <dos21h@gmail.com> | 2020-11-17 20:06:44 +0000 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2020-11-17 20:06:44 +0000 |
commit | 677a52fe2323769619cd2fd15012a210f7d680e2 (patch) | |
tree | 104a8ee526be3cd4cc3c68bc28c9c8a4851fabe9 /index.html | |
parent | a5d473dfc0ca64a6aceba0cea3db663134f73d37 (diff) | |
download | wasm_fractal-677a52fe2323769619cd2fd15012a210f7d680e2.tar.gz wasm_fractal-677a52fe2323769619cd2fd15012a210f7d680e2.zip |
Working version of fractal
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 |