-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (58 loc) · 2.5 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>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flash Typer | Fast Typing Game</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css"
integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ=" crossorigin="anonymous" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<button class="settings-btn" id="settings-btn">
<i class="fas fa-cog"></i>
</button>
<div class="settings" id="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">
<div class="start-game-container" id="start-game-container">
<h1><i class="fa-solid fa-keyboard"></i> Flash Typer <i class="fa-solid fa-keyboard"></i></h1>
<div class="rules">
<p><b>Game Rules</b></p>
<ul>
<li>Timer starts with 10 sec</li>
<li>Easy: Adds 4 sec to timer if you type the correct word</li>
<li>Medium: Adds 3 sec to timer if you type the correct word</li>
<li>Hard: Adds 2 sec to timer if you type the correct word</li>
</ul>
</div>
<button id="start-game">Start Game</button>
</div>
<h2><i class="fa-solid fa-keyboard"></i> Flash Typer <i class="fa-solid fa-keyboard"></i></h2>
<p>Type the following:</p>
<h1 id="word">TEST</h1>
<input type="text" id="text" autocomplete="off" placeholder="Enter the word here...">
<p class="time-container">
<b>Time left:</b> <span id="time">10s</span>
</p>
<p class="score-container">
<b>Score:</b> <span id="score">0</span>
</p>
<div class="end-game-container" id="end-game-container"></div>
</div>
<script src="script.js"></script>
<script src="https://kit.fontawesome.com/4276d8e4a3.js" crossorigin="anonymous"></script>
</body>
</html>