aboutsummaryrefslogtreecommitdiff
path: root/public/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.html')
-rw-r--r--public/index.html28
1 files changed, 28 insertions, 0 deletions
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>