-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (29 loc) · 1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=
, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Game of Life</title>
</head>
<body onload="init()">
<div class="container">
<h1>Game of Life</h1>
<div>
<button class="button" onclick="playGen()">Start</button>
<button class="button" onclick="stopGen()">Stop</button>
<button class="button" onclick="init() , stopGen()">Clear</button>
<span>🐢</span>
<input id="slider" type="range" min="0" max="500" step="100" value="100"
title="speed dial" onclick = "stopGen() , playGen()" onkeydown="stopGen() , playGen()">
<span>🐇 </span>
</div>
<table id="center">
<tbody class="board">
</tbody>
</table>
</div>
<script src="main.js"></script>
</body>
</html>