-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (59 loc) · 2.67 KB
/
index.html
File metadata and controls
64 lines (59 loc) · 2.67 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
<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">
<link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css">
<link rel="icon" type="image/ico" href="assets/favicon.ico" />
<title>Typing Game</title>
</head>
<body class="bg-dark text-white">
<header class="bg-warning text-center py-3 mb-5">
<h2> Let's Play Now! </h2>
</header>
<section class="text-center ">
<div class="container">
<h5> Type the given word within <span id="seconds" class="text-info">5</span> seconds </h5>
<h1 id="current-word" class="display-2 mb-4"><span class="text-warning">3..2..1 go!!!</span></h1>
<div class="row">
<div class="col-md-6 mx-auto">
<input type="text" class="form-control form-control-lg" placeholder="Start typing.." id="word-input"
autofocus>
<p class="fs-5 mt-3" id="message"></p>
<button class="d-none" id="tryAgain">Try again</button>
<!-- Time and Score -->
<div class="row mt-5">
<div class="col-md-6">
<h4>Time Left:
<span id="time">0</span>
</h4>
</div>
<div class="col-md-6">
<h4>Score:
<span id="score">0</span>
</h4>
</div>
</div>
<!-- Instructions -->
<div class="row my-4">
<div class="col-md-12">
<div class=" card card-body bg-warning">
<h6> Instructions </h6>
<div class="card-text">
Type each word in the given amount of seconds
to score. To play again, just click the Try again
button. Your score will reset.
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="./bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="./Js/main.js"></script>
</body>
</html>