var questions = [
{
label : 'What is the capital of Norway ?',
options : ['Stockholm', 'Oslo', 'Copenhagen'],
answer : ['Oslo']
forceAnswer : true
},
{
label : 'World champion, WC South Africa 2010 ?',
options : ['Brazil', 'Netherlands', 'Spain'],
answer : ['Spain']
},
{
label : 'Prime minister(s) of England during World War II ?',
options : ['Clement Attlee', 'Sir Winston Churchill', 'Neville Chamberlain', 'Sir Anthony Eden'],
answer : [1,2] // refers to the second and third option
}
,
{
label : 'United States has how many states',
options : ['49','50','51'],
answer : ['50']
},
{
label : 'A crocodile is a member of which family ?',
options : ['amphibian','reptile', 'vermin'],
answer : ['reptile']
},
{
label: 'In which year did Atlanta(US) arrange the summer olympics ?',
options : ['1992','1996','2000'],
answer :['1996']
}
]
function showAnswerAlert() {
$('error').set('html', 'You have to answer before you continue to the next question');
}
function clearErrorBox() {
$('error').set('html','');
}
var quizMaker = new DG.QuizMaker({
questions : questions,
el : 'questions',
listeners : {
'finish' : showScore,
'missinganswer' : showAnswerAlert,
'sendanswer' : clearErrorBox
}
});
Friday, August 29, 2014
Unknown
Vivamus fermentum ac massa vel egestas. Ut convallis augue quis pulvinar pellentesque. Cras vitae condimentum felis. Aliquam justo lectus, ultrices eget fringilla nec, aliquam ac dui. Donec nunc nunc, pretium vel metus eget, sodales auctor magna. In in nisl non nulla suscipit pharetra in ut augue.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment