-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (80 loc) · 1.96 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151388535-7"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-151388535-7');
</script>
<title>Game of Life</title>
</head>
<body>
<div id="app">
<h1>Game of Life</h1>
<div class="my-4">
<button
id="start"
type="button"
class="px-4 py-2"
>
Start
</button>
<button
id="stop"
type="button"
class="px-4 py-2"
>
Stop
</button>
<button
id="reset"
type="button"
class="px-4 py-2"
>
Reset
</button>
</div>
<div>
<label>
Interval(ms):
<input
id="interval"
type="number"
value="50"
min="1"
/>
</label>
</div>
<div class="m-4">
<canvas
id="cv"
width="800"
height="800"
class="border-1 border-solid"
></canvas>
</div>
<div class="h-8">
<div class="text-center">
<a href="https://github.com/sakihet/game-of-life">GitHub</a>
</div>
</div>
<div class="text-center text-small h-6 flex-column">
<div class="py-2">
<a
class="text-secondary text-decoration-none"
href="https://sakih.net/"
>
Copyright ©︎ 2020-PRESENT saki
</a>
</div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>