Widget:WJG Sandbox: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 714: Line 714:
parseQuestions(exam);
parseQuestions(exam);
} else {
} else {
var htmlStuff = "<b>Question " + (exam.currentQuestion - -1) + " / " + (exam.examQuestions.length) + "</b><br /><br />" + "<p class='hlightable'>" + obj.Prompt + "</p>"+ "<br />";
var htmlStuff = "<b>Question " + (exam.currentQuestion - -1) + " / " + (exam.examQuestions.length) + "</b><br /><br />" + "<div class='hlightable'>" + obj.Prompt + "</div>"+ "<br />";


if (obj.AnswerA && obj.AnswerA.length > 0) {
if (obj.AnswerA && obj.AnswerA.length > 0) {
Line 765: Line 765:
});
});


$('p.hlightable').textHighlighter({
$('.hlightable div p').textHighlighter({
               color: '#FFFF00'
               color: '#FFFF00'
           });
           });

Revision as of 00:02, 19 May 2014