diff options
Diffstat (limited to 'public')
l--------- | public/game_of_life.js | 1 | ||||
l--------- | public/game_of_life_bg.wasm | 1 | ||||
-rw-r--r-- | public/index.html | 28 |
3 files changed, 30 insertions, 0 deletions
diff --git a/public/game_of_life.js b/public/game_of_life.js new file mode 120000 index 0000000..998a5ea --- /dev/null +++ b/public/game_of_life.js @@ -0,0 +1 @@ +../pkg/game_of_life.js
\ No newline at end of file diff --git a/public/game_of_life_bg.wasm b/public/game_of_life_bg.wasm new file mode 120000 index 0000000..fe3f9b8 --- /dev/null +++ b/public/game_of_life_bg.wasm @@ -0,0 +1 @@ +../pkg/game_of_life_bg.wasm
\ No newline at end of file diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..ed2639f --- /dev/null +++ b/public/index.html @@ -0,0 +1,28 @@ +<html> + <head> + <meta content="text/html;charset=utf-8" http-equiv="Content-Type"/> + <style> + body { + margin: 0; + width: 100%; + height: 100%; + background-color: #333333; + display: flex; + align-items: center; + justify-content: center; + } + </style> + </head> + <body> + <canvas id="canvas" height="800" width="800" /> + <script type="module"> + import init from './game_of_life.js'; + + async function run() { + await init(); + } + + run(); + </script> + </body> +</html> |