summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJayaram Pai2014-04-18 09:29:47 +0530
committerJayaram Pai2014-04-18 09:29:47 +0530
commit67f9fb1724d3d40d3d1a59d82fb6af9bd58b015d (patch)
tree633e6a502c81c63520a8ea6ebf0eee2f75ab70c9 /js
parente2110c70ccfeb5b553186f098becb4fcdc8359a3 (diff)
downloadtbc-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.js6
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;