-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (68 loc) · 1.69 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">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Asteroids</title>
<style>
@font-face {
font-family: "myFont";
src: url("PublicPixel-z84yD.ttf");
}
*{
margin: 0;
padding: 0;
overflow: hidden;
}
.header{
background-color: black;
color: white;
font-family: myFont;
display: flex;
justify-content: space-between;
align-items: center;
}
h2{
padding-left: 50px;
}
.hover{
cursor: pointer;
}
.hover:hover{
color: gray;
}
.icons{
font-size: 12px;
cursor: pointer;
}
span{
padding: 10px;
}
.btn:hover{
color: gray;
}
.s{
font-size: 12px;
}
.hidden{
opacity: 0%;
}
</style>
</head>
<body>
<div class="header">
<div class="s hidden">
<span>HI: <span class="highScore">0</span></span>
<span>Score: <span class="score">0</span></span>
</div>
<h2 class="hover">START</h2>
<div class = "icons hidden">
<span class="play btn">Play</span>
<span class="pause btn">Pause</span>
<span class="restart btn">Restart</span>
</div>
</div>
<canvas></canvas>
<script src="script.js"></script>
</body>
</html>