diff options
author | natrixaeria <janng@gmx.de> | 2019-05-22 20:06:12 +0200 |
---|---|---|
committer | natrixaeria <janng@gmx.de> | 2019-05-22 20:06:12 +0200 |
commit | c3ae4cba3a1577c1ca7f86e4acd6778c6f74ffc3 (patch) | |
tree | 894ff01648d0119f439e03ef0ef57bea15c23f7b | |
parent | 1633d8a8b8191b9885af63a2314985842d4254f8 (diff) | |
parent | 6ebf9428fb00811605f09c8f5be4d6454dc8c80d (diff) |
Merge branch 'wasm' of https://github.com/TrueDoctor/DiscoBot into wasm
-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> |