Widget:SandboxNew: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 132: | Line 132: | ||
showButtons(); | showButtons(); | ||
$("input[name='stash']").val(Questions.toString()); | $("input[name='stash']").val(Questions.toString()); | ||
}); | }); | ||
}); | }); | ||
Line 149: | Line 148: | ||
} | } | ||
function endExam(){ | function endExam(){ | ||
hideButtons(); | hideButtons(); | ||
var correct = 0; | var correct = 0; | ||
Line 159: | Line 157: | ||
} | } | ||
var n = (100 / Results.length ) * correct; | var n = (100 / Results.length ) * correct; | ||
var Q = document.getElementById('question').innerHTML; | |||
Q = n.toString() + "% Correct!"; | |||
return; | return; | ||
} | } |