Update index.html
This commit is contained in:
parent
5ce06c62ec
commit
36f27c2da3
12
index.html
12
index.html
@ -319,15 +319,21 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
// crossbrowser implementation for requestAnimationFrame
|
// crossbrowser implementation for requestAnimationFrame
|
||||||
var requestAnimation = (function() {
|
/*var requestAnimation = (function() {
|
||||||
return /*window.requestAnimationFrame
|
return window.requestAnimationFrame
|
||||||
|| window.webkitRequestAnimationFrame
|
|| window.webkitRequestAnimationFrame
|
||||||
||*/ window.mozRequestAnimationFrame
|
|| window.mozRequestAnimationFrame
|
||||||
|| window.oRequestAnimationFrame
|
|| window.oRequestAnimationFrame
|
||||||
|| window.msRequestAnimationFrame
|
|| window.msRequestAnimationFrame
|
||||||
|| function(callback, element) {
|
|| function(callback, element) {
|
||||||
window.setTimeout(callback, 1000/60);
|
window.setTimeout(callback, 1000/60);
|
||||||
};
|
};
|
||||||
|
})();*/
|
||||||
|
|
||||||
|
var requestAnimation = (function() {
|
||||||
|
return function(callback, element) {
|
||||||
|
window.setTimeout(callback, 1000/60);
|
||||||
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
Loading…
Reference in New Issue
Block a user