-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (61 loc) · 2.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles/reset.css">
<link rel="stylesheet" href="./styles/style.css">
<script src="./script.js" defer></script>
<link rel="icon" href="./images/favicon-16x16.png">
<title>Conway's GOL</title>
</head>
<body>
<div class="game-area"></div>
<header>
<h1>Game Of Life</h1>
<ul>
<li><a href="./index.html">Home</a></li>
<li><a href="./pages/about.html" target="_blank"> About</a></li>
<li><a href="https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life" target="_blank">Wikipedia</a></li>
</ul>
</header>
<footer class="controls">
<div class="grid-controls">
<div>
<label for="grid-size">Grid cells</label>
<input type="number" min="10" max="100" id="grid-size" value="40">
</div>
<button id="grid">Create Grid</button>
<button id="random">Random</button>
</div>
<div class="game-controls">
<div>
<label for="speed">Delay(ms)</label>
<input type="number" min="100" max="10000" id="speed" value="1000" step="100">
</div>
<button id="step">Step</button>
<button id="play">Play</button>
</div>
<div class="predefined">
<select name="predefined-starts" id="predefined-starts">
<option value="glider" selected>Glider</option>
<option value="lightSpaceship">Lightweight Spaceship</option>
<option value="gliderGun">Gosper's glider gun</option>
<option value="diamond4_8_12">4 8 12 Diamond</option>
<option value="copperhead">Copperhead</option>
<option value="pentadecathlon">Pentadecathlon</option>
<option value="pulsar">Pulsar</option>
<option value="AforAll">A For All</option>
<option value="clock">Clock</option>
<option value="dot">101</option>
</select>
<button id="go">Generate</button>
</div>
<div id="stats">
<p id="generation">Generation: </p>
<p id="living">Living Cells: </p>
</div>
</footer>
</body>
</html>