Forum Replies Created

  • Chad Keddington

    August 29, 2012 at 12:07 pm in reply to: 5 Minute Countdown

    The last post does do that except when it gets down to sec the semi colon is still showing. The previous one were I get ride of the call to padZero does count down in sec but does not show the minutes.

    Thanks for all the help.
    Chad

  • Chad Keddington

    August 29, 2012 at 4:04 am in reply to: 5 Minute Countdown

    That a little closer. What I want it to do is somthing like this count down from 5:00, 5:59,5:58…..4:00…3:00…1:00, 59, 58 …10, 9, 8, 7 … 1, 0

    Sorry for all the confusion
    Chad

  • Chad Keddington

    August 29, 2012 at 12:46 am in reply to: 5 Minute Countdown

    Hi Dan I am confused. Here is the code I am using. I want I five minute countdown. But when it gets down to just seconds I dont want the zeros to shows.

    rate = -1;
    clockStart = 300;

    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);
    min + “:” + padZero(sec)

    Chad

  • Chad Keddington

    August 28, 2012 at 10:05 pm in reply to: 5 Minute Countdown

    Hi code works great but I am wondering if their is away to get rid of the leading number when they turn to zero.

    Chad

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy