-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (70 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="p5.js"></script>
<script src="sound.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="style.css" />
<meta charset="utf-8" />
</head>
<body>
<button id="speedButton" class="button">
<svg
xmlns="http://www.w3.org/2000/svg"
width="40px"
height="40px"
stroke-width="4"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M13 5l7 7-7 7M5 5l7 7-7 7"
/>
</svg>
</button>
<button id="pauseButton" class="button">
<svg
xmlns="http://www.w3.org/2000/svg"
width="45px"
height="45px"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M10 9v6m4-6v6m7-3a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</svg>
</button>
<p class="score">Score: <span id="score">00</span></p>
<div class="gameOverWindow">
<div class="popup">
<p>GAME OVER</p>
<button class="button" onclick="location.reload()">
<svg
xmlns="http://www.w3.org/2000/svg"
width="45px"
height="45px"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
/>
</svg>
</button>
</div>
</div>
<script src="sketch.js"></script>
</body>
</html>