UNPKG

emile

Version:

no-thrills stand-alone CSS animation JavaScript framework

2 lines (1 loc) 609 B
!function(a){function j(){b=1;for(var a=0,d=c.length;a<d;a++)c[a]()}var b=0,c=[],d,e=!1,f=a.createElement("a"),g="DOMContentLoaded",h="addEventListener",i="onreadystatechange";a[h]&&a[h](g,function k(){a.removeEventListener(g,k,e),j()},e),f.doScroll&&a.attachEvent(i,d=function d(){/^c/.test(a.readyState)&&(a.detachEvent(i,d),j())});var l=f.doScroll?function(a){self!=top?b?a():c.push(a):!function(){try{f.doScroll("left")}catch(b){return setTimeout(function(){l(a)},50)}a()}()}:function(a){b?a():c.push(a)};typeof module!="undefined"&&module.exports?module.exports={domReady:l}:window.domReady=l}(document)