Widget:SandboxNew: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 303: | Line 303: | ||
Q.innerHTML += "<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 /><b>Second: choose the number of questions you would like to answer. The maximum number of questions you can select is <span id='countShow'></span>.</b><br /><br /><br />Number of questions:<input type='text' id='numQues' disabled /><br /><br /><div id='Go' class='noSelect WBRButton'>Click here to begin the exam</div>"; | Q.innerHTML += "<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 /><b>Second: choose the number of questions you would like to answer. The maximum number of questions you can select is <span id='countShow'></span>.</b><br /><br /><br />Number of questions:<input type='text' id='numQues' disabled /><br /><br /><div id='Go' class='noSelect WBRButton'>Click here to begin the exam</div>"; | ||
$("#Go").click(function () { | $("#Go").click(function () { | ||
var Q = document.getElementById('question'); | |||
Q.innerHTML = "Loading..."; | |||
if (countdownCurrent) { | if (countdownCurrent) { | ||
countdownTimer.toggle(); | countdownTimer.toggle(); | ||
Line 337: | Line 338: | ||
var Questions = loadExam(exam, numQues, sSub, sMain).toString(); | var Questions = loadExam(exam, numQues, sSub, sMain).toString(); | ||
$("input[name='stash']").val(Questions); | $("input[name='stash']").val(Questions); | ||
Q.innerHTML = ""; | Q.innerHTML = ""; | ||
$('#home').css('visibility', 'visible'); | $('#home').css('visibility', 'visible'); | ||
loadQuestion(); | loadQuestion(); |