Lines Matching refs:countdown
175 var countdown = { class
1055 countdown.remaining = startFrom * 60000; // convert to msecs
1056 countdown.start = new Date().valueOf();
1057 countdown.end = countdown.start + countdown.remaining;
1059 var timeLeft = formatTime(countdown.remaining);
1067 if (countdown.state == 'run') {
1068 countdown.remaining = countdown.end - now;
1072 if (countdown.remaining >= 0) {
1073 var timeLeft = formatTime(countdown.remaining);
1075 if (countdown.remaining < 300000) {
1076 tl.style.color = 'rgb(' + (255-Math.round(countdown.remaining/2000)) + ',0,0)';
1077 tl.style.backgroundColor = 'rgb(255,255,' + (Math.round(countdown.remaining/2000)) + ')';
1080 var timeLeft = '-' + formatTime(-countdown.remaining);
1087 if (countdown.state == 'pause') countdown.state = 'run'; else countdown.state = 'pause';
1088 if (countdown.state == 'pause') {
1089 window.clearInterval(countdown.timer);
1091 if (countdown.state == 'run') {
1092 countdown.start = new Date().valueOf();
1093 countdown.end = countdown.start + countdown.remaining;
1094 countdown.timer = window.setInterval('updateRemainingTime()', 1000);
1100 countdown.end += change;
1101 countdown.remaining += change;