-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
53 lines (38 loc) · 1.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- custom css -->
<link rel="stylesheet" href="css/style.css">
<title>Typing Game - Javascript</title>
</head>
<body>
<button id="settings-btn" class="settings-btn">
⚙️
</button>
<div id="settings" class="settings">
<form id="settings-form">
<div>
<label for="difficulty">Difficulty</label>
<select id="difficulty">
<option value="easy">Easy</option>
<option value="medium">Medium</option>
<option value="hard">Hard</option>
</select>
</div>
</form>
</div>
<div class="container">
<h2>👩💻 Typing Game 👨💻</h2>
<small>Type the following:</small>
<h1 id="word"></h1>
<input type="text" id="text" autocomplete="off" placeholder="Type the word here..." />
<p class="time-container">Time left: <span id="time">10s</span></p>
<p class="score-container">Score: <span id="score">0</span></p>
<div id="end-game-container" class="end-game-container"></div>
</div>
<!-- custom js -->
<script src="js/script.js"></script>
</body>
</html>