-
Notifications
You must be signed in to change notification settings - Fork 4
/
mcq-quiz.html
152 lines (149 loc) · 3.46 KB
/
mcq-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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<html>
<head>
<title>JS Quiz</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="mcq.js"></script>
<style>
h1 {
font-family:'Gabriola', serif;
text-align: center;
}
ul {
list-style: none;
}
li {
font-family:'Cambria', serif;
font-size: 1.5em;
}
input[type=radio] {
border: 0px;
width: 20px;
height: 2em;
}
p {
font-family:'Gabriola', serif;
}
/* Quiz Classes */
.quizContainer {
background-color: white;
border-radius: 6px;
width: 75%;
margin: auto;
padding-top: 5px;
/*-moz-box-shadow: 10px 10px 5px #888;
-webkit-box-shadow: 10px 10px 5px #888;
box-shadow: 10px 10px 5px #888;*/
position: relative;
}
.quizcontainer #quiz1
{
text-shadow:1px 1px 2px orange;
font-family:"Georgia", Arial, sans-serif;
}
.nextButton {
box-shadow: 3px 3px 5px #888;
border-radius: 6px;
/* width: 150px;*/
height: 40px;
text-align: center;
background-color: lightgrey;
/*clear: both;*/
color: red;
font-family:'Gabriola', serif;
position: relative;
margin: auto;
font-size:25px;
font-weight:bold;
padding-top: 5px;
float:right;
right:30%;
}
.preButton {
box-shadow: 3px 3px 5px #888;
border-radius: 6px;
/*width: 150px;*/
height: 40px;
text-align: center;
background-color: lightgrey;
/*clear: both;*/
color: red;
font-family:'Gabriola', serif;
position: relative;
margin: auto;
font-size:25px;
font-weight:bold;
padding-top: 5px;
float:left;
left:30%;
}
.question {
font-family:'Century', serif;
font-size: 1.5em;
font-weight:bold;
width: 100%;
height: auto;
margin: auto;
border-radius: 6px;
background-color: #f3dc45;
text-align: center;
}
.quizMessage {
background-color: peachpuff;
border-radius: 6px;
width: 20%;
margin: auto;
text-align: center;
padding: 5px;
font-size:20px;
font-weight:bold;
font-family:'Gabriola', serif;
color: red;
position:absolute;
top:80%;
left:40%;
}
.choiceList {
font-family: 'Arial', serif;
color: #ed12cd;
font-size:15px;
font-weight:bold;
}
.result {
width: 40%;
height: auto;
border-radius: 6px;
background-color: linen;
margin: auto;
color:green;
text-align: center;
font-size:25px;
font-family:'Verdana', serif;
font-weight:bold;
position:absolute;
top:80%;
left:30%;
}
</style>
</head>
<body>
<div class="quizContainer container-fluid well well-lg">
<div id="quiz1" class="text-center">
<h3>Sam's coding club</h3>
<center><img class="img-responsive" height="180" width="180" src="hibiscus.jpg"></center>
<h4 style="color:#FF0000;position:absolute;left:70%;top:30%;" align="center" ><span id="iTimeShow">Time Remaining: </span><br/><span id='timer' style="font-size:25px;"></span></h4>
<h2>jQuery Quiz</h2>
</div>
<div class="question"></div>
<ul class="choiceList"></ul>
<div class="quizMessage"></div>
<div class="result"></div>
<button class="preButton">Previous Question</button>
<button class="nextButton">Next Question</button>
</div>
</body>
</html>