-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
97 lines (86 loc) · 3.91 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8"/>
<meta name="author" content="David Červenec">
<meta name="description" content="Školní projekt - JS App | Type test">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="icon" href="typer-icon.png" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="styles.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.6.2/chart.min.js" integrity="sha512-tMabqarPtykgDtdtSqCL3uLVM0gS1ZkUAVhRFu1vSEFgvB73niFQWJuvviDyBGBH22Lcau4rHB5p2K2T0Xvr6Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="script.js" async></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito&display=swap" rel="stylesheet">
<title>Typer</title>
</head>
<body>
<div id="overlay" class="overlay-visible"></div>
<main class="app-container">
<header>
<h1 class="site-name">Typer ⌨️</h1>
</header>
<div class="typing-container">
<div class="statistics-wrapper">
<div id="current-wpm" class="wpm box">0 <span class="small">WPM</span></div>
<div id="current-time" class="box">00 : 00</div>
<div id="current-errors" class="errors box">0 <span class="small">Errors</span></div>
<div id="current-accuracy" class="accuracy box">0 <span class="small">%</span></div>
<button id="restart-button" class="restart box" aria-label="Quote Reset">
<img id="restart-icon" src="restart-icon.svg" alt="Restart icon" height="30" width="30">
</button>
</div>
<p id="qoute-text" class="quote box">Loading text...</p>
<textarea id="input-box" class="input box"></textarea>
<div class="options">
<div class="options-left">
<button id="focus-mode" class="option-box" aria-label="Focus Mode">💡</button>
<button id="input-mode" class="option-box" aria-label="Input Mode">⌨️</button>
</div>
<div class="options-right">
<button id="timer-10" class="timer option-box" aria-label="Timer 10 seconds">00:10</button>
<button id="timer-30" class="timer option-box selected" aria-label="Timer 30 seconds">00:30</button>
<button id="timer-100" class="timer option-box" aria-label="Timer 1 Minute">01:00</button>
<button id="timer-200" class="timer option-box" aria-label="Timer 2 Minutes">02:00</button>
<button id="timer-500" class="timer option-box" aria-label="Timer 5 Minutes">05:00</button>
</div>
</div>
</div>
<div class="results-container">
<div class="last-result-wrapper">
<canvas id="chart" height="100" width="200"></canvas>
<table class="table last-result">
<tr>
<th>WPM</th>
<td id="table-wpm">-</td>
</tr>
<tr>
<th>Errors</th>
<td id="table-errors">-</td>
</tr>
<tr>
<th>Accuracy</th>
<td id="table-accuracy">-</td>
</tr>
<tr>
<th>Time</th>
<td id="table-time">-</td>
</tr>
</table>
</div>
<table class="table complete-result">
<thead>
<tr>
<th>WPM</th>
<th>Errors</th>
<th>Accuracy</th>
<th>Time</th>
<th class="delete-button"><button id="delete-results" aria-label="Delete All Results">❌</button></th>
</tr>
</thead>
<tbody id="results-table"></tbody>
</table>
</div>
</main>
</body>
</html>