|
2 | 2 | * SlickQuiz jQuery Plugin
|
3 | 3 | * http://github.com/QuickenLoans/SlickQuiz
|
4 | 4 | *
|
5 |
| - * @updated December 18, 2010 |
| 5 | + * @updated March 25, 2013 |
6 | 6 | *
|
7 | 7 | * @author Julie Bellinson - http://www.jewlofthelotus.com
|
8 | 8 | * @copyright (c) 2012 Quicken Loans - http://www.quickenloans.com
|
|
38 | 38 | depMsg += 'The \'disableNext\' option has been deprecated, please use \'preventUnanswered\' in it\'s place.\n\n';
|
39 | 39 | }
|
40 | 40 |
|
41 |
| - if (depMsg != '') { |
| 41 | + if (depMsg !== '') { |
42 | 42 | if (typeof console != 'undefined') {
|
43 | 43 | console.warn(depMsg);
|
44 | 44 | } else {
|
|
56 | 56 | checker: '#' + selector + ' .checkAnswer',
|
57 | 57 | next: '#' + selector + ' .nextQuestion',
|
58 | 58 | back: '#' + selector + ' .backToQuestion'
|
59 |
| - } |
| 59 | + }; |
60 | 60 |
|
61 | 61 | var targets = {
|
62 | 62 | quizName: '#' + selector + ' .quizName',
|
|
66 | 66 | quizHeader: '#' + selector + ' .quizHeader',
|
67 | 67 | quizScore: '#' + selector + ' .quizScore',
|
68 | 68 | quizLevel: '#' + selector + ' .quizLevel'
|
69 |
| - } |
| 69 | + }; |
70 | 70 |
|
71 | 71 | // Set via json option or quizJSON variable (see slickQuiz-config.js)
|
72 | 72 | var quizValues = (plugin.config.json ? plugin.config.json : typeof quizJSON != 'undefined' ? quizJSON : null);
|
|
81 | 81 | 3: quizValues.info.level3, // 40-59%
|
82 | 82 | 4: quizValues.info.level4, // 20-39%
|
83 | 83 | 5: quizValues.info.level5 // 0-19%
|
84 |
| - } |
| 84 | + }; |
85 | 85 |
|
86 | 86 | // Count the number of questions
|
87 | 87 | var questionCount = questions.length;
|
|
161 | 161 |
|
162 | 162 | // Appends check answer / back / next question buttons
|
163 | 163 | if (plugin.config.backButtonText && plugin.config.backButtonText != '') {
|
164 |
| - questionHTML.append('<a href="" class="button backToQuestion">' + plugin.config.backButtonText + '</a>'); |
| 164 | + questionHTML.append('<a href="#" class="button backToQuestion">' + plugin.config.backButtonText + '</a>'); |
165 | 165 | }
|
166 | 166 |
|
167 | 167 | // If response messaging is disabled or hidden until the quiz is completed,
|
168 | 168 | // make the nextQuestion button the checkAnswer button, as well
|
169 | 169 | if (plugin.config.disableResponseMessaging || plugin.config.completionResponseMessaging) {
|
170 |
| - questionHTML.append('<a href="" class="button nextQuestion checkAnswer">' + plugin.config.nextQuestionText + '</a>'); |
| 170 | + questionHTML.append('<a href="#" class="button nextQuestion checkAnswer">' + plugin.config.nextQuestionText + '</a>'); |
171 | 171 | } else {
|
172 |
| - questionHTML.append('<a href="" class="button nextQuestion">' + plugin.config.nextQuestionText + '</a>'); |
173 |
| - questionHTML.append('<a href="" class="button checkAnswer">' + plugin.config.checkAnswerText + '</a>'); |
| 172 | + questionHTML.append('<a href="#" class="button nextQuestion">' + plugin.config.nextQuestionText + '</a>'); |
| 173 | + questionHTML.append('<a href="#" class="button checkAnswer">' + plugin.config.checkAnswerText + '</a>'); |
174 | 174 | }
|
175 | 175 |
|
176 | 176 | // Append question & answers to quiz
|
|
0 commit comments