-
Notifications
You must be signed in to change notification settings - Fork 0
/
no-webcl.html
61 lines (54 loc) · 1.54 KB
/
no-webcl.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 xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>game of life</title>
<link rel='stylesheet' href='css/style.css' />
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script>
<script type='text/javascript' src='js/drawingtable.js'></script>
<script type='text/javascript' src='js/gol.js'></script>
<script type='text/javascript'>
$("#drawing-table").ready(function(){
$("#start").click(function() {
document.world.start();
});
$("#stop").click(function() {
document.world.stop();
});
});
</script>
</head>
<body>
<div id="page-wrap">
<div id="controls">
<fieldset id="grid-size-wrap">
<legend>Grid Controls</legend>
<select id="gridSize">
<option value="5,5" selected>5 x 5</option>
<option value="10,10">10 x 10</option>
<option value="20,20" >20 x 20</option>
</select>
<br />
Changing size clears the design
</fieldset>
<fieldset id="controls-wrap">
<legend>Controls</legend>
<button id="start">Start</button>
<button id="stop">Pause</button>
<button id="clear">Clear</button>
</fieldset>
<fieldset id="information-wrap">
<legend>Running Information</legend>
Generation: <a id="generation">0</a> | Live cells: <a id="liveCells">0</a>
</fieldset>
</div>
<div id="table-wrap">
<table id="drawing-table">
<tr>
<td></td>
</tr>
</table>
</div>
</div>
</body>
</html>