Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var timerDate = new Date();
- var timerMilliseconds = timerDate.getTime();
- timerMilliseconds += (24 * 60 * 60 * 1000);
- timerDate = new Date(timerMilliseconds);
- var timerMonth = parseInt(timerDate.getMonth() + 1, 10);
- $(".timer").countdown(timerDate.getFullYear() + '/' + timerMonth + '/' + timerDate.getDate() + ' 00:00:00')
- .on('update.countdown', function(event) {
- var format = '%H:%M:%S';
- $(this).html(event.strftime(format));
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement