-
Countdown clock – but keep spacing for 1
Ok so need help. I have a countdown clock and it works fine but when it hits 1 the numbers shift and they want the clock to keep the same spacing like a digital clock so the 1 appears on the right side of the 0 outline like the picture below. Any idea how I would be able to do this…
Here is the expression I am currently using for the countdown…
rate = -1;
clockStart = 600;
function padZero(n){
if (n < 10) return "0" + n else return "" + n
}
clockTime = Math.max(clockStart + rate*(time - inPoint),0);
t = Math.floor(clockTime);
min = Math.floor((t%3600)/60);
sec = Math.floor(t%60);
padZero(min) + ":" + padZero(sec)