-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
83 lines (75 loc) · 2.88 KB
/
index.html
File metadata and controls
83 lines (75 loc) · 2.88 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
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
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Typing Speed Test</title>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<h1>Typing Speed Test</h1>
<!-- Controls Section -->
<div class="controls">
<select id="time-mode">
<option value="15">15 Seconds</option>
<option value="30">30 Seconds</option>
<option value="60" selected>60 Seconds</option>
</select>
<select id="difficulty">
<option value="easy" selected>Easy</option>
<option value="medium">Medium</option>
<option value="hard">Hard</option>
</select>
<select id="symbol-mode">
<option value="no-symbols" selected>Without Symbols</option>
<option value="with-symbols">With Symbols</option>
</select>
<button id="zen-mode-btn">Zen Mode: OFF</button>
<button id="reset-btn">Reset</button>
<a href="history.html" id="history-btn" title="View History"><i class="fas fa-history"></i></a>
</div>
<!-- Timer & Stats -->
<div class="timer-stats">
<div>⏱ Time Left: <span id="timer">60</span>s</div>
<div>⚡ WPM: <span id="wpm">0</span></div>
<div>🎯 Accuracy: <span id="accuracy">0%</span></div>
</div>
<!-- Typing Area -->
<div id="typing-area"></div>
<!-- Typing Input -->
<input type="text" id="typing-input" placeholder="Type here..." />
<!-- Daily Challenge -->
<div id="challenge-text">Today's Challenge: Type as fast and accurately as you can!</div>
<!-- Result Modal -->
<div id="result-modal" class="hidden">
<div class="result-box">
<h2>Test Results</h2>
<p>WPM: <span id="modal-wpm">0</span></p>
<p>Accuracy: <span id="modal-accuracy">0%</span></p>
<p>Correct Words: <span id="modal-correct-words">0</span></p>
<p>Incorrect Words: <span id="modal-incorrect-words">0</span></p>
<p>Time Taken: <span id="modal-time-taken">0s</span></p>
<button id="close-modal">Close</button>
</div>
</div>
<!-- Leaderboard -->
<table id="leaderboard">
<thead>
<tr>
<th>Rank</th>
<th>WPM</th>
<th>Accuracy</th>
<th>Date</th>
</tr>
</thead>
<tbody id="leaderboard-table"></tbody>
</table>
<!-- Scripts -->
<script type="module" src="utils.js"></script>
<script type="module" src="textHandler.js"></script>
<script type="module" src="timer.js"></script>
<script type="module" src="eventHandler.js"></script>
<script type="module" src="script.js"></script>
</body>
</html>