-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (47 loc) · 1.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href=".css">
<title>Typing Game</title>
</head>
<body>
<header class="bg-secondary text-center p-3 mb-5">
<h1>Fastest Fingers</h1>
</header>
<div class="container text-center">
<!-- Word and input section -->
<div class="row">
<div class="col-md-6 mx-auto">
<p class="lead">Type the given word within <span class="text-success " id="seconds">5</span>seconds:</p>
<h2 class="display-2 mb-5" id="current-word">hello</h2>
<input type="text" class="form-control form-control-lg" placeholder="start typing...." id="word-input" autofocus>
<h4 class="mt-3" id="message"></h4>
<!-- Word and input section ends -->
<!-- Time and score section -->
<div class="row mt-5">
<div class="col-md-6">
<h3>Time left: <span id="time">0</span> </h3>
</div>
<div class="col-md-6">
<h3>Score: <span id="score">0</span> </h3>
</div>
</div>
<!-- Time and score section ends -->
<!-- Instruction section -->
<div class="row mt-5">
<div class="col-md-12">
<div class="card card-body bg-secondary">
<h5>Instruction</h5>
<p>Type each word within the given time. To restart, type the new word.</p>
</div>
</div>
</div>
<!-- Instruction section ends -->
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>