-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbreakpoint.min.js
More file actions
1 lines (1 loc) · 852 Bytes
/
breakpoint.min.js
File metadata and controls
1 lines (1 loc) · 852 Bytes
1
(function(g,o,b){var l=window["https://github.com/davesmith/breakpoint"]={breakpoints:[320,480,600,720,768,800,1024,1080,1280,1440],update:function(){var z=g.innerWidth||c.clientWidth||o.body.clientWidth||0,t=0,s=0,v=l.breakpoints,w=v.length,y,x,r="",u="lte",p="gt",q;for(t=0;t<w;t++){y=v[t];q=0;if(z>y){r+=" "+p+y;q=1}for(s=0;s<w;s++){x=v[s];if(z<=x){r+=" "+u+x;if(q===1){r+=" "+p+y+u+x}}}}c[k]=c[k].replace(m," "+h+" "+r+" "+h+" ")}},c=o.documentElement,k="className",h="Br34kp01nT",m=new RegExp(" "+h+".*"+h+" ","g");c[k]+=" "+h+" "+h+" ";l.update();var j=false,d=g.removeEventListener||j,a=g.addEventListener||j,f=g.attachEvent||j,i=g.detachEvent||j,n="resize";function e(){if(d){d(n,e,j)}else{if(i){i("on"+n,e)}}l.update();if(a){a(n,e,j)}else{if(f){f("on"+n,e)}}}if(a){a(n,e,j)}else{if(f){f("on"+n,e)}else{g["on"+n]=update}}})(this,this.document);