-
Please help with my Countdown
I’ve played with someone else’s expression to get close to what I need.
I still can’t figure out how to get rid of the first zero digit ( 05:00 )
here’s my code :beginMin =5;
beginSec = 0
beginTime = beginMin*60 + beginSec*0;
function digits(myVal,myNumDigits){
var s = myVal.toString();
while (s.length < myNumDigits) s = '0' + s; return s;} currTime = beginTime - time; min = digits(Math.floor((currTime%3600)/60),2); sec = digits(Math.floor(currTime)%60,2); min + ":" + sec this stuff is new to me so any help would be appreciated ! Ryan