-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (66 loc) · 1.46 KB
/
index.html
File metadata and controls
74 lines (66 loc) · 1.46 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
<!DOCTYPE html>
<html>
<head>
<title>Speed Typing Test</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
html {
height: 100%;
width: 100%;
}
body {
font-family: sans-serif;
text-align: center;
background-color: #181818;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
#text {
font-size: 24px;
margin-bottom: 20px;
}
#input {
font-size: 20px;
padding: 10px;
border: 1px solid #ccc;
width: 300px;
background-color: #343a40;
}
#result {
margin-top: 20px;
font-size: 18px;
}
.highlight {
color: green;
}
.grayed {
color: gray;
}
.incorrect {
color: red;
}
.container {
background-color: #212529;
color: #fff;
}
</style>
</head>
<body>
<div class="container">
<p>Type T to begin</p>
<h1 class="title is-1 highlight">Speed Typing Test</h1>
<p id="text" class="subtitle"></p>
<input type="text" id="input" placeholder="Type here..." class="input is-medium">
<div id="result"></div>
<canvas id="wpmChart"></canvas>
<div id="wpm"></div>
<div id="accuracy"></div>
</div>
<script src="script.js"></script>
</body>
</html>