-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
33 lines (30 loc) · 1.05 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
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script type="text/javascript" src="life.js"></script>
<link rel="stylesheet" href="life.css" type="text/css"/>
</head>
<body>
<h1>Conway's Game of Life</h1>
<div>
<div id="button-container">
<input type="button" class="button reset" value="Reset"/>
<input type="button" class="button next_stage" value="See Next Stage"/>
</div>
<div id="board-container">
<table>
<tbody id="board">
</tbody>
</table>
</div>
<div id="key">
<p>red = live cell</p>
<p>black = dead cell</p>
</div>
</div>
<p id="caption-text">Click on a cell to toggle it "alive" or "dead". Click on the "See Next Stage" button to see the next stage of life.</p>
<p>Read more about <a href="https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life">Conway's Game of Life</a></p>
</body>
</html>