Widget:WJG Sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 699: | Line 699: | ||
$("#finish").click(exam, endExam); | $("#finish").click(exam, endExam); | ||
$("#flag").click(exam, flagQ); | $("#flag").click(exam, flagQ); | ||
$("#lab_vals").click(exam, showLabs); | |||
if (exam.timer) { | if (exam.timer) { | ||
$("#bodyContent").append("<div style='position:absolute; z-index:1000; width:300px; height:50px; top:0px; right:0px; border: 1px solid #000; background-color:#EEE; float:right; visibility:hidden;' id='timerBox'>Testing.</div>"); | $("#bodyContent").append("<div style='position:absolute; z-index:1000; width:300px; height:50px; top:0px; right:0px; border: 1px solid #000; background-color:#EEE; float:right; visibility:hidden;' id='timerBox'>Testing.</div>"); | ||
Line 779: | Line 780: | ||
color: '#FFFF00' | color: '#FFFF00' | ||
}); | }); | ||
} | } | ||
} | } | ||
Line 980: | Line 973: | ||
$("#" + event.data.currentQuestion).toggleClass("flagged"); | $("#" + event.data.currentQuestion).toggleClass("flagged"); | ||
} | } | ||
function showLabs(event) { | |||
$("#details").stop(); | |||
$("#details").slideToggle("slow");} | |||
function endExam(event) { | function endExam(event) { |