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 594: | Line 594: | ||
$("#" + exam.examQuestions[exam.currentQuestion].selectedAnswer).removeClass("answerNoBorder"); | $("#" + exam.examQuestions[exam.currentQuestion].selectedAnswer).removeClass("answerNoBorder"); | ||
} | } | ||
$("#examSpace").append("<br /><br />The correct answer is: " + exam.examQuestions[exam.currentQuestion].RightAnswer + "<br /><br /><b>" + exam.examQuestions[exam.currentQuestion].Explanation + "</b><br /><b>Author:</b> " + | $("#examSpace").append("<br /><br />The correct answer is: " + exam.examQuestions[exam.currentQuestion].RightAnswer + "<br /><br /><b>" + exam.examQuestions[exam.currentQuestion].Explanation + "</b><br /><b>Author:</b> " + exam.examQuestions[exam.currentQuestion].PageAuthor + "<br /><br /><b>Wiki Page:</b>" + exam.examQuestions[exam.currentQuestion].PageName + "<br /><br />"); | ||
} | } | ||
} | } | ||
Line 657: | Line 657: | ||
event.data.examQuestions[event.data.currentQuestion].creditRecieved = true; | event.data.examQuestions[event.data.currentQuestion].creditRecieved = true; | ||
} | } | ||
$("#examSpace").append("<b>Author:</b> " + event.data.examQuestions[event.data.currentQuestion].PageAuthor + "<br /><br /><b>Wiki Page:</b>" + exam.examQuestions[exam.currentQuestion].PageName + "<br /><br />"); | |||
if (event.data.examType === "Tutor") { | if (event.data.examType === "Tutor") { | ||
$(".answerExp").css("height", "auto"); | $(".answerExp").css("height", "auto"); | ||
Line 667: | Line 668: | ||
} | } | ||
}); | }); | ||
} | } | ||
$("div.answer").unbind('click'); | $("div.answer").unbind('click'); |