-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (75 loc) · 2.57 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hexagonal Cellular Automata</title>
</head>
<body style="margin: 0; padding: 0; background-color: black; user-select: none">
<center>
<h1 style="color: blue"> Hexagonal Game of Life </h1>
</center>
<div style="text-align: center">
<button id="resumeButton"> Resume </button>
<button id="pauseButton"> Pause </button>
<button id="nextButton"> Next </button>
<button id="clearButton"> Clear </button>
<button id="randomButton"> Random </button>
</div>
<canvas id="myCanvas"></canvas>
<div style="color: yellow; margin: auto; width: 20%">
<form style="display: inline-block; float: left">
<div>Survive</div>
<div>
<input id="survive0" type="checkbox"> 0 </input>
</div>
<div>
<input id="survive1" type="checkbox" checked> 1 </input>
</div>
<div>
<input id="survive2" type="checkbox"> 2 </input>
</div>
<div>
<input id="survive3" type="checkbox" checked> 3 </input>
</div>
<div>
<input id="survive4" type="checkbox" checked> 4 </input>
</div>
<div>
<input id="survive5" type="checkbox" checked> 5 </input>
</div>
<div>
<input id="survive6" type="checkbox"> 6 </input>
</div>
</form>
<form style="display: inline-block; float: right">
<span>Born</span>
<div>
<input id="born0" type="checkbox"> 0 </input>
</div>
<div>
<input id="born1" type="checkbox"> 1 </input>
</div>
<div>
<input id="born2" type="checkbox"> 2 </input>
</div>
<div>
<input id="born3" type="checkbox" checked> 3 </input>
</div>
<div>
<input id="born4" type="checkbox" checked> 4 </input>
</div>
<div>
<input id="born5" type="checkbox" checked> 5 </input>
</div>
<div>
<input id="born6" type="checkbox" checked> 6 </input>
</div>
</form>
</div>
<div style="position: fixed; bottom: 0; right:0;">
<a href="https://github.com/aybberk/hexagonal-game-of-life"> contribute on github </a>
</div>
</body>
<script src="functions.js"></script>
<script src="script.js"></script>
</html>