Widget:WJG Random Sandbox: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 505: Line 505:
}
}
function Keywords(event) {
function Keywords(event) {
var stuffs = "<div id='formSpace'></div><div class='WBRButton' id='orOp'><br />OR</div><div class='WBRButton' id='andOp'><br />AND</div><div class='WBRButton' id='showQueries'><br />SHOW</div><br /><br /><br />";
var stuffs = "<div id='formSpace'></div><div class='WBRButton' id='orOp'><br />OR</div><div class='WBRButton' id='andOp'><br />AND</div><div class='WBRButton' id='showQueries'><br />SHOW</div><br /><br /><br />";
$("#examOptions").append(stuffs);
$("#examOptions").append(stuffs);
Line 638: Line 639:
table += "<table id='CategorySelectionTable' style='width:100%;'><tr><td style='width:49%;'><h3 class='examOptionTitle'>Main Category</h3></td><td style='width:49%;'><h3 class='examOptionTitle'>Sub Category</h3></td></tr>";
table += "<table id='CategorySelectionTable' style='width:100%;'><tr><td style='width:49%;'><h3 class='examOptionTitle'>Main Category</h3></td><td style='width:49%;'><h3 class='examOptionTitle'>Sub Category</h3></td></tr>";
if (categories['sub'].length >= categories['main'].length) {}
if (categories['sub'].length >= categories['main'].length) {}
var table = "<br /><br /><h3 class='examOptionTitle'>Select All That Apply:</h3><br /><br /><br />";
var table = "<br /><br /><div id='CategorySelctorDiv'><h3 class='examOptionTitle'>Select All That Apply:</h3><br /><br /><br />";
table += "<table style='width:100%;' id ='CategorySelectionTable'><tr><td style='width:49%;'><h3 class='examOptionTitle'>Main Category</h3></td><td style='width:49%;'><h3 class='examOptionTitle'>Sub Category</h3></td></tr>";
table += "<table style='width:100%;' id ='CategorySelectionTable'><tr><td style='width:49%;'><h3 class='examOptionTitle'>Main Category</h3></td><td style='width:49%;'><h3 class='examOptionTitle'>Sub Category</h3></td></tr>";
if (categories['sub'].length >= categories['main'].length) {
if (categories['sub'].length >= categories['main'].length) {
Line 658: Line 659:
}
}
}
}
table += "</table><div id='SelectAll' class='noSelect WBRButton'>Select All Main Categories</div><div id='UnselectAll' class='noSelect WBRButton'>Select All Sub Categories</div><br /><br /><br />Second: Click the Count Question Button below to calculate number of questions available:<br /><br /><br /><div id='CountQ' class='noSelect WBRButton'>Count Questions</div><br /><br /><br /><br />"
table += "</table><div id='SelectAll' class='noSelect WBRButton'>Select All Main Categories</div><div id='UnselectAll' class='noSelect WBRButton'>Select All Sub Categories</div><br /><br /><br />Second: Click the Count Question Button below to calculate number of questions available:<br /><br /><br /><div id='CountQ' class='noSelect WBRButton'>Count Questions</div><br /><br /><br /></div>"
if ($("#examOptions").find('#SelectAll').length == 0) {
if ($("#examOptions").find('#SelectAll').length == 0) {
$("#examOptions").append(table);
$("#examOptions").append(table);
Line 779: Line 780:
}
}
function loadNextQuestion() {
function loadNextQuestion() {
$('testOptions').hide();
window.exam.examQuestions = [];
window.exam.examQuestions = [];
if (window.exam.searchMethod === "Category") {
if (window.exam.searchMethod === "Category") {

Revision as of 00:25, 17 August 2014