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(window) { | |
'use strict'; | |
var lastTime = 0, | |
vendors = ['moz', 'webkit', 'o', 'ms'], | |
x; | |
// Remove vendor prefixing if prefixed and break early if not | |
for (x = 0; x < vendors.length && !window.requestAnimationFrame; x += 1) { | |
window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame']; |
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
var rtime = new Date(1, 1, 2000, 12,00,00); | |
var timeout = false; | |
var delta = 200; | |
$(window).resize(function() { | |
rtime = new Date(); | |
if (timeout === false) { | |
timeout = true; | |
setTimeout(resizeend, delta); | |
} | |
}); |
NewerOlder