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 />" + "<div class='hlightable'>" + obj.Prompt + "</div>"+ "<br />";
var htmlStuff = "<b>Question " + (exam.currentQuestion - -1) + " / " + (exam.examQuestions.length) + "</b><br /><br />" + "<div id='hightlightable'>" + obj.Prompt +"</div>"+<br />";


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


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

Revision as of 00:11, 19 May 2014