-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
115 lines (115 loc) · 4.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WPM Test</title>
<link rel="stylesheet" href="home.css">
<!-- <link rel="stylesheet" href="media.css"> -->
</head>
<body>
<div class="container">
<div class="heading">Speed Typing Test
<div class="theme-switch-wrapper" style="display: flex;justify-content: center;">
<label class="theme-switch" for="checkbox">
<input type="checkbox" id="checkbox" />
<div class="slider">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-sun"
>
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-moon"
>
<path
d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"
></path>
</svg>
</div>
</label>
</div>
</div>
<div class="limit">
<a id="fifteen" onclick="setTimeLimit(15)">15s</a>
<a id="thirty" onclick="setTimeLimit(30)">30s</a>
<a id="sixty" onclick="setTimeLimit(60)">60s</a>
<a id="twomin" onclick="setTimeLimit(120)">120s</a>
</div>
<div class="header">
<div class="wpm">
<div class="header_text">WPM</div>
<div class="curr_wpm">100</div>
</div>
<div class="timer">
<span>
<div class="header_text">Time</div>
<div class="curr_time"></div>
</span>
</div>
<div class="cpm">
<div class="header_text">CPM</div>
<div class="curr_cpm">100</div>
</div>
<div class="accuracy">
<div class="header_text">% Accuracy</div>
<div class="curr_accuracy">100</div>
</div>
<div class="errors">
<div class="header_text">Errors</div>
<div class="curr_errors">0</div>
</div>
</div>
<div class="quote">Click on the input area to start the game.</div>
<p style="color:snow;">
<span style="color:pink;text-transform:uppercase;" id="local"></span>
<label id="lastwpm"></label>
</p>
<div class="dropdown">
<button id = "firstrow" class="dropbtn">Choose Level</button>
<div class="dropdown-content">
<a onclick="setGameDifficulty('Easy')"><b>Easy</b></a>
<a onclick="setGameDifficulty('Medium')"><b>Medium</b></a>
<a onclick="setGameDifficulty('Hard')"><b>Hard</b></a>
<a onclick="setGameDifficulty('Ultrahard')"><b>Ultra Hard</b></a>
</div>
</div>
<textarea class="input_area" placeholder="Click me to start test..." oninput="processCurrentText()"
onfocus="startGame()"></textarea>
<button class="restart_btn" onclick="resetValues()">Restart</button>
<p style="color:snow">Designed by
<a class ="rayon" target=”_blank” href="https://bishalrai12.com.np"> Rayon (Bishal ) </a> &
<a class ="rayon" target=”_blank” href="https://github.com/overlorddamygod"> Overlorddamygod (Pratham)</a>
</p>
<script src="quotes.js"></script>
<script src="home.js"></script>
<script src="theme.js"></script>
</body>
</html>