-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
144 lines (128 loc) · 11.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<script>
document.write(unescape('%20%3C%6D%65%74%61%20%63%68%61%72%73%65%74%3D%22%55%54%46%2D%38%22%3E%0A%20%20%20%20%3C%6D%65%74%61%20%6E%61%6D%65%3D%22%76%69%65%77%70%6F%72%74%22%20%63%6F%6E%74%65%6E%74%3D%22%77%69%64%74%68%3D%64%65%76%69%63%65%2D%77%69%64%74%68%2C%20%69%6E%69%74%69%61%6C%2D%73%63%61%6C%65%3D%31%2E%30%22%3E%0A%20%20%20%20%3C%6D%65%74%61%20%68%74%74%70%2D%65%71%75%69%76%3D%22%58%2D%55%41%2D%43%6F%6D%70%61%74%69%62%6C%65%22%20%63%6F%6E%74%65%6E%74%3D%22%69%65%3D%65%64%67%65%22%3E%0A%20%20%20%20%20%3C%6D%65%74%61%20%70%72%6F%70%65%72%74%79%3D%22%6F%67%3A%75%72%6C%22%20%63%6F%6E%74%65%6E%74%3D%22%68%74%74%70%3A%2F%2F%6D%61%73%73%69%76%65%66%69%6C%65%2E%63%6F%6D%22%2F%3E%0A%20%20%20%20%20%20%20%20%3C%6D%65%74%61%20%70%72%6F%70%65%72%74%79%3D%22%61%75%74%68%6F%72%22%20%63%6F%6E%74%65%6E%74%3D%22%6B%61%72%61%6E%20%61%72%6F%72%61%2C%20%6B%61%72%61%6E%33%36%6B%40%67%6D%61%69%6C%2E%63%6F%6D%22%2F%3E%0A%20%20%20%20%3C%6C%69%6E%6B%20%72%65%6C%3D%22%73%74%79%6C%65%73%68%65%65%74%22%20%68%72%65%66%3D%22%63%73%73%2F%62%6F%6F%74%73%74%72%61%70%2E%6D%69%6E%2E%63%73%73%22%3E%0A%20%20%20%20%3C%6C%69%6E%6B%20%72%65%6C%3D%22%73%74%79%6C%65%73%68%65%65%74%22%20%68%72%65%66%3D%22%63%73%73%2F%73%74%79%6C%65%2E%63%73%73%22%3E%0A%20%20%20%20%3C%6C%69%6E%6B%20%72%65%6C%3D%22%69%63%6F%6E%22%20%74%79%70%65%3D%22%69%6D%61%67%65%2F%70%6E%67%22%20%68%72%65%66%3D%22%66%61%76%69%63%6F%6E%2E%70%6E%67%22%3E%0A%20%20%20%20%3C%6C%69%6E%6B%20%68%72%65%66%3D%22%68%74%74%70%73%3A%2F%2F%66%6F%6E%74%73%2E%67%6F%6F%67%6C%65%61%70%69%73%2E%63%6F%6D%2F%63%73%73%3F%66%61%6D%69%6C%79%3D%43%75%74%69%76%65%2B%4D%6F%6E%6F%22%20%72%65%6C%3D%22%73%74%79%6C%65%73%68%65%65%74%22%3E%0A%20%20%20%20%3C%6D%65%74%61%20%6E%61%6D%65%3D%22%64%65%73%63%72%69%70%74%69%6F%6E%22%20%63%6F%6E%74%65%6E%74%3D%22%6D%61%73%73%69%76%65%66%69%6C%65%2E%63%6F%6D%20%2D%20%6D%61%73%73%69%76%65%66%69%6C%65%2E%63%6F%6D%20%2D%20%74%79%70%65%66%61%73%74%20%69%73%20%61%6E%20%69%6E%74%65%72%61%63%74%69%76%65%20%73%70%65%65%64%20%74%79%70%69%6E%67%20%74%65%73%74%20%64%65%73%69%67%6E%65%64%20%69%6E%20%4A%61%76%61%53%63%72%69%70%74%20%74%6F%20%63%61%6C%63%75%6C%61%74%65%20%77%6F%72%64%73%20%70%65%72%20%6D%69%6E%75%74%65%20%66%6F%72%20%61%20%63%61%6E%64%69%64%61%74%65%2E%20%54%75%72%6E%20%6F%6E%20%74%68%65%20%73%6F%75%6E%64%20%66%6F%72%20%62%65%74%74%65%72%20%65%78%70%65%72%69%65%6E%63%65%22%3E%0A%20%20%20%20%20%20%20%20%3C%6D%65%74%61%20%6E%61%6D%65%3D%22%6B%65%79%77%6F%72%64%73%22%20%63%6F%6E%74%65%6E%74%3D%22%74%79%70%65%66%61%73%74%2C%20%74%79%70%69%6E%67%74%65%73%74%2C%20%6C%65%61%72%6E%74%79%70%69%6E%67%22%3E%0A%20%20%20%20%20%20%20%20%3C%6D%65%74%61%20%6E%61%6D%65%3D%22%61%75%74%68%6F%72%22%20%63%6F%6E%74%65%6E%74%3D%22%6B%61%72%61%6E%20%61%72%6F%72%61%2C%20%6B%61%72%61%6E%33%36%6B%40%67%6D%61%69%6C%2E%63%6F%6D%2C%20%6D%61%73%73%69%76%65%66%69%6C%65%2E%63%6F%6D%22%3E%0A%20%20%20%20%20%20%20%20%3C%6D%65%74%61%20%63%68%61%72%73%65%74%3D%22%55%54%46%2D%38%22%3E%0A%20%20%20%20%3C%74%69%74%6C%65%3E%74%79%70%65%66%61%73%74%20%2D%20%6D%61%73%73%69%76%65%66%69%6C%65%2E%63%6F%6D%3C%2F%74%69%74%6C%65%3E'))
</script>
</head>
<body>
<h3 style="padding: 15px"><center>typefast <small>massivefile.com</small></center></h3>
<section class="mt-4 p-4">
<div class="row">
<div class="col-sm-6 col-md-2 order-md-0">
<div class="results">
<ul class="list-unstyled right-stats text-center small">
<li class="list-item">Total Words <span id="totalWords" class="d-block stats">0</span></li>
<hr class="hr-x">
<li class="list-item">Written Words <span id="writtenWords" class="d-block stats">0</span></li>
<hr class="hr-x">
<li class="list-item">Errors <span id="errors" class="d-block stats">0</span></li>
<hr class="hr-x">
<li class="list-item">Acuracy <span id="accuracy" class="d-block stats">0</span></li>
</ul>
</div>
</div>
<div class="col-sm-6 col-md-2 order-md-2">
<div class="results">
<ul class="list-unstyled left-stats text-center small">
<li class="list-item">Timer <span id="timer" class="d-block stats">0</span></li>
<hr class="hr-x">
<li class="list-item">CPM <span id="cpm" class="d-block stats">0</span></li>
<hr class="hr-x">
<li class="list-item">WPM <span id="wpm" class="d-block stats">0</span></li>
<hr class="hr-x">
<li class="list-item last-result">Last WPM <span id="result" class="d-block stats text-success">0</span></li>
</ul>
</div>
</div>
<div class="col-sm-12 col-md-8 order-md-1">
<div class="container">
<div class="header text-center mt-4">
<div class="control">
<button id="btnPlay" class="btn-control">
<span class="d-block x-small text-muted pt-1">Begin</span>
</button>
<button id="btnRefresh" class="btn-control">
<span class="d-block x-small text-muted pt-1">Refresh</span>
</button>
</div>
</div>
<!-- <canvas id="foo" class="d-flex m-auto" width=500 height=200 > </canvas> -->
<hr>
<p class="small text-muted">Click the begin button to start the test.<br>
Try not to make mistakes| All the best :) </p>
<!-- input -->
<div class="bg-dark text-light mono text-input" id="textInput" tabindex="0" disabled></div>
<!-- Original input -->
<div class="bg-dark text-light mono p-4 lead d-none" id="textFull"></div>
<!-- output -->
<div class="mono text-input" id="textOutput"></div>
<div title="Average typing speed" class="my-4">
<h6 class="py-2">Average typing speed</h6>
<div class="meter-gauge text-light">
<span class="col" style="background: #eb4841">0 - 20 Slow</span>
<span class="col" style="background: #f48847">20 - 40 Average</span>
<span class="col" style="background: #ffc84a">40 - 60 Fast</span>
<span class="col" style="background: #a6c34c">60 - 80 Professional</span>
<span class="col" style="background: #4ec04e">80 - 100+ Top</span>
</div>
</div>
<hr>
</div>
<!-- Modal -->
<div class="modal" id="ModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="modal-close close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body text-center"></div>
<div class="modal-footer">
<button type="button" class="btn btn-success btn-sm modal-repeat-btn" id="modalReload">Run
again</button>
<button type="button" class="btn btn-danger btn-sm modal-close" id="modalCloseBtn">Close</button>
</div>
</div>
</div>
</div>
<div class="sound-control">
<svg enable-background="new 0 0 40 40" id="iconSoundOn" class="control-icon icon-sound-on" version="1.1"
viewBox="0 0 40 40" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g>
<path d="M20,0C9,0,0,9,0,20c0,11,9,20,20,20c11,0,20-9,20-20C40,9,31,0,20,0z M20,38c-9.9,0-18-8.1-18-18c0-9.9,8.1-18,18-18 s18,8.1,18,18C38,29.9,29.9,38,20,38z" />
</g>
<g>
<path d="M31.6,21h-6.3c-0.6,0-1-0.4-1-1s0.4-1,1-1h6.3c0.6,0,1,0.4,1,1S32.1,21,31.6,21z" />
</g>
<g>
<path d="M24,17.1c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l4.6-4.6c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-4.6,4.6 C24.5,17,24.3,17.1,24,17.1z" />
</g>
<g>
<path d="M28.6,29.6c-0.3,0-0.5-0.1-0.7-0.3l-4.6-4.6c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l4.6,4.6c0.4,0.4,0.4,1,0,1.4 C29.1,29.5,28.8,29.6,28.6,29.6z" />
</g>
<g>
<path d="M17.8,15v-2.3l-4,4.5c-0.2,0.2-0.5,0.3-0.7,0.3H9.7c-0.6,0-1.1,0.5-1.1,1.1v3c0,0.6,0.5,1.1,1.1,1.1H12v-2.4 c0-0.6,0.4-1,1-1c0.5,0,1,0.4,1,1v3l3.8,4.2v-8.5c0-0.5,0.5-1,1-1s1,0.5,1,1v9.1c0,0.9-0.4,1.6-1.1,1.9c-0.2,0.1-0.3,0.1-0.5,0.1 c-0.4,0-0.8-0.2-1.1-0.5l-4.5-5H9.7c-1.7,0-3.1-1.4-3.1-3.1v-3c0-1.7,1.4-3.1,3.1-3.1h2.9l4.5-5c0.4-0.5,1-0.6,1.6-0.4 c0.7,0.3,1.1,1,1.1,1.9v3c0,0.6-0.5,1-1,1S17.8,15.6,17.8,15z" />
</g>
</svg>
<svg enable-background="new 0 0 40 40" id="iconSoundOff" class="control-icon icon-sound-off d-none"
version="1.1" viewBox="0 0 40 40" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<g>
<path d="M20,0C9,0,0,9,0,20c0,11,9,20,20,20c11,0,20-9,20-20C40,9,31,0,20,0z M20,38c-9.9,0-18-8.1-18-18c0-9.9,8.1-18,18-18 s18,8.1,18,18C38,29.9,29.9,38,20,38z" />
</g>
<g>
<g>
<path d="M22.6,15v-2.3l-4,4.5c-0.2,0.2-0.5,0.3-0.8,0.3h-3.3c-0.6,0-1.1,0.5-1.1,1.1v3c0,0.6,0.5,1.1,1.1,1.1h2.3v-2.4 c0-0.6,0.5-1,1-1c0.6,0,1,0.4,1,1v3l3.8,4.2v-8.5c0-0.5,0.5-1,1-1s1,0.5,1,1v9.1c0,0.9-0.4,1.6-1.1,1.9c-0.2,0.1-0.3,0.1-0.5,0.1 c-0.4,0-0.8-0.2-1.1-0.5l-4.5-5h-2.9c-1.7,0-3.1-1.4-3.1-3.1v-3c0-1.7,1.4-3.1,3.1-3.1h2.9l4.5-5c0.4-0.5,1-0.6,1.6-0.4 c0.7,0.3,1.1,1,1.1,1.9v3c0,0.6-0.5,1-1,1S22.6,15.6,22.6,15z" />
</g>
</g>
</svg>
</div>
<audio id="keyClick" src="sound/button.wav" hidden></audio>
<audio id="keyBeep" src="sound/beep.wav" hidden></audio>
</section>
<script src="js/speedTyping.min.js"></script>
</body>
</html>