Project

General

Profile

1
$(function () {
2
    var $slickQuiz = $('#slickQuiz');
3
    $slickQuiz.slickQuiz();
4

    
5
    altair_md.checkbox_radio($slickQuiz.find('.questions').find('input[type="checkbox"],input[type="radio"]'));
6
});
7

    
8
var quizJSON = {
9
    "info": {
10
        "name":    "Test Your Knowledge!!",
11
        "main":    "<p>Think you're smart enough to be on Jeopardy? Find out with this super crazy knowledge quiz!</p>",
12
        "results": "<h5>Learn More</h5><p>Etiam scelerisque, nunc ac egestas consequat, odio nibh euismod nulla, eget auctor orci nibh vel nisi. Aliquam erat volutpat. Mauris vel neque sit amet nunc gravida congue sed sit amet purus.</p>",
13
        "level1":  "Jeopardy Ready",
14
        "level2":  "Jeopardy Contender",
15
        "level3":  "Jeopardy Amateur",
16
        "level4":  "Jeopardy Newb",
17
        "level5":  "Stay in school, kid..." // no comma here
18
    },
19
    "questions": [
20
        { // Question 1 - Multiple Choice, Single True Answer
21
            "q": "What number is the letter A in the English alphabet?",
22
            "a": [
23
                {"option": "8",      "correct": false},
24
                {"option": "14",     "correct": false},
25
                {"option": "1",      "correct": true},
26
                {"option": "23",     "correct": false} // no comma here
27
            ],
28
            "correct": "<p><span>That's right!</span> The letter A is the first letter in the alphabet!</p>",
29
            "incorrect": "<p><span>Uhh no.</span> It's the first letter of the alphabet. Did you actually <em>go</em> to kindergarden?</p>" // no comma here
30
        },
31
        { // Question 2 - Multiple Choice, Multiple True Answers, Select Any
32
            "q": "Which of the following best represents your preferred breakfast?",
33
            "a": [
34
                {"option": "Bacon and eggs",               "correct": false},
35
                {"option": "Fruit, oatmeal, and yogurt",   "correct": true},
36
                {"option": "Leftover pizza",               "correct": false},
37
                {"option": "Eggs, fruit, toast, and milk", "correct": true} // no comma here
38
            ],
39
            "select_any": true,
40
            "correct": "<p><span>Nice!</span> Your cholestoral level is probably doing alright.</p>",
41
            "incorrect": "<p><span>Hmmm.</span> You might want to reconsider your options.</p>" // no comma here
42
        },
43
        { // Question 3 - Multiple Choice, Multiple True Answers, Select All
44
            "q": "Where are you right now? Select ALL that apply.",
45
            "a": [
46
                {"option": "Planet Earth",           "correct": true},
47
                {"option": "Pluto",                  "correct": false},
48
                {"option": "At a computing device",  "correct": true},
49
                {"option": "The Milky Way",          "correct": true} // no comma here
50
            ],
51
            "correct": "<p><span>Brilliant!</span> You're seriously a genius, (wo)man.</p>",
52
            "incorrect": "<p><span>Not Quite.</span> You're actually on Planet Earth, in The Milky Way, At a computer. But nice try.</p>" // no comma here
53
        },
54
        { // Question 4
55
            "q": "How many inches of rain does Michigan get on average per year?",
56
            "a": [
57
                {"option": "149",    "correct": false},
58
                {"option": "32",     "correct": true},
59
                {"option": "3",      "correct": false},
60
                {"option": "1291",   "correct": false} // no comma here
61
            ],
62
            "correct": "<p><span>Holy bananas!</span> I didn't actually expect you to know that! Correct!</p>",
63
            "incorrect": "<p><span>Fail.</span> Sorry. You lose. It actually rains approximately 32 inches a year in Michigan.</p>" // no comma here
64
        },
65
        { // Question 5
66
            "q": "Is Earth bigger than a basketball?",
67
            "a": [
68
                {"option": "Yes",    "correct": true},
69
                {"option": "No",     "correct": false} // no comma here
70
            ],
71
            "correct": "<p><span>Good Job!</span> You must be very observant!</p>",
72
            "incorrect": "<p><span>ERRRR!</span> What planet Earth are <em>you</em> living on?!?</p>" // no comma here
73
        } // no comma here
74
    ]
75
};
(57-57/114)