We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6b72e commit baf363aCopy full SHA for baf363a
lib/utils.coffee
@@ -8,6 +8,10 @@ _uid = 1
8
pad = (num) -> (if num < 10 then '0' else '') + num
9
uid = -> 'runner' + _uid++
10
11
+_requestAnimationFrame = ((win, raf) ->
12
+ win['webkitR' + raf] or win['r' + raf] or win['mozR' + raf] or win['msR' + raf] or (fn) -> setTimeout(fn, 30)
13
+)(window, 'equestAnimationFrame')
14
+
15
formatTime = (time, settings) ->
16
settings = settings or {}
17
steps = [3600000, 60000, 1000, 10]
0 commit comments