diff options
author | Dennis Kobert <d-kobert@web.de> | 2019-05-22 19:48:05 +0200 |
---|---|---|
committer | Dennis Kobert <d-kobert@web.de> | 2019-05-22 19:48:05 +0200 |
commit | 6ebf9428fb00811605f09c8f5be4d6454dc8c80d (patch) | |
tree | bc1d9395b4d5d1a9310117906d4bf89c50d9efcd /WebInterface/wasm/asm-paint/index.html | |
parent | 59b185a10091c80259e49e3e16d8903e8cd68add (diff) |
Mode index.html up a dir
Diffstat (limited to 'WebInterface/wasm/asm-paint/index.html')
-rw-r--r-- | WebInterface/wasm/asm-paint/index.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/WebInterface/wasm/asm-paint/index.html b/WebInterface/wasm/asm-paint/index.html new file mode 100644 index 0000000..424255b --- /dev/null +++ b/WebInterface/wasm/asm-paint/index.html @@ -0,0 +1,14 @@ +<!doctype html> +<html> + <header> + <title> Scribblio </title> + <script> +var importObject = { imports: { imported_func: arg => console.log(arg) } }; + +WebAssembly.instantiateStreaming(fetch('pkg/asm_paint_bg.wasm'), importObject) +.then(obj => obj.instance.exports.exported_func()); + </script> + </header> + <body> + </body> +</html> |