-
Notifications
You must be signed in to change notification settings - Fork 5
/
survey.html
477 lines (398 loc) · 31.2 KB
/
survey.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
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
<!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">
<meta name="description" content="">
<meta name="author" content="">
<title>Helping Hands</title>
<!-- Bootstrap Core CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<!-- Custom Fonts -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<!--<link href='http://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>-->
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" type="text/css">
<!-- Plugin CSS -->
<link rel="stylesheet" href="css/animate.min.css" type="text/css">
<link rel="icon" href="img/logo_2.ico" type="image/x-icon" />
<!-- Custom CSS -->
<link rel="stylesheet" href="css/creative.css" type="text/css">
<link rel="stylesheet" href="css/survey.css">
<!-- start Mixpanel -->
<script type="text/javascript">(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f)}})(document,window.mixpanel||[]);
mixpanel.init("d93d97cee06cf5e57454f8744aa4281c");
</script><!-- end Mixpanel -->
<script src="navbar.js"></script>
<script src="footer.js"></script>
</head>
<body class="bg-primary">
<p style= "margin:90px;"></p>
<h1 style="text-align: center; margin-bottom: 30px;">Volunteer Personality Quiz</h1>
<p style="margin-top: 30px; margin-bottom: 30px; margin-left: 120px; margin-right: 120px;">With so many worthy causes out there, choosing the right volunteer opportunity can be overwhelming. This short Volunteer Personality Quiz will help you identify the kind of volunteer activity that best suits you.</p>
<div style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"> </div>
<div class="row">
<div class="col-xs-6 col-md-4">
</div>
<div class="col-xs-6 col-md-4">
<form id="hhsurvey">
<!-- Question 1-->
<div style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><strong><span>1.<span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>In a working situation, which would you most likely do?</strong></div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><input type="radio" name="group1" value="1"> Work outdoors or with animals </div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><input type="radio" name="group1" value="2"> Teach and mentor others</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><input type="radio" name="group1" value="3"> Work as a team, or collaborate with others</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><input type="radio" name="group1" value="4"> Work by yourself with numbers and data</div>
<!-- Question 2-->
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"> </div>
<div style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><strong><span>2.<span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Which word best describes you?</strong></div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><input type="radio" name="group2" value="1"> Active</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><input type="radio" name="group2" value="2"> Enthusiastic</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><input type="radio" name="group2" value="3"> Creative</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><input type="radio" name="group2" value="4"> Organized</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"> </div>
<div style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><strong><span>3.<span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>If you could meet one of these people who would it be?</strong></div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group3" value="1"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Marshawn Lynch</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group3" value="2"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Nelson Mandela</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group3" value="3"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Lady Gaga</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group3" value="4"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Mark Zuckerberg</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"> </div>
<div style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><strong><span>4.<span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>If you had a million dollars to give to charity, which of these local organizations would you donate to?</strong></div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group4" value="1"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Outdoors for All – outdoor recreation for children and adults with disabilities</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group4" value="2"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>YouthCare – services for homeless youth</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group4" value="3"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>The Vera Project – engaging youth in music and arts</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group4" value="4"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>TAF – technology education for low-income students</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"> </div>
<div style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><strong><span>5.<span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>What is your favorite class of the day?</strong></div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group5" value="1"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>P.E.</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group5" value="2"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Contemporary World Problems/Social Studies</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group5" value="3"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Ceramics</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group5" value="4"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Math</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"> </div>
<div style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><strong><span>6.<span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>When faced with a problem, what is the first thing you usually do?</strong></div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group6" value="1"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Come up with a strategy to solve the problem</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group6" value="2"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Gather information to try and find out what caused the problem</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group6" value="3"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Visualize the problem, and how you may be able to solve it</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group6" value="4"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Figure out the details of the problem</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"> </div>
<div style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><strong><span>7.<span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>How do you like to spend your summer vacation?</strong></div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group7" value="1"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Camping</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group7" value="2"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Spending time with friends and relatives</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group7" value="3"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Taking and editing photos</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group7" value="4"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Working at a summer job</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"> </div>
<div style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><strong><span>8.<span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>During Spring Break, would you rather</strong></div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group8" value="1"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Take a trip to Costa Rica</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group8" value="2"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Volunteer to build homes with Habitat for Humanity</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group8" value="3"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Go to the library, or go see a play</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group8" value="4"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Do your homework</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"> </div>
<div style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><strong><span>9.<span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Which item would you rather receive as a gift for your birthday?</strong></div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group9" value="1"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Sports equipment</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group9" value="2"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Donations to your favorite charity, made in your name</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group9" value="3"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Music and movies</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group9" value="4"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Video Games</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"> </div>
<div style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><strong><span>10.<span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>What is your favorite type of store to kill time in?</strong></div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group10" value="1"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>REI or Big 5</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group10" value="2"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Barnes and Noble</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group10" value="3"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Arts and Crafts stores</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group10" value="4"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Electronics store, like Best Buy</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"> </div>
<div style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><strong><span>11.<span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>After graduating college you are offered four different jobs. Which one would you choose?</strong></div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group11" value="1"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Professional athlete</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group11" value="2"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Grants Manager for Gates Foundation</div>
<div style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group11" value="3"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Photographer for Time Magazine</div>
<div style="margin: 0in 0in 10pt 1in; text-indent: -0.25in;"><span><input type="radio" name="group11" value="4"><span style="font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;"> </span></span>Executive position at Microsoft</div>
</form>
</div>
<div class="col-xs-6 col-md-4"></div>
</div>
<!-- Button -->
<div class="row">
<br><br>
<div class="col-xs-6 col-md-4"></div>
<div class="col-xs-6 col-md-4"><a style="display:block; margin:auto;" class="btn btn-default btn-xl" onclick="findStyle()" >Submit</a></div>
<div class="col-xs-6 col-md-4"></div>
</div>
<p style="margin: 30px;" id="outMessage"></p>
<div style="margin-bottom: 30px;" class="row">
<!--
<div class="col-xs-6 col-md-4"></div>
<div class="col-xs-6 col-md-4">
<a href="index.html" class="btn btn-default btn-xl" style="display:block; margin:auto;">Back to Main Page</a>
</div>
<div class="col-xs-6 col-md-4"></div>
</div>-->
<script>
function findStyle() {
console.log("Start function");
var a = 0, b = 0, c = 0, d = 0, i = 1;
var radiobutton1 = $('input[name="group1"]:checked', '#hhsurvey').val();
if (radiobutton1 == 1){
a++;
console.log("a");
} else if (radiobutton1 == 2){
b++;
console.log("b");
}else if (radiobutton1 == 3){
c++;
console.log("c");
}else if (radiobutton1 == 4){
d++;
console.log("d");
}else{
var skipped1= true;
}
var radiobutton2 = $('input[name="group2"]:checked', '#hhsurvey').val();
if (radiobutton2 == 1){
a++;
console.log("a");
} else if (radiobutton2 == 2){
b++;
console.log("b");
}else if (radiobutton2 == 3){
c++;
console.log("c");
}else if (radiobutton2 == 4){
d++;
console.log("d");
}else{
var skipped2= true;
}
var radiobutton3 = $('input[name="group3"]:checked', '#hhsurvey').val();
if (radiobutton3 == 1){
a++;
console.log("a");
} else if (radiobutton3 == 2){
b++;
console.log("b");
}else if (radiobutton3 == 3){
c++;
console.log("c");
}else if (radiobutton3 == 4){
d++;
console.log("d");
}else{
var skipped3= true;
}
var radiobutton4 = $('input[name="group4"]:checked', '#hhsurvey').val();
if (radiobutton4 == 1){
a++;
console.log("a");
} else if (radiobutton4 == 2){
b++;
console.log("b");
}else if (radiobutton4 == 3){
c++;
console.log("c");
}else if (radiobutton4 == 4){
d++;
console.log("d");
}else{
var skipped4= true;
}
var radiobutton5 = $('input[name="group5"]:checked', '#hhsurvey').val();
if (radiobutton5 == 1){
a++;
console.log("a");
} else if (radiobutton5 == 2){
b++;
console.log("b");
}else if (radiobutton5 == 3){
c++;
console.log("c");
}else if (radiobutton5 == 4){
d++;
console.log("d");
}else{
var skipped5= true;
}
var radiobutton6 = $('input[name="group6"]:checked', '#hhsurvey').val();
if (radiobutton6 == 1){
a++;
console.log("a");
} else if (radiobutton6 == 2){
b++;
console.log("b");
}else if (radiobutton6 == 3){
c++;
console.log("c");
}else if (radiobutton6 == 4){
d++;
console.log("d");
}else{
var skipped6= true;
}
var radiobutton7 = $('input[name="group7"]:checked', '#hhsurvey').val();
if (radiobutton7 == 1){
a++;
console.log("a");
} else if (radiobutton7 == 2){
b++;
console.log("b");
}else if (radiobutton7 == 3){
c++;
console.log("c");
}else if (radiobutton7 == 4){
d++;
console.log("d");
}else{
var skipped7= true;
}
var radiobutton8 = $('input[name="group8"]:checked', '#hhsurvey').val();
if (radiobutton8 == 1){
a++;
console.log("a");
} else if (radiobutton8 == 2){
b++;
console.log("b");
}else if (radiobutton8 == 3){
c++;
console.log("c");
}else if (radiobutton8 == 4){
d++;
console.log("d");
}else{
var skipped8= true;
}
var radiobutton9 = $('input[name="group9"]:checked', '#hhsurvey').val();
if (radiobutton9 == 1){
a++;
console.log("a");
} else if (radiobutton9 == 2){
b++;
console.log("b");
}else if (radiobutton9 == 3){
c++;
console.log("c");
}else if (radiobutton9 == 4){
d++;
console.log("d");
}else{
var skipped9= true;
}
var radiobutton10 = $('input[name="group10"]:checked', '#hhsurvey').val();
if (radiobutton10 == 1){
a++;
console.log("a");
} else if (radiobutton10 == 2){
b++;
console.log("b");
}else if (radiobutton10 == 3){
c++;
console.log("c");
}else if (radiobutton10 == 4){
d++;
console.log("d");
}else{
var skipped10= true;
}
var radiobutton11 = $('input[name="group11"]:checked', '#hhsurvey').val();
if (radiobutton11 == 1){
a++;
console.log("a");
} else if (radiobutton11 == 2){
b++;
console.log("b");
}else if (radiobutton11 == 3){
c++;
console.log("c");
}else if (radiobutton11 == 4){
d++;
console.log("d");
}else{
var skipped11= true;
}
//Mixpanel Tracking
mixpanel.track("answer for #1 is"+radiobutton1);
mixpanel.track("answer for #2 is"+radiobutton2);
mixpanel.track("answer for #3 is"+radiobutton3);
mixpanel.track("answer for #4 is"+radiobutton4);
mixpanel.track("answer for #5 is"+radiobutton5);
mixpanel.track("answer for #6 is"+radiobutton6);
mixpanel.track("answer for #7 is"+radiobutton7);
mixpanel.track("answer for #8 is"+radiobutton8);
mixpanel.track("answer for #9 is"+radiobutton9);
mixpanel.track("answer for #10 is"+radiobutton10);
mixpanel.track("answer for #11 is"+radiobutton11);
//See what they skipped
var messsageOut="You skipped ";
if (skipped1){
messsageOut=messsageOut.concat("Question 1, ");
}
if (skipped2){
messsageOut=messsageOut.concat("Question 2, ");
}
if (skipped3){
messsageOut=messsageOut.concat("Question 3, ");
}
if (skipped4){
messsageOut=messsageOut.concat("Question 4, ");
}
if (skipped5){
messsageOut=messsageOut.concat("Question 5, ");
}
if (skipped6){
messsageOut=messsageOut.concat("Question 6, ");
}
if (skipped7){
messsageOut=messsageOut.concat("Question 7, ");
}
if (skipped8){
messsageOut=messsageOut.concat("Question 8, ");
}
if (skipped9){
messsageOut=messsageOut.concat("Question 9, ");
}
if (skipped10){
messsageOut=messsageOut.concat("Question 10, ");
}
if (skipped11){
messsageOut=messsageOut.concat("Question 11 ");
}
if(skipped1||skipped2||skipped3||skipped4||skipped5||skipped6||skipped7||skipped8||skipped9||skipped10||skipped11){
alert(messsageOut)
}
//Now for calculations
if(a > b && a > c && a > d){
var studentAnswer="Your volunteer style is... Active/Hands-on. \nYou might enjoy...Coaching, Environmental Work,Community Gardening, Building/construction.";
}
else if(b > a && b > c && b > d){
var studentAnswer="Your volunteer style is... Social Helper. \nYou might enjoy...Coaching, Environmental Work, Community Gardening, Building/construction.";
}
else if(c > a && c > b && c > d){
var studentAnswer="Your volunteer style is... Artistic/Creative. \nYou might enjoy...Arts & Crafts, Painting, Web Design, Event Photography, Story Telling..";
}
else if(d > a && d > b && d > c){
var studentAnswer="Your volunteer style is... Technical and administrative. \nYou might enjoy...Computers & IT, Data entry, Editing, Office Work.";
} else{
var studentAnswer="You gave no answers. Answer all 11 questions to get your full result";
}
document.getElementById("outMessage").innerHTML = studentAnswer;
}
</script>
<script type="text/javascript">
mixpanel.track("Survey Page Loaded.");
console.log("Survey Page Loaded.");
mixpanel.track_links("#nav a", "click nav link", {
"referrer": document.referrer
});
mixpanel.track('page viewed', {
'page name' : document.title,
'url' : window.location.pathname
});
console.log("page has been loaded and end of scripts");
</script>
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.fittext.js"></script>
<script src="js/wow.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="js/creative.js"></script>
</body>
</html>