diff options
author | Jayaram Pai | 2014-04-18 09:29:47 +0530 |
---|---|---|
committer | Jayaram Pai | 2014-04-18 09:29:47 +0530 |
commit | 67f9fb1724d3d40d3d1a59d82fb6af9bd58b015d (patch) | |
tree | 633e6a502c81c63520a8ea6ebf0eee2f75ab70c9 /js | |
parent | e2110c70ccfeb5b553186f098becb4fcdc8359a3 (diff) | |
download | tbc-external-review-67f9fb1724d3d40d3d1a59d82fb6af9bd58b015d.tar.gz tbc-external-review-67f9fb1724d3d40d3d1a59d82fb6af9bd58b015d.tar.bz2 tbc-external-review-67f9fb1724d3d40d3d1a59d82fb6af9bd58b015d.zip |
added js redirection on 0m:0s
Diffstat (limited to 'js')
-rw-r--r-- | js/timer.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/timer.js b/js/timer.js index 381a113..318230a 100644 --- a/js/timer.js +++ b/js/timer.js @@ -19,6 +19,10 @@ function Decrement() { seconds.innerHTML = getseconds(); } secs--; + + if(mins == 0 && secs == 0) { + window.location = modPath + "eligibility_test/end"; + } setTimeout('Decrement()',1000); } } @@ -26,6 +30,8 @@ function countdown() { setTimeout('Decrement()',1000); } $(document).ready(function() { + basePath = Drupal.settings.basePath; + modPath = basePath + "tbc_external_review/"; mins = parseInt($("#minutes_remaining").val()); tmp = parseInt($("#seconds_remaining").val()); secs = mins * 60 + tmp; |