-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (47 loc) · 1.62 KB
/
index.html
File metadata and controls
47 lines (47 loc) · 1.62 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Arrow Key Game</title>
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="icon" type="image/png" href="public/favicon.ico" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="main-container">
<div id="top-bar">
<span id="high-score-label"
>High Score: <span id="high-score">0</span></span
>
<span id="timer">Time: 30s</span>
</div>
<h1>Arrow Key Game</h1>
<p id="instructions">
Press the arrow key that matches the arrow shown below.<br />
<span class="instructions-hint"
>Try to match as many arrows as you can before time runs out!</span
>
</p>
<div id="arrow-trace"><span class="arrow-trace-icon">↑</span></div>
<div id="arrow-container">
<span id="arrow-icon" class="arrow-trace-icon"></span>
</div>
<div id="score">Score: 0</div>
<div id="time-controls">
<button class="time-option" data-time="30">30s</button>
<button class="time-option" data-time="45">45s</button>
<button class="time-option" data-time="60">60s</button>
</div>
<button id="restart-btn" aria-label="Start or End Game">
Start Game
</button>
<span id="restart-hint">(or press Space Bar to start/end)</span>
<div id="final-score"></div>
</div>
<script src="script.js"></script>
</body>
</html>