X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/a022472808097f74f14a9fa72f43abffccd272a2..65ff42aeaa163cd32fcd953c63f5843a6b966daf:/js/timer.js diff --git a/js/timer.js b/js/timer.js index f68f084..41d6e3f 100644 --- a/js/timer.js +++ b/js/timer.js @@ -1,4 +1,4 @@ -/* vim: set ts=4 tw=4 sw=4 noet: */ +/* vim: set ts=4 tw=0 sw=4 noet: */ var timerRef=setInterval(function(){myTimer()}, 1000); var timeStart = new Date().getTime() + timeout; var last = -1; @@ -17,14 +17,14 @@ function myTimer() { if (timeLeft < last || last == -1) { last = timeLeft; timeLeft = '< ' + timeLeft + ' min'; - console.log('Session soon to expire'); + /*console.log('Session soon to expire');*/ document.getElementById("time").style.background = "red"; document.getElementById("timer").innerHTML = timeLeft; } } else { if ((timeLeft < last && timeLeft > 0) || last == -1) { last = timeLeft; - console.log('Session valid < ' + timeLeft); + /*console.log('Session valid < ' + timeLeft);*/ timeLeft = '< ' + timeLeft + ' min'; document.getElementById("timer").innerHTML = timeLeft; }