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 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
function loginCheck(){ | |||
try{ | |||
examHandler(); | |||
} | |||
catch(e){ | |||
alert('You are not logged in. Please log in to continue') | |||
} | |||
} | |||
function examHandler(){ | function examHandler(){ | ||
selectExam(); | selectExam(); | ||
$('#next').on('click', function(event){ | $('#next').on('click', function(event){ | ||
var Q = document.getElementById('question'); | var Q = document.getElementById('question'); | ||
Line 166: | Line 176: | ||
<input type="button" onclick=" | <input type="button" onclick="loginCheck()" value="Push me!" /> | ||
</div> | </div> |