JS timer only works with seconds, how to add minutes and hours?
I am using https://github.com/johnschult/jquery.countdown360 countdown timer
> Its official page shows only for seconds http://jsfiddle.net/johnschult/gs3WY/
JS timer only works with seconds, how to add minutes and hours?
I am using https://github.com/johnschult/jquery.countdown360 countdown timer
> Its official page shows only for seconds http://jsfiddle.net/johnschult/gs3WY/
Since you are using a plugin and not implementing the timer by yourself, you cannot change its settings - it is a timer only for seconds. What you can do is look for a timer that has more capacity, like this one I found.
The description on the site describes this as "A simple countdown timer in seconds", so there is no option to change to minutes
But there are other countdown timers that are more configurable. See, for example,any listed here: http://plugins.jquery.com/?s=countdown+timer
If you want to use the countdown timer that you mentioned, you're going to have to do some modification to the source code. For starters, replace all 37 references of "seconds" to "minutes" and then edit any of the math to convert times to minutes.
If would be great if you could submit your changes as a pull request to the original author too.