define(['questAPI'], function(quest){ var API = new quest(); /** Question-prototypes **/ API.addQuestionsSet('basicSelect', { type: 'selectOne', style:'multiButtons', autoSubmit:true, numericValues:true, required:false, errorMsg: { required: "Please select an answer, or click 'decline to answer'" } }); // each stim API.addQuestionsSet('infoQuest', [ { inherit : 'basicSelect', name : 'infoQuest', stem : '
'+
"
Now that you’ve memorized which resource comes from which machine, you’re ready to play round 2 of the Nourishment Game."+
"
However, before you play round 2, you’ll complete a brief sorting task and answer a few questions."+
"
When you’re ready, proceed to complete the sorting task."+
"
Once you’re done with the sorting task and the questions, round 2 will begin."+
"
",
onLoad: function(log, current) {
// hide continue button
document.querySelector('#minno-app > div > div.ng-scope.ng-isolate-scope > div > div > div.page-buttons > button').style.visibility = "hidden";
var delayInMilliseconds = 2000;
setTimeout(function() {
//this code will be executed after 5 seconds
document.querySelector('#minno-app > div > div.ng-scope.ng-isolate-scope > div > div > div.page-buttons > button').style.visibility = "visible";
}, delayInMilliseconds);
} // function ends
}
]);
/**
Pages
**/
API.addPagesSet('basicPage',
{
decline:false,
v1style:2,
numbered: false,
noSubmit:false, //Change to true if you don't want to show the submit button.
submitText: "Continue"
});
/**
Sequence
**/
API.addSequence(
[
{inherit : 'basicPage',
questions : {inherit:{set:'infoQuest'}}}
]);
return API.script;
});