-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (70 loc) · 2.18 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Conway's Game of Life</title>
<meta
name="viewport"
content="width=device-width, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5"
/>
<link rel="stylesheet" href="main.css" />
</head>
<body>
<div id="foo">
<h1>Conway's Game of Life</h1>
<p>Implemented in vanilla HTML5 and javascript.</p>
<form id="options">
<label for="delay">Delay</label>
<input
type="range"
id="delay"
name="delay"
min="0"
max="1000"
value="300"
list="tickmarks"
step="100"
/>
<datalist id="tickmarks">
<option value="0" label="0ms"> </option>
<option value="100"> </option>
<option value="200"> </option>
<option value="300"> </option>
<option value="400"> </option>
<option value="500" label="500ms"> </option>
<option value="600"> </option>
<option value="700"> </option>
<option value="800"> </option>
<option value="900"> </option>
<option value="1000" label="1000ms"> </option>
</datalist>
<label for="generation">Generation</label>
<input
type="text"
id="generation"
size="5"
required
disabled
value="0"
/>
<input type="button" id="toggle" value="Start" />
<div id="advanced-settings">
<label for="columns">Columns</label>
<input type="number" id="columns" required />
<label for="rows">Rows</label>
<input type="number" id="rows" required />
<label for="size">Cell Size (in pixels)</label>
<input type="number" id="size" required />
<input type="button" value="Resize" />
</div>
</form>
<canvas id="game">HTML5 canvas not supported.</canvas>
</div>
<footer>
<a href="https://github.com/bradhanson/gameoflife"
><img src="GitHub-Mark-32px.png" alt="GitHub" width="32" height="32"
/></a>
</footer>
<script src="main.js"></script>
</body>
</html>