Widget:Sandbox: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 666: | Line 666: | ||
} | } | ||
if (event.data.currentQuestion > 0) { | if (event.data.currentQuestion > 0) { | ||
$("# | $("#navBar").append("<div id='back' class='noSelect WBRButton'><br />Back</div>"); | ||
$("#back").click(event.data, questionNavigation); | $("#back").click(event.data, questionNavigation); | ||
} | } | ||
if (event.data.currentQuestion < event.data.examQuestions.length - 1) { | if (event.data.currentQuestion < event.data.examQuestions.length - 1) { | ||
$("# | $("#navBar").append("<div id='next' class='noSelect WBRButton'><br />Next</div>"); | ||
$("#next").click(event.data, questionNavigation); | $("#next").click(event.data, questionNavigation); | ||
} | } | ||
if (event.data.currentQuestion == (event.data.examQuestions.length - 1)) { | if (event.data.currentQuestion == (event.data.examQuestions.length - 1)) { | ||
$("# | $("#navBar").append("<div id='finish' class='noSelect WBRButton'><br />Finish</div>"); | ||
$("#finish").click(event.data, endExam); | $("#finish").click(event.data, endExam); | ||
} | } |