-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (39 loc) · 1.22 KB
/
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
34
35
36
37
38
39
40
41
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="/src/styles.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Game Of Life</title>
<script type="module" src="/src/main.ts" defer></script>
</head>
<body>
<menu type="toolbar">
<input
id="boardWidth"
type="number"
value="20"
placeholder="Width"
/>
<input
id="boardHeight"
type="number"
value="20"
placeholder="Height"
/>
<button id="sizeSetter">Set size</button>
<button id="boardKill">Clear</button>
<button id="boardDraw" data-type="alive">Draw alive</button>
<button id="step">Next step</button>
<button id="run">Play</button>
<input
id="boardSleepTime"
type="number"
value="100"
placeholder="Speed"
/>
<button id="setBoardSleepTime">Set speed</button>
</menu>
<div id="board"></div>
</body>
</html>