-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
72 lines (72 loc) · 2.14 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
<!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>SpeedTyping</title>
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body>
<div class="result-box">
<span class="green" id="new-high-score" style ="display: none">New High Score Achieved</span>
<h1>Your typing speed is <span id="wpm"></span> WPM</h1>
<h2>This speed falls under the <br><span id="category"></span> category</h2>
<div class="replay-box">
<a href="index.html">
<h3>Restart</h3>
</a>
</div>
</div>
<header>
<div class="title-box">
<h1 class="title">60-Sec Flash Typing Game</h1>
</div>
<div class="design-line"></div>
<div class="replay-box">
<a href="index.html">
<h3>Restart</h3>
</a>
</div>
</header>
<section>
<div class="wrapper">
<div class="display-box" id="display">
Some text here. Lorem ipsum, dolor sit amet consectetur adipisicing
elit. Perspiciatis excepturi repellendus quaerat!
</div>
<textarea
name=""
id=""
cols="30"
rows="10"
class="input-box"
autofocus
></textarea>
</div>
<aside>
<div class="timer-box">
<h3>Timer<br><span>(in seconds)</span></h3>
<div class="timer">
<h1 id="timeLeft">60</h1>
</div>
</div>
<div class="highscore-box">
<h3>High <br> Score</h3>
<div class="highscore">
<h1><span id="score"></span>WPM</h1>
</div>
</div>
</aside>
</section>
<footer>
<div class="design-line"></div>
<div class="footer-box">
<img src="img/codepen_logo.png" alt="">
<img src="img/github_icon.png" alt="">
<img src="img/insta-logo-removebg-preview.png" alt="">
</div>
</footer>
<script defer src="./js/main.js"></script>
</body>
</html>