From 67f9fb1724d3d40d3d1a59d82fb6af9bd58b015d Mon Sep 17 00:00:00 2001 From: Jayaram Pai Date: Fri, 18 Apr 2014 09:29:47 +0530 Subject: added js redirection on 0m:0s --- js/timer.js | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit