-
Notifications
You must be signed in to change notification settings - Fork 13
/
nbl.plus.min.js
1 lines (1 loc) · 1.13 KB
/
nbl.plus.min.js
1
this.nbl={c:document,q:{},n:null,l:function(a){var b,c,x,y,z,s,l,i=j=0,m=this;m.h=m.c.head||m.c.body||m.c.documentElement||m.h,m.i||(m.s=m.f=0,m.i=setInterval(function(){if(m.o<0||m.s==0)m.i=clearInterval(m.i),m.s>0&&m.f&&m.f(m.q);m.o--},m.o=50));if(a==m.n){s=m.c.getElementsByTagName("script");while(j<s.length){if((a=eval("("+s[j].getAttribute("data-nbl")+")"))&&a){m.h=s[j].parentNode;break}j++}}if(a&&a.shift)while(i<a.length)b=a[i],c=a[i+1],x="function",y=typeof b,z=typeof c,l=z==x?c:y==x?b:m.n,y=="number"&&(m.o=b/50),y=="string"&&m.a([b],l),b.shift&&m.a([b.shift(),b],l),!m.f&&l&&(m.f=l),i++},a:function(a,b){var c,d,e=this,f=a[0].replace(/.+\/|\.min\.js|\.js|\?.+|\W/gi,""),g={js:{t:"script",a:"src"},css:{t:"link",a:"href",r:"stylesheet"},i:{t:"img",a:"src"}};d=a[0].match(/\.([cjs]{2,4})$|\?.+/i),d=d?d[1]:"i",c=e.q[f]=e.c.createElement(g[d].t),c.setAttribute(g[d].a,a[0]),g[d].r?c.setAttribute("rel",g[d].r):(c.onload=c.onreadystatechange=function(){var c=this,d=function(){var c=e,d=a[1];c.q[f]=!0,d&&c.l(d),b&&b(),c.s--};if(!c.readyState||/de|te/.test(c.readyState))c.onload=c.onreadystatechange=e.n,d()},e.s++),e.h.appendChild(c)}},nbl.l()