-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
48 lines (42 loc) · 1.43 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
46
47
48
<html>
<head>
<title>Conway's Game of Life</title>
<script src="./jquery-3.5.1.min.js"></script>
<script type="module" src='./index.js'></script>
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
font-size: small;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: rgb(250, 217, 246);
}
.container {
margin: 1em;
}
.section {
margin: 1em;
}
canvas {
border-color: #9563b5;
border-style: solid;
border-width: 10px;
}
</style>
</head>
<body>
<div class="containter">
<div class="section">
<button id='step'>Step</button><button id='run'>Run</button><button id='clear'>Clear</button>
<a target='_blank' style='margin-left: 15px;' href='https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life#Examples_of_patterns'>Pattern Examples</a>
<a target='_blank' style='margin-left: 15px;' href='https://github.com/awalias/game-of-life'>Github</a>
</div>
<div class="section">
<canvas width='1000' height='600' id='mycanvas'></canvas>
</div>
</div>
</body>
</html>