-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathindex.html
More file actions
429 lines (416 loc) · 16.9 KB
/
index.html
File metadata and controls
429 lines (416 loc) · 16.9 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
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Online Keyboard Tester | Test Your Keyboard</title>
<meta
name="description"
content="Test your keyboard and troubleshoot issues with this interactive tool. Explore keyboard layouts and functionality."
/>
<link rel="icon" href="img/favicon.png" />
<link rel="apple-touch-icon" href="img/apple-touch-icon.png" />
<link rel="manifest" href="manifest.webmanifest" />
<!-- Open Graph (Facebook) Metadata -->
<meta
property="og:title"
content="Online Keyboard Tester | Test Your Keyboard"
/>
<meta
property="og:description"
content="Test your keyboard and troubleshoot issues with this interactive tool. Explore keyboard layouts and functionality."
/>
<meta
property="og:url"
content="https://mostafa-abbasi.github.io/KeyboardTester/"
/>
<meta
property="og:image"
content="https://mostafa-abbasi.github.io/KeyboardTester/img/favicon.png"
/>
<meta property="og:type" content="website" />
<!-- Twitter Card Metadata -->
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:title"
content="Online Keyboard Tester | Test Your Keyboard"
/>
<meta
name="twitter:description"
content="Test your keyboard and troubleshoot issues with this interactive tool. Explore keyboard layouts and functionality."
/>
<meta
name="twitter:image"
content="https://mostafa-abbasi.github.io/KeyboardTester/img/favicon.png"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/segoe-fonts@1.0.1/segoe-fonts.min.css"
/>
<link rel="stylesheet" href="css/general.css" />
<link rel="stylesheet" href="css/themes.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/queries.css" />
<script defer src="script.js"></script>
</head>
<body>
<header>
<section class="intro">
<h1 class="heading-primary title center-text">
<span>Test Your Keyboard</span>
</h1>
<p class="paragraph description center-text">
This interactive tool is designed to help users identify and
troubleshoot any issues with their physical keyboard or simply explore
its layout
</p>
</section>
</header>
<main>
<div class="theme-and-layout">
<div></div>
<div class="slider-container">
<output class="slider-value">Full</output>
<input
type="range"
min="1"
max="3"
value="1"
class="slider"
id="layoutSlider"
/>
</div>
<section class="theme-section">
<div class="retro" aria-label="retro theme option">
<div class="theme-color"></div>
<div class="theme-color"></div>
<div class="theme-color"></div>
<div class="theme-color"></div>
</div>
<div class="navy-blue" aria-label="navy-blue theme option">
<div class="theme-color"></div>
<div class="theme-color"></div>
<div class="theme-color"></div>
<div class="theme-color"></div>
</div>
</section>
</div>
<div class="keyboard full-size">
<!-- contains "ESC" & Function (F1-F12) -->
<section class="function region">
<div class="key escape">ESC</div>
<div class="empty-space-between-keys" aria-hidden="true"></div>
<div class="key f1">F1</div>
<div class="key f2">F2</div>
<div class="key f3">F3</div>
<div class="key f4">F4</div>
<div class="empty-space-between-keys" aria-hidden="true"></div>
<div class="key f5">F5</div>
<div class="key f6">F6</div>
<div class="key f7">F7</div>
<div class="key f8">F8</div>
<div class="empty-space-between-keys" aria-hidden="true"></div>
<div class="key f9">F9</div>
<div class="key f10">F10</div>
<div class="key f11">F11</div>
<div class="key f12">F12</div>
</section>
<!-- contains Top-Located Control (Prt Sc|Scr lck|Pause) keys -->
<section class="system-control region">
<div class="key printscreen key--accent-color">Prt Sc</div>
<div class="key scrolllock key--accent-color">Scr Lk</div>
<div class="key pause key--accent-color">Pause</div>
</section>
<!-- contains Modifier/Control (Ctrl|Alt|etc.) & Alpha (A-Z) keys -->
<section class="typewriter region">
<!-- number row (`, 1, 2, etc.) -->
<div class="first-row">
<div class="key backquote key--sublegend key--accent-color">
<span>~</span> <span>`</span>
</div>
<div class="key digit1">1</div>
<div class="key digit2">2</div>
<div class="key digit3">3</div>
<div class="key digit4">4</div>
<div class="key digit5">5</div>
<div class="key digit6">6</div>
<div class="key digit7">7</div>
<div class="key digit8">8</div>
<div class="key digit9">9</div>
<div class="key digit0">0</div>
<div class="key minus key--sublegend">
<span>−</span> <span>‐</span>
</div>
<div class="key equal key--sublegend">
<span>+</span><span>=</span>
</div>
<div class="key backspace key--accent-color">Backspace</div>
</div>
<!-- qwerty row (tab, \, q, w, etc.) -->
<div class="second-row">
<div class="key tab key--accent-color">Tab</div>
<div class="key keyq">Q</div>
<div class="key keyw">W</div>
<div class="key keye">E</div>
<div class="key keyr">R</div>
<div class="key keyt">T</div>
<div class="key keyy">Y</div>
<div class="key keyu">U</div>
<div class="key keyi">I</div>
<div class="key keyo">O</div>
<div class="key keyp">P</div>
<div class="key bracketleft key--sublegend">
<span>{</span> <span>[</span>
</div>
<div class="key bracketright key--sublegend">
<span>}</span> <span>]</span>
</div>
<div class="key backslash key--sublegend key--accent-color">
<span>|</span><span>∖</span>
</div>
</div>
<!-- asdfg row (caps, enter, a, s, etc.) -->
<div class="third-row">
<div class="key capslock key--accent-color">Caps</div>
<div class="key keya">A</div>
<div class="key keys">S</div>
<div class="key keyd">D</div>
<div class="key keyf">F</div>
<div class="key keyg">G</div>
<div class="key keyh">H</div>
<div class="key keyj">J</div>
<div class="key keyk">K</div>
<div class="key keyl">L</div>
<div class="key semicolon key--sublegend">
<span>:</span> <span>;</span>
</div>
<div class="key quote key--sublegend">
<span>"</span> <span>'</span>
</div>
<div class="key enter key--accent-color">
<span>⟵</span>
</div>
</div>
<!-- zxcvb row (left and right shift, <, >, ?, etc.) -->
<div class="fourth-row">
<div class="key shiftleft key--accent-color">Shift</div>
<div class="key keyz">Z</div>
<div class="key keyx">X</div>
<div class="key keyc">C</div>
<div class="key keyv">V</div>
<div class="key keyb">B</div>
<div class="key keyn">N</div>
<div class="key keym">M</div>
<div class="key comma key--sublegend">
<span><</span> <span>,</span>
</div>
<div class="key period key--sublegend">
<span>></span> <span>.</span>
</div>
<div class="key slash key--sublegend">
<span>?</span> <span>/</span>
</div>
<div class="key shiftright key--accent-color">Shift</div>
</div>
<!-- bottom row (ctrl, fn, win, alt, space, etc.) -->
<div class="fifth-row">
<div class="key controlleft key--accent-color">Ctrl</div>
<!-- Added OSLeft for firefox support -->
<div
class="key metaleft osleft key--accent-color"
aria-label="Left Windows key"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 4875 4875"
aria-label="Left Windows key icon"
>
<path
d="M0 0h2311v2310H0zm2564 0h2311v2310H2564zM0 2564h2311v2311H0zm2564 0h2311v2311H2564"
/>
</svg>
</div>
<div class="key altleft key--accent-color">Alt</div>
<div class="key space key--accent-color" aria-label="Space">
<span>____</span>
</div>
<div class="key altright key--accent-color">Alt</div>
<!-- Added OSRight for firefox support -->
<div
class="key metaright osright key--accent-color"
aria-label="Right Windows key"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 4875 4875"
aria-label="Right Windows key icon"
>
<path
d="M0 0h2311v2310H0zm2564 0h2311v2310H2564zM0 2564h2311v2311H0zm2564 0h2311v2311H2564"
/>
</svg>
</div>
<div
class="key contextmenu key--accent-color"
aria-label="Context Menu key"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 100 100"
aria-label="Context Menu key icon"
>
<rect
x="10"
y="10"
width="80"
height="80"
rx="2"
ry="2"
stroke-width="7"
/>
<rect
x="25"
y="30"
width="50"
height="4.5"
rx="2"
ry="2"
stroke-width="4.5"
/>
<rect
x="25"
y="47.5"
width="50"
height="4.5"
rx="2"
ry="2"
stroke-width="4.5"
/>
<rect
x="25"
y="65"
width="50"
height="4.5"
rx="2"
ry="2"
stroke-width="4.5"
/>
</svg>
</div>
<div class="key controlright key--accent-color">Ctrl</div>
</div>
</section>
<!-- contains Navigation (PgUp|PgDn|etc.) & Arrow keys -->
<section class="navigation region">
<div class="key insert key--accent-color">Insert</div>
<div class="key home key--accent-color">Home</div>
<div class="key pageup key--accent-color">Pg Up</div>
<div class="key delete key--accent-color">Delete</div>
<div class="key end key--accent-color">End</div>
<div class="key pagedown key--accent-color">Pg Dn</div>
<div class="key arrowup" aria-label="Up Arrow key">
<svg
xmlns="http://www.w3.org/2000/svg"
enable-background="new 0 0 32 32"
viewBox="0 0 32 32"
aria-label="Up Arrow"
>
<path
d="M18.221,7.206l9.585,9.585c0.879,0.879,0.879,2.317,0,3.195l-0.8,0.801c-0.877,0.878-2.316,0.878-3.194,0 l-7.315-7.315l-7.315,7.315c-0.878,0.878-2.317,0.878-3.194,0l-0.8-0.801c-0.879-0.878-0.879-2.316,0-3.195l9.587-9.585 c0.471-0.472,1.103-0.682,1.723-0.647C17.115,6.524,17.748,6.734,18.221,7.206z"
/>
</svg>
</div>
<div class="key arrowleft" aria-label="Left Arrow key">
<svg
xmlns="http://www.w3.org/2000/svg"
enable-background="new 0 0 32 32"
viewBox="0 0 32 32"
aria-label="Left Arrow"
>
<path
d="M7.701,14.276l9.586-9.585c0.879-0.878,2.317-0.878,3.195,0l0.801,0.8c0.878,0.877,0.878,2.316,0,3.194 L13.968,16l7.315,7.315c0.878,0.878,0.878,2.317,0,3.194l-0.801,0.8c-0.878,0.879-2.316,0.879-3.195,0l-9.586-9.587 C7.229,17.252,7.02,16.62,7.054,16C7.02,15.38,7.229,14.748,7.701,14.276z"
/>
</svg>
</div>
<div class="key arrowdown" aria-label="Down Arrow key">
<svg
xmlns="http://www.w3.org/2000/svg"
enable-background="new 0 0 32 32"
viewBox="0 0 32 32"
aria-label="Down Arrow"
>
<path
d="M14.77,23.795L5.185,14.21c-0.879-0.879-0.879-2.317,0-3.195l0.8-0.801c0.877-0.878,2.316-0.878,3.194,0 l7.315,7.315l7.316-7.315c0.878-0.878,2.317-0.878,3.194,0l0.8,0.801c0.879,0.878,0.879,2.316,0,3.195l-9.587,9.585 c-0.471,0.472-1.104,0.682-1.723,0.647C15.875,24.477,15.243,24.267,14.77,23.795z"
/>
</svg>
</div>
<div class="key arrowright" aria-label="Right Arrow key">
<svg
xmlns="http://www.w3.org/2000/svg"
enable-background="new 0 0 32 32"
viewBox="0 0 32 32"
aria-label="Right Arrow"
>
<path
d="M24.291,14.276L14.705,4.69c-0.878-0.878-2.317-0.878-3.195,0l-0.8,0.8c-0.878,0.877-0.878,2.316,0,3.194 L18.024,16l-7.315,7.315c-0.878,0.878-0.878,2.317,0,3.194l0.8,0.8c0.878,0.879,2.317,0.879,3.195,0l9.586-9.587 c0.472-0.471,0.682-1.103,0.647-1.723C24.973,15.38,24.763,14.748,24.291,14.276z"
/>
</svg>
</div>
</section>
<!-- contains Numpad Keys -->
<section class="numpad region">
<div class="key numlock">NumLk</div>
<div class="key numpaddivide">/</div>
<div class="key numpadmultiply">×</div>
<div class="key numpadsubtract">−</div>
<div class="key numpad7">7</div>
<div class="key numpad8">8</div>
<div class="key numpad9">9</div>
<div class="key numpadadd">+</div>
<div class="key numpad4">4</div>
<div class="key numpad5">5</div>
<div class="key numpad6">6</div>
<div class="key numpad1">1</div>
<div class="key numpad2">2</div>
<div class="key numpad3">3</div>
<div class="key numpadenter">Enter</div>
<div class="key numpad0">0</div>
<div class="key numpaddecimal">·</div>
</section>
</div>
</main>
<footer class="footer">
<p class="footer-text">
Copyright © 2023 | Contact:
<a
class="link"
href="mailto:mostafaabbac@gmail.com"
aria-label="email address"
>mostafaabbac@gmail.com</a
>
|
<svg
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="0px"
width="20"
height="20"
viewBox="0 0 30 30"
aria-label="github icon"
>
<path
d="M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"
></path>
</svg>
<a
class="link"
href="https://github.com/Mostafa-Abbasi/KeyboardTester"
target="_blank"
aria-label="github repository link"
>
<span>Repository</span>
</a>
</p>
</footer>
</body>
</html>