diff --git a/js/questionset.js b/js/questionset.js
index 9503447..f9e2d64 100644
--- a/js/questionset.js
+++ b/js/questionset.js
@@ -21,65 +21,65 @@ H5P.QuestionSet = function (options, contentId, contentData) {
this.contentId = contentId;
var texttemplate =
- '<% if (introPage.showIntroPage) { %>' +
- '
' +
- ' <% if (introPage.title) { %>' +
- '
<%= introPage.title %>
' +
- ' <% } %>' +
- ' <% if (introPage.introduction) { %>' +
- '
<%= introPage.introduction %>
' +
- ' <% } %>' +
- '
' +
- '
' +
- '<% } %>' +
- '' +
- ' <% for (var i=0; i
' +
- ' ' +
- ' <% } %>' +
- ' ' +
- ' ' +
- '';
+ '<% if (introPage.showIntroPage) { %>' +
+ '' +
+ ' <% if (introPage.title) { %>' +
+ '
<%= introPage.title %>
' +
+ ' <% } %>' +
+ ' <% if (introPage.introduction) { %>' +
+ '
<%= introPage.introduction %>
' +
+ ' <% } %>' +
+ '
' +
+ '
' +
+ '<% } %>' +
+ '' +
+ ' <% for (var i=0; i
' +
+ ' ' +
+ ' <% } %>' +
+ ' ' +
+ ' ' +
+ '';
var resulttemplate =
- '' +
- '
<%= message %>
' +
- '
' +
- ' <% if (comment) { %>' +
- ' ' +
- ' <% } %>' +
- ' <% if (resulttext) { %>' +
- '
<%= resulttext %>
' +
- ' <% } %>' +
- '
' +
- ' ' +
- ' ' +
- ' ' +
- '
' +
- '
';
+ '' +
+ '
<%= message %>
' +
+ '
' +
+ ' <% if (comment) { %>' +
+ ' ' +
+ ' <% } %>' +
+ ' <% if (resulttext) { %>' +
+ '
<%= resulttext %>
' +
+ ' <% } %>' +
+ '
' +
+ ' ' +
+ ' ' +
+ ' ' +
+ '
' +
+ '
';
var defaults = {
initialQuestion: 0,
@@ -135,6 +135,7 @@ H5P.QuestionSet = function (options, contentId, contentData) {
var up;
var renderSolutions = false;
var showingSolutions = false;
+ var $template;
contentData = contentData || {};
// Bring question set up to date when resuming
@@ -145,17 +146,22 @@ H5P.QuestionSet = function (options, contentId, contentData) {
questionOrder = contentData.previousState.order;
}
+
+
// Create a pool of questions if necessary
/**
* Randomizes questions in an array and updates an array containing their order
* @param {array} questions
* @param {array} questionOrder
+ *
* @return {Object.