-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (42 loc) · 832 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
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Game of life</title>
<script src="code.js" type="text/javascript"></script>
<style>
p {
width: 500px;
margin-left: auto;
margin-right: auto;
}
table{
margin-left: auto;
margin-right: auto;
}
td {
width: 15px;
height: 15px;
border: 1px solid black;
}
</style>
</head>
<body>
<table>
<tbody id="board">
</tbody>
</table>
<p>
<input type="submit" value="Clear" onclick="clearBoard()"/>
<input type="checkbox" id="running" onclick="check() "/> Running
<input type="checkbox" id="toroidalWorld" onclick="toggle() " checked="true"/> Toroidal World
<input type="number" id="generations" value="0" readonly="true"/>
</p>
<script>
init();
</script>
</body>
</html>