-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathquiz.html
265 lines (253 loc) · 9.34 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
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Festive&family=Montserrat:wght@100;300;500&family=Nunito:wght@300&family=Quintessential&family=Roboto:wght@100&family=Rowdies:wght@300&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="main.css" />
<link rel="stylesheet" href="quiz.css" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css"
/>
<title>Take our Matchmaking Quiz!!</title>
<link rel="icon" type="image/x-icon" href="src/favicon.ico" />
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-c navbar-light">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">Home</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNavAltMarkup"
aria-controls="navbarNavAltMarkup"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-link active" aria-current="page" href="quiz.html"
>Dog Matchmaking Quiz</a
>
<a class="nav-link" href="#">About Us</a>
<a class="nav-link" href="#">Gallery</a>
<a class="nav-link" href="#">Make a Donation</a>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="title-section">
<h1 class="title-quiz">Find Your Pawfect Match</h1>
</div>
<div class="row padding-bottom">
<div class="col">
<div class="card text-center question">
<div>
<p>Do you live with small hoomans?</p>
<form class="quiz-form">
<div class="form-check">
<input
class="form-check-input radio-button"
type="radio"
value="true"
name="flexRadioDefault"
id="optionOne"
onclick="answerInput('optionOne')"
/>
<label class="form-check-label response" for="optionOne">
Yes, there're children under 16
</label>
</div>
<div class="form-check">
<input
class="form-check-input radio-button"
type="radio"
value="false"
name="flexRadioDefault"
id="optionTwo"
onclick="answerInput('optionTwo')"
/>
<label class="form-check-label response" for="optionTwo">
Nope, adult(s) only
</label>
</div>
</form>
</div>
<div class="card-footer text-muted">Question 1 of 4</div>
</div>
</div>
</div>
<div class="row padding-bottom">
<div class="col">
<div class="card text-center question">
<div>
<p>Are there any other doggos sharing your home?</p>
<form class="quiz-form">
<div class="form-check">
<input
class="form-check-input radio-button"
type="radio"
value="true"
name="flexRadioDefault"
id="optionOne2"
onclick="answerInput('optionOne2')"
/>
<label class="form-check-label response" for="optionOne2">
Yup, I already have a dog(s)
</label>
</div>
<div class="form-check">
<input
class="form-check-input radio-button"
type="radio"
value="false"
name="flexRadioDefault"
id="optionTwo2"
onclick="answerInput('optionTwo2')"
/>
<label class="form-check-label response" for="optionTwo2">
Nope, this is my first fur baby
</label>
</div>
</form>
</div>
<div class="card-footer text-muted">Question 2 of 4</div>
</div>
</div>
</div>
<div class="row padding-bottom">
<div class="col">
<div class="card text-center question">
<div>
<p>Are you open to adopting a greyhound over the age of 10?</p>
<form class="quiz-form">
<div class="form-check">
<input
class="form-check-input radio-button"
type="radio"
value="true"
name="flexRadioDefault"
id="optionOne3"
onclick="answerInput('optionOne3')"
/>
<label class="form-check-label response" for="optionOne3">
Sure, age is just a number!
</label>
</div>
<div class="form-check">
<input
class="form-check-input radio-button"
type="radio"
value="false"
name="flexRadioDefault"
id="optionTwo3"
onclick="answerInput('optionTwo3')"
/>
<label class="form-check-label response" for="optionTwo3">
I’d prefer a younger dog if possible.
</label>
</div>
</form>
</div>
<div class="card-footer text-muted">Question 3 of 4</div>
</div>
</div>
</div>
<div class="row padding-bottom">
<div class="col">
<div class="card text-center question">
<div>
<p>
Do you have a preference for the gender of your adopted dog?
</p>
<form class="quiz-form">
<div class="form-check">
<input
class="form-check-input radio-button"
type="radio"
value="true"
name="flexRadioDefault"
id="optionOne4"
onclick="answerInput('optionOne4')"
/>
<label class="form-check-label response" for="optionOne4">
Female
</label>
</div>
<div class="form-check">
<input
class="form-check-input radio-button"
type="radio"
value="false"
name="flexRadioDefault"
id="optionTwo4"
onclick="answerInput('optionTwo4')"
/>
<label class="form-check-label response" for="optionTwo4">
Male
</label>
</div>
</form>
</div>
<div class="card-footer text-muted">Question 4 of 4</div>
</div>
</div>
</div>
<div class="d-grid gap-3 col-6 mx-auto mg-bt">
<button
type="button"
class="btn btn-secondary fs-4"
onclick="getDoggie(answersList)"
>
Show Me My Match!
</button>
</div>
</div>
<div class="match-result text-center"></div>
<div class="qbn d-grid gap-3 col-6 mx-auto mg-bt mt-3"></div>
<footer class="footer">
<div class="footerlinks container-fluid">
<div>
<a>Contact Us</a>
<a>FAQs</a>
</div>
<div>
<i class="bi bi-facebook px-2" style="font-size: 2rem"></i>
<i class="bi bi-instagram px-2" style="font-size: 2rem"></i>
<i class="bi bi-twitter px-2" style="font-size: 2rem"></i>
</div>
<p>Greyhound Rehoming Centre Registered Charity number XXXX</p>
</div>
</footer>
<script src="lodash.js"></script>
<script src="quiz.js" defer></script>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js"
integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js"
integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13"
crossorigin="anonymous"
></script>
</body>
</html>