summaryrefslogtreecommitdiff
path: root/WebInterface/wasm
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-05-22 19:48:05 +0200
committerDennis Kobert <d-kobert@web.de>2019-05-22 19:48:05 +0200
commit6ebf9428fb00811605f09c8f5be4d6454dc8c80d (patch)
treebc1d9395b4d5d1a9310117906d4bf89c50d9efcd /WebInterface/wasm
parent59b185a10091c80259e49e3e16d8903e8cd68add (diff)
Mode index.html up a dir
Diffstat (limited to 'WebInterface/wasm')
-rw-r--r--WebInterface/wasm/asm-paint/index.html14
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>