How much electricity is generated from hydropower? How many batteries are recycled? And what has been the increase in electric car registrations? Put your knowledge to the test by taking our energy quiz* about facts and figures from Switzerland.
Quiz: Energy Facts and Figures
Correctly answered questions:
Rank:
'); questionHTML.append('
' + count + '. ' + question.q + '
'); // Count the number of true values var truths = 0; for (i in question.a) { if (question.a.hasOwnProperty(i)) { var answer = question.a[i]; if (answer.correct) { truths++; } } }; // prepare a name for the answer inputs based on the question var inputName = 'question' + (count - 1); // Now let's append the answers with checkboxes or radios depending on truth count var answerHTML = $('
'); var answers = plugin.config.randomSort || plugin.config.randomSortAnswers ? question.a.sort(function() { return (Math.round(Math.random())-0.5); }) : question.a; for (i in answers) { if (answers.hasOwnProperty(i)) { var answer = answers[i], optionId = inputName + '_' + i.toString(); // If question has >1 true answers, use checkboxes; otherwise, radios var input = ''; var optionLabel = '' + answer.option + ''; var answerContent = $('
'); responseHTML.append('
'); responseHTML.append('
'); // Append responses to question questionHTML.append(responseHTML); } // Appends check answer / back / next question buttons if (plugin.config.backButtonText && plugin.config.backButtonText != '') { questionHTML.append('' + plugin.config.backButtonText + ''); } // If response messaging is disabled or hidden until the quiz is completed, // make the nextQuestion button the checkAnswer button, as well if (plugin.config.disableResponseMessaging || plugin.config.completionResponseMessaging) { questionHTML.append('' + plugin.config.nextQuestionText + ''); } else { questionHTML.append('' + plugin.config.nextQuestionText + ''); questionHTML.append('' + plugin.config.checkAnswerText + '