parent
c045d440d9
commit
333d3f4161
|
@ -327,8 +327,19 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
});
|
});
|
||||||
hookUpButton('.qs-retrybutton', function () {
|
hookUpButton('.qs-retrybutton', function () {
|
||||||
resetTask();
|
resetTask();
|
||||||
$myDom.children().hide().filter('.questionset').show();
|
$myDom.children().hide();
|
||||||
_showQuestion(params.initialQuestion);
|
|
||||||
|
var $intro = $('.intro-page', $myDom);
|
||||||
|
if ($intro.length) {
|
||||||
|
// Show intro
|
||||||
|
$('.intro-page', $myDom).show();
|
||||||
|
//$('.questionset', $myDom).show();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Show first question
|
||||||
|
$('.questionset', $myDom).show();
|
||||||
|
_showQuestion(params.initialQuestion);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (scoreBar === undefined) {
|
if (scoreBar === undefined) {
|
||||||
|
@ -488,8 +499,8 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
|
|
||||||
$('.qs-startbutton', $myDom).click(function () {
|
$('.qs-startbutton', $myDom).click(function () {
|
||||||
$(this).parents('.intro-page').hide();
|
$(this).parents('.intro-page').hide();
|
||||||
$('.questionset', $myDom).removeClass('hidden');
|
$('.questionset', $myDom).show();
|
||||||
_showQuestion(currentQuestion);
|
_showQuestion(params.initialQuestion);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Set event listeners.
|
// Set event listeners.
|
||||||
|
|
Loading…
Reference in New Issue