-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (29 loc) · 803 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html lang="en">
<head>
<title>Game of Life</title>
<style>
body {
font-family: Tahoma;
}
</style>
<script type="module">
import init from "./out/client.js?";
init().catch((error) => {
if (
!error.message.startsWith("Using exceptions for control flow, don't mind me. This isn't actually an error!")
) {
throw error;
}
});
</script>
</head>
<body style="margin: 0px">
<canvas id="game-of-life-canvas" width="320" height="240" style="padding: 1px"></canvas>
<ul style="margin-top: 5px; margin-left: 0px; padding-left: 30px">
<li>Left click = Toggle live state for cell</li>
<li>Space = Play / Pause</li>
<li>R = Reset</li>
</ul>
</body>
</html>