From: Michael Rasmussen Date: Wed, 3 Jun 2015 22:44:56 +0000 (+0200) Subject: Fix timer X-Git-Url: http://git.datanom.net/qtadmin.git/commitdiff_plain/95176a69829eb675dabdcc388da3f509099d8e5f Fix timer --- diff --git a/js/timer.js b/js/timer.js index b087e53..7f6cb1e 100644 --- a/js/timer.js +++ b/js/timer.js @@ -16,13 +16,13 @@ function myTimer() { timeLeft = 'Expired'; console.log('Session valid < 1'); document.getElementById("time").style.background = "red"; + document.getElementById("timer").innerHTML = timeLeft; } else { if (timeLeft > last) { last = timeLeft; console.log('Session valid < ' + timeLeft); timeLeft = '< ' + timeLeft + ' min'; + document.getElementById("timer").innerHTML = timeLeft; } } - - document.getElementById("timer").innerHTML = timeLeft; }