-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
48 lines (47 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<style>
html, body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
body {
display: flex;
justify-content: space-around;
align-items: center;
flex-direction: column;
background-color: rgba(40, 169, 255, 0.25);
}
canvas {
border: 1px solid rgba(0, 0, 0, 0.7);
background-color: #fff;
}
button {
width: 80px;
}
</style>
</head>
<body>
<canvas id="life"
width="420"
height="420">
Loading...
</canvas>
<div>
<button data-play-pause>
<i class="fa fa-play"></i>
</button>
<button data-reload>
<i class="fa fa-refresh"></i>
</button>
</div>
<script src="life.js"></script>
<script src="canvas.js"></script>
</body>
</html>