Widget:WJG Sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 755: | Line 755: | ||
$("#examSpace").html(htmlStuff); | $("#examSpace").html(htmlStuff); | ||
$("#examSpace"). | $("#examSpace").prepend("<div id='details' style='display:none'> The .slideToggle() method animates the height of the matched elements. This causes lower parts of the page to slide up or down, appearing to reveal or conceal the items. If the element is initially displayed, it will be hidden; if hidden, it will be shown. The display property is saved and restored as needed. If an element has a display value of inline, then is hidden and shown, it will once again be displayed inline. When the height reaches 0 after a hiding animation, the display style property is set to none to ensure that the element no longer affects the layout of the page</div>"); | ||
if (exam.examQuestions[exam.currentQuestion].selectedAnswer !== 'F') { | if (exam.examQuestions[exam.currentQuestion].selectedAnswer !== 'F') { | ||
$("#" + exam.examQuestions[exam.currentQuestion].selectedAnswer).addClass("boxed"); | $("#" + exam.examQuestions[exam.currentQuestion].selectedAnswer).addClass("boxed"); |