Created
November 30, 2015 00:46
-
-
Save tomasholderness/a7d1760317f31892bcaa to your computer and use it in GitHub Desktop.
Updated Countdown for CHIP, with timezone!
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="https://code.jquery.com/jquery-2.1.4.js"></script> | |
<script src="jquery.countdown-2.1.0/jquery.countdown.js"></script> | |
<script src="http://momentjs.com/downloads/moment.js"></script> | |
<script src="http://momentjs.com/downloads/moment-timezone.js"></script> | |
</head> | |
<body> | |
CHIP Sales Begins at 07:00 EST!!! | |
<div id="countdown"></div> | |
<script type="text/javascript"> | |
var liftoff = moment.tz("2015-11-30 07:00", "America/New_York"); | |
$("#countdown") | |
.countdown(liftoff.toDate(), function(event) { | |
$(this).text( | |
event.strftime('%D days %H:%M:%S') | |
); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment