diff --git a/js/questionset.js b/js/questionset.js index 9a482de..59d7feb 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -7,12 +7,17 @@ // answers: [{text: "Answer text", correct: false}, ...], // singleAnswer: true, // or false, will change rendered output slightly. // } +// +// Events provided: +// - h5pQuestionSetFinished: Triggered when a question is finished. (User presses Finish-button) window.H5P = window.H5P || {}; H5P.QuestionSet = function (options) { if ( !(this instanceof H5P.QuestionSet) ) return new H5P.QuestionSet(options); + var $ = H5P.jQuery; + var texttemplate = '' + '