diff options
Diffstat (limited to 'testapp/static/exam/js/question.js')
-rw-r--r-- | testapp/static/exam/js/question.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/testapp/static/exam/js/question.js b/testapp/static/exam/js/question.js index 3078c64..ba3f6d2 100644 --- a/testapp/static/exam/js/question.js +++ b/testapp/static/exam/js/question.js @@ -8,33 +8,6 @@ function submitCode() x.value = "Checking Answer ..."; document.getElementById("skip").disabled = true; } - -function secs_to_time(secs) -{ - var h = Math.floor(secs/3600); - var h_s = (h > 0) ? h+'h:' : ''; - var m = Math.floor((secs%3600)/60); - var m_s = (m > 0) ? m+'m:' : ''; - var s_s = Math.floor(secs%60) + 's'; - return h_s + m_s + s_s; -} - -function update_time() -{ - var time_left = document.getElementById("time").value; - time_left -= 1; - if (time_left) - { - var elem = document.getElementById("time_left"); - var t_str = secs_to_time(time_left); - elem.innerHTML = "<strong>" + t_str + "</strong>"; - setTimeout("update_time()", 1000); - } - else - { - document.forms["code"].submit(); - } -} function setSelectionRange(input, selectionStart, selectionEnd) { |