-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
75 lines (67 loc) · 2.32 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
<!DOCTYPE html>
<html lang="en ">
<head>
<title> Maths Game</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=yes">
<link rel="stylesheet" href="styling.css">
</head>
<body onload='getHighScore()'>
<div id="container">
<div id="correct">
Correct
</div>
<div id="wrong">
Try again
</div>
<div id="score">
Score:<span id="value">0</span>
</div>
<div id="hscore">
High Score ( per second ) : <span id="hvalue">0</span>
</div>
<div id="question">x * y</div>
<div id="instruction">Click On The Correct Answer</div>
<div id="choices">
<div id="box1" class="box">1</div>
<div id="box2" class="box">2</div>
<div id="box3" class="box">3</div>
<div id="box4" class="box">4</div>
</div>
<div id="startreset">
Start Game
</div>
<div id="timerem">
Time Remaining :<span id="time"> 60</span> sec
</div>
<div id="gameover">
<span id="one">CHECK YOUR MULTIPLICATION GAME</span>
<br><br>
<div id="timeInput">
<label for="timereq">Time(in sec):</label>
<input type="number" id="timereq" placeholder="Time"></input>
<button id="set">Set Time</button>
</div>
<span id="two"><br><br>CLICK ON THE BUTTON TO START THE GAME</span>
</div>
</div>
</body>
<script src='https://www.gstatic.com/firebasejs/7.6.1/firebase-app.js'></script>
<script src='https://www.gstatic.com/firebasejs/7.6.1/firebase-database.js'></script>
<script>
const firebaseConfig = {
apiKey: "AIzaSyDouBqy9N-f4AL5OB6SG5AxuNbZHSbqV6A",
authDomain: "mathsgame-d3ff4.firebaseapp.com",
databaseURL: "https://mathsgame-d3ff4.firebaseio.com",
projectId: "mathsgame-d3ff4",
storageBucket: "mathsgame-d3ff4.appspot.com",
messagingSenderId: "215080333608",
appId: "1:215080333608:web:f4cdeb82e06d820293601d",
measurementId: "G-RFVC1QHFY6"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
var db = firebase.database();
</script>
<script src="javascript.js"></script>
</html>