Last active
April 22, 2016 13:35
-
-
Save che-wf/f78043c0d2440afb600e to your computer and use it in GitHub Desktop.
Flip Counter Counting Up
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
| var startD = new Date("April 7, 2015")/3600; | |
| var currD = new Date()/3600; | |
| var diffD = Math.abs(currD - startD); | |
| var time = Math.ceil(diffD)+10000; | |
| var clock = $('.flip-counter').FlipClock(time, { | |
| clockFace: 'Counter' | |
| }); | |
| setTimeout(function() { | |
| setInterval(function() { | |
| clock.increment(); | |
| }, 4622); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment