-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
181 lines (176 loc) · 6.24 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="assets/images/favicon.ico" />
<title>typingmeter - Typing Speed Test</title>
<link
rel="stylesheet"
crossorigin="anonymous"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"
/>
<link href="assets/css/styles.css" rel="stylesheet" />
</head>
<body class="bg-light">
<div class="container my-5">
<div class="row">
<div class="offset-md-2 col-md-4">
<h1>
<img src="assets/images/logo.png" alt="typingmeter" width="100%" />
</h1>
<p>
<a
class="github-button"
href="https://github.com/deddyromnan/typingmeter"
data-icon="octicon-repo-forked"
aria-label="Fork ntkme/github-buttons on GitHub"
>Open source. Fork me!</a
>
</p>
</div>
<div class="offset-md-1 col-md-2">
<select
id="select-language"
class="form-select"
aria-label="Default select example"
>
<option disabled>Language</option>
<option value="en_200" selected>English</option>
<option value="id_200">Bahasa Indonesia</option>
</select>
</div>
<div class="col-md-1 text-end">
<div class="dropdown">
<button
class="btn btn btn-outline-secondary"
type="button"
data-bs-toggle="dropdown"
>
<i class="bi bi-list"></i>
</button>
<ul
class="dropdown-menu dropdown-menu-end"
aria-labelledby="drowpdown-options"
>
<li>
<a id="button-clear-history" class="dropdown-item" href="#"
><i class="bi bi-trash-fill"></i> Clear history</a
>
</li>
</ul>
</div>
</div>
</div>
<div class="row">
<div class="offset-md-2 col-md-8">
<div class="card my-2">
<div class="card-body">
<div id="feed-container" class="fs-4"></div>
<div id="feed-spinner" class="text-center">
<div class="spinner-border" role="status"></div>
</div>
<div id="result-container" class="visually-hidden">
<table class="table table-borderless m-0">
<tr>
<td
id="result-wpm"
class="text-success fs-1 align-middle"
rowspan="3"
></td>
<th>Accuracy</th>
<td id="result-accuracy"></td>
<th>Percentile</th>
<td id="result-percentile"></td>
</tr>
<tr>
<th>Correct Keystrokes</th>
<td id="result-correct-keystrokes"></td>
<th>Correct words</th>
<td id="result-correct-words"></td>
</tr>
<tr>
<th>Wrong Keystrokes</th>
<td id="result-wrong-keystrokes"></td>
<th>Wrong words</th>
<td id="result-wrong-words"></td>
</tr>
</table>
</div>
</div>
</div>
<div class="input-group mb-5">
<input
id="input-typed"
type="text"
class="form-control form-control-lg"
autofocus
/>
<span id="span-timer" class="input-group-text px-4">01:00</span>
<button
id="button-restart"
class="btn btn-success px-4"
type="button"
>
<i class="bi bi-arrow-repeat"></i>
</button>
</div>
</div>
</div>
<div class="row">
<div class="offset-md-2 col-md-8">
<div class="accordion" id="accordion-history">
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#collapse-history"
>
History
</button>
</h2>
<div
id="collapse-history"
class="accordion-collapse collapse"
aria-labelledby="headingOne"
data-bs-parent="#accordion-history"
>
<div class="accordion-body">
<table id="table-history" class="table">
<thead>
<tr>
<th scope="col">WPM</th>
<th scope="col">Accuracy</th>
<th scope="col">Percentile</th>
<th scope="col">Keys</th>
<th scope="col">Words</th>
<th scope="col">Time</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
<script src="core/presentation/index.js" type="module"></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
crossorigin="anonymous"
></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>