-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
53 lines (50 loc) · 1.73 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
<!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">
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
<title>Maths Game</title>
</head>
<body>
<div class="container">
<div id="start-game">
<h1>Welcome to Maths Quiz game.</h1>
<p>Press the button below to start the game</p>
<a id="start-btn" onclick="restart()">LET'S PLAY</a>
</div>
<div id="in-game">
<div class="top-section">
<h1>Maths Game</h1>
<div class="game-data">
<p>Question :
<span id="Qno">0</span>/10
</p>
<p>Score: <span id="score">0</span></p>
</div>
<div id="timer">
<div id="progress"></div>
</div>
</div>
<div class="question-card">
<h1 id="question">This is question</h1>
</div>
<h3>Choose correct one: </h3>
<div class="answer-card">
<button>Option A</button>
<button>Option B</button>
<button>Option C</button>
<button>Option D</button>
</div>
</div>
<div id="end-game">
<h1>😃</h1>
<h1>Your total score was : <span id="final-score">0</span> / 1000</h1>
<p id="message"></p>
<a id="restart-btn" onclick="restart()">PLAY AGAIN</a>
</div>
</div>
</body>
</html>