-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmath_que.html
87 lines (78 loc) · 2.84 KB
/
math_que.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
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html>
<head>
<title>IQ test</title>
<script src="https://www.gstatic.com/firebasejs/5.7.2/firebase.js"></script>
<link rel="stylesheet" type="text/css" href="que.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<script type="text/javascript" src="code.js"></script>
<script type="text/javascript" src="math_que.js"></script>
<script type="text/javascript" src="timer.js"></script>
</head>
<body onload="mathsub()">
<div class="main" id="main">
<div id="time"><div id="min">5:00</div></div>
<div id="content">
<div id="question"></div>
<div id="option">
<label class="op"><input type="radio" name="option" value="a" id="op1"><span id="opt1"></span></label>
<label class="op"><input type="radio" name="option" value="b" id="op2"><span id="opt2"></span></label>
<label class="op"><input type="radio" name="option" value="c" id="op3"><span id="opt3"></span></label>
<label class="op"><input type="radio" name="option" value="d" id="op4"><span id="opt4"></span></label>
<br><br><br>
<div id="footer"> <div id="left"><button class="button" onclick="loadPreviousQuestion()">Previous</button></div>
<div id="center"><h3></h3></div>
<div id="right"><button class="button" onclick="loadNextQuestion()"><div id="next">Next</div></button></div></div>
<br><br><br>
<divi id="submit"><button class="button" onclick="result()">Submit</button></div>
</div>
</div>
</div>
<div id="result" class="main">
<div id="score">
<table>
<tr>
<td colspan="3"><div id="name"></div></td>
</tr>
<tr>
<td><button class="circle" id="first"><div id="currect"></div></button></td>
<td><button class="circle" id="second"><div id="wrong"></div></button></td>
<td><button class="circle" id="third"><div id="blank"></div></button></td>
</tr>
<tr class="align">
<td>Currect</td>
<td>Wrong</td>
<td>Blank</td>
</tr>
<tr>
<td colspan="3" class="point"><div id="point"></div></td>
</tr>
<tr>
<td colspan="3">
<a href="index.html">
<button class="button1">Home</button>
</a>
</td>
</tr>
<tr>
<td colspan="3">
<a href="maths_lead.html">
<button class="button1">LeadBoard</button>
</a>
</td>
</tr>
</table>
</div>
</div>
<script type="text/javascript">
loadNextQuestion();
document.getElementById('left').style.visibility = "hidden";
document.getElementById('main').style.visibility = "visible";
document.getElementById('result').style.visibility = "hidden";
document.getElementById('first').disabled = true;
document.getElementById('second').disabled = true;
document.getElementById('third').disabled = true;
timer();
</script>
</body>
</html>