-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
126 lines (121 loc) · 4.29 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
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
<!doctype html>
<html class="no-js">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta charset="utf-8">
<title>Random set of quiz questions</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Include FontAwesome for loading animation (not required to for this to work) --><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<!-- Styles that must be included for this to work --><link rel="stylesheet" type="text/css" href="quiz.css">
<!-- Nice looking styles, can be changed to make look pretty (not required to for this to work) --><link rel="stylesheet" type="text/css" href="style.css">
<!-- Include some jQuery --><script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<!-- Include Modernizr for flex-box detection (not required to for this to work) -->
<script type="text/javascript" src="js/modernizr.custom.62055.js"></script>
</head>
<body>
<div class="quiz-container">
<!-- start Version 1 of quiz - only show if random number is 1 -->
<div id="quiz1" class="quiz">
<h2>Quiz 1</h2>
<div class="questions">
<h3>Question 1</h3>
<div class="options">
<div class="answer wrong three">Wrong</div>
<div class="answer right three">Right</div>
<div class="answer wrong three">Wrong</div>
</div>
<div class="message"> </div>
</div>
<div class="questions">
<h3>Question 2</h3>
<div class="options">
<div class="answer wrong three">This answer is wrong, but it runs on two lines sometimes.</div>
<div class="answer wrong three">Wrong</div>
<div class="answer right three">Right</div>
</div>
<div class="message"> </div>
</div>
<div class="questions">
<h3>Question 3</h3>
<div class="options">
<div class="answer wrong two">Wrong</div>
<div class="answer right two">Right</div>
</div>
<div class="message"> </div>
</div>
</div>
<!-- end Version 1 -->
<!-- start Version 2 of quiz - only show if random number is 2 -->
<div id="quiz2" class="quiz">
<h2>Quiz 2</h2>
<div class="questions">
<h3>Question 1</h3>
<div class="options">
<div class="answer wrong three">This answer is wrong, but it runs on two lines sometimes.</div>
<div class="answer right three">Right</div>
<div class="answer wrong three">Wrong</div>
</div>
<div class="message"> </div>
</div>
<div class="questions">
<h3>Question 2</h3>
<div class="options">
<div class="answer wrong two">Wrong</div>
<div class="answer right two">Right</div>
</div>
<div class="message"> </div>
</div>
<div class="questions">
<h3>Question 3</h3>
<div class="options">
<div class="answer wrong three">Wrong</div>
<div class="answer wrong three">Wrong</div>
<div class="answer right three">Right</div>
</div>
<div class="message"> </div>
</div>
</div>
<!-- end Version 2 -->
<!-- start Version 3 of quiz - only show if random number is 3 -->
<div id="quiz3" class="quiz">
<h2>Quiz 3</h2>
<div class="questions">
<h3>Question 1</h3>
<div class="options">
<div class="answer wrong three">Wrong</div>
<div class="answer wrong three">Wrong</div>
<div class="answer right three">Right</div>
</div>
<div class="message"> </div>
</div>
<div class="questions">
<h3>Question 2</h3>
<div class="options">
<div class="answer wrong three">Wrong</div>
<div class="answer right three">Right</div>
<div class="answer wrong three">Wrong</div>
</div>
<div class="message"> </div>
</div>
<div class="questions">
<h3>Question 3</h3>
<div class="options">
<div class="answer right two">Right</div>
<div class="answer wrong two">This answer is wrong, but it runs on two lines sometimes.</div>
</div>
<div class="message"> </div>
</div>
</div>
<!-- end Version 3 -->
</div>
<!-- start modal box - only show if all answered correctly for any quiz option -->
<div id="winner">
<div id="modal">
Winner winner chicken dinner!
</div>
</div>
<!-- end Modal box -->
<!--Display random content--> <script type="text/javascript" src="js/display-random-content.js"></script>
<!--Check if answers are correct--><script type="text/javascript" src="js/check-quiz-answers.js"></script>
</body>
</html>