summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>