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 87: Line 87:
}
}


function loginCheck(arg, exam) {
function loginCheck(exam) {
var Q = document.getElementById('question');
var Q = document.getElementById('question');
var form = "Man Mode: <input type='radio' name='type' id='type' value='ph' /> Korean Mode: <input type='radio' name='type' id='type' value='fc' />";
var form = "Man Mode: <input type='radio' name='type' id='type' value='ph' /> Korean Mode: <input type='radio' name='type' id='type' value='fc' />";
Line 102: Line 102:
countdownCurrent = parseInt($("#amt").val()) * 6000;
countdownCurrent = parseInt($("#amt").val()) * 6000;


examHandler(arg, exam);
examHandler(exam);
});
});
} else {
} else {
examHandler(arg, exam);
examHandler(exam);
}
}
});
});
Line 117: Line 117:
return str;
return str;
}
}
function examHandler(arg, exam) {
function examHandler(exam) {
if (arg === 'Random') {
        if (arg === 'Queue') {
            queueExam();
} else if (arg === 'Random') {
selectExam(exam);
selectExam(exam);
} else if (arg === 'Queue') {
queueExam();
} else {
} else {
alert("Wat.");
alert("Wat.");
Line 703: Line 703:
<div id="question" style="visibility:hidden;">
<div id="question" style="visibility:hidden;">
<b>Click here to start the exam:</b><br />
<b>Click here to start the exam:</b><br />
<a href="#" onclick="loginCheck('Random','USMLE Step 1')"><img src="http://static.wikidoc.org/8/87/Step1.png" /></a>
<a href="#" onclick="loginCheck('USMLE Step 1')"><img src="http://static.wikidoc.org/8/87/Step1.png" /></a>
<a href="#" onclick="loginCheck('Random','USMLE Step 2 CK')"><img src="http://static.wikidoc.org/0/07/Step2CK.png" /></a>
<a href="#" onclick="loginCheck('USMLE Step 2 CK')"><img src="http://static.wikidoc.org/0/07/Step2CK.png" /></a>
<a href="#" onclick="loginCheck('Random','USMLE Step 3')"><img src="http://static.wikidoc.org/0/08/Step3.png" /></a>
<a href="#" onclick="loginCheck('USMLE Step 3')"><img src="http://static.wikidoc.org/0/08/Step3.png" /></a>
<a href="#" onclick="loginCheck('Random','Board Review')"><img src="http://static.wikidoc.org/7/75/Boardcertification.png" /></a>
<a href="#" onclick="loginCheck('Board Review')"><img src="http://static.wikidoc.org/7/75/Boardcertification.png" /></a>
<a href="#" onclick="loginCheck('Random','MCAT')"><img src="http://static.wikidoc.org/4/4b/MCAT.png" /></a><br />
<a href="#" onclick="loginCheck('MCAT')"><img src="http://static.wikidoc.org/4/4b/MCAT.png" /></a><br />
<!-- bold + larger font size-->
<!-- bold + larger font size-->
<b>Click here to repeat questions you've gotten wrong previously</b>
<b>Click here to repeat questions you've gotten wrong previously</b>
<input type="button" onclick="loginCheck('Queue','Nuffin')" value="Review Exam" /><br />
<input type="button" onclick="loginCheck('Queue')" value="Review Exam" /><br />


</div>
</div>

Revision as of 19:35, 27 June 2013