Created
August 20, 2014 21:13
-
-
Save quickstep25/2681bb01e8e259fe2151 to your computer and use it in GitHub Desktop.
Moment - Update Time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function update_time(){ | |
var now = moment().format('h:mm:ss a'); | |
$('.timer').text(now); | |
setTimeout(update_time, 1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment