-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (43 loc) · 1.35 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Cellular automata</title>
<style>
#canvas {
width: 80%;
height: 80%;
}
body, html {
margin: 0;
width: 100%;
height: 100%;
}
body {
display: flex;
justify-content: center;
align-items: center;
}
</style>
</head>
<body>
<noscript>This page contains webassembly and javascript content, please enable javascript in your browser.</noscript>
<script src="./bootstrap.js"></script>
<div>
<form>
<p>Select rule:</p>
<input type="radio" onclick="start(30)" id="rule-30" name="rule" value="30">
<label for="rule-30">30</label><br>
<input type="radio" onclick="start(90)" id="rule-90" name="rule" value="90">
<label for="rule-30">90</label><br>
<input type="radio" onclick="start(110)" id="rule-110" name="rule" value="110">
<label for="age3">110</label><br>
<input type="radio" onclick="start(184)" id="rule-184" name="rule" value="110">
<label for="rule-184">184</label><br>
<input type="radio" onclick="start(250)" id="rule-250" name="rule" value="250">
<label for="rule-250">250</label><br>
</form>
</div>
<canvas id="canvas" width="1000" height="800"></canvas>
</body>
</html>