-
Notifications
You must be signed in to change notification settings - Fork 0
/
quiz.html
100 lines (94 loc) · 4.74 KB
/
quiz.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
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>JavaScript Quiz</title>
<link rel="shortcut icon" href="img/m.ico" type="image/x-icon">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/registration.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
</head>
<body class="row" id="body">
<div class="col-md-12">
<div class="col" id="content">
<div id="quizContainer">
<div class="modal-header">
<h5>
<i class="fa fa-question-circle"></i>
<span> </span>
<span class="label label-warning" id="question"></span>
</h5>
<h5 id="timer"></h5>
</div>
<div class="modal-body">
<div class="quiz" id="quiz" data-toggle="buttons">
<label class="btn btn-lg btn-info btn-block">
<span class="btn-label">
<input type="radio" name="option" value="1" onchange="func1();">
<br>
<i class="fa fa-arrow-right"></i>
</span>
<span id="option1"></span>
</label>
<label class="btn btn-lg btn-info btn-block">
<span class="btn-label">
<input type="radio" name="option" value="2" onchange="func1();">
<br>
<i class="fa fa-arrow-right"></i>
</span>
<span id="option2"></span>
</label>
<label class="btn btn-lg btn-info btn-block">
<span class="btn-label">
<input type="radio" name="option" value="3" onchange="func1();">
<br>
<i class="fa fa-arrow-right"></i>
</span>
<span id="option3"></span>
</label>
<label class="btn btn-lg btn-info btn-block">
<span class="btn-label">
<input type="radio" name="option" value="4" onchange="func1();">
<br>
<i class="fa fa-arrow-right"></i>
</span>
<span id="option4"></span>
</label>
<button onclick="next()" class="btn btn-success pull-right" disabled id="nextButton">
<i class="fa fa-angle-double-right"></i> Next Question</button>
<span id="ans"></span>
<br>
<br>
</div>
</div>
</div>
<div id="resultContainer" style="display:none;">
<div class="modal-header">
<h3 id="remarks" class="text-center"></h3>
</div>
<div class="modal-body">
<label class="label btn-lg btn-block text-center" id="scoreAns">
<h3 id="score"></h3>
</label>
<label class="label btn-lg btn-block alert-primary">
<h5 id="correct" class="text-center"></h5>
</label>
<label class="label btn-lg btn-block alert-primary">
<h5 id="wrong" class="text-center"></h5>
</label>
<button class="btn btn-secondary pull-right" onclick="window.location.replace('profile.html')">
<i class="fa fa-undo"></i> Retake Quiz
</button>
</div>
<p class="badge badge-warning text-center">My IDs</p><br>
<a href="https://github.com/ManalLiaquat/" class="badge badge-secondary text-center" target="_blank"><h3><i class="fa fa-github"></i></h3></a>
<a href="https://www.linkedin.com/in/manal-liaquat-621684156/" class="badge badge-info text-center" target="_blank"><h3><i class="fa fa-linkedin"></i></h3></a>
</div>
</div>
</div>
<script src="js/quiz.js"></script>
</body>
</html>