summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornatrixaeria <janng@gmx.de>2019-06-11 21:05:15 +0200
committernatrixaeria <janng@gmx.de>2019-06-11 21:05:15 +0200
commit0876527eafcd7c372873314cc9c7e93cba2991e2 (patch)
treec27507eb1b42884ee92c6eab71b696daffc64caf
parentd8b483d39d1051a94e4f5a955dc19a93629ec894 (diff)
Create a web page
-rw-r--r--webhogg/wasm/index.html11
-rw-r--r--webhogg/wasm/pkg/main.js1
2 files changed, 12 insertions, 0 deletions
diff --git a/webhogg/wasm/index.html b/webhogg/wasm/index.html
new file mode 100644
index 0000000..eae1cc2
--- /dev/null
+++ b/webhogg/wasm/index.html
@@ -0,0 +1,11 @@
+<!doctype html>
+<html>
+ <head>
+ <meta charset='utf-8'/>
+ <title>webhogg</title>
+ </head>
+ <body>
+ <canvas id='c'>your browser is incompetent</canvas>
+ <script src='pkg/main.js'></script>
+ </body>
+</html>
diff --git a/webhogg/wasm/pkg/main.js b/webhogg/wasm/pkg/main.js
new file mode 100644
index 0000000..f80fabb
--- /dev/null
+++ b/webhogg/wasm/pkg/main.js
@@ -0,0 +1 @@
+let data = fetch('bin/webhogg-wasm_bg.wasm');