/* vim: set ts=4 tw=4 sw=4 noet: */
-var timerRef=setInterval(function(){myTimer()},1000);
+var timerRef=setInterval(function(){myTimer()},500);
var timeStart = new Date().getTime() + timeout;
function myTimer() {
var timeLeft = Math.round(((expire % 86400000) % 3600000) / 60000);
if (timeLeft < 0) {
- /*timeLeft = 'Expired';
- document.getElementById("time").style.background = "red";*/
clearInterval(timerRef);
location.reload();
- } else {
- //timeLeft += 1;
+ } else if {
+ timeLeft = 'Expired';
+ document.getElementById("time").style.background = "red";
+ }else {
timeLeft = '< ' + timeLeft + ' min';
}