All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uicore.respond.respond.min.js Maven / Gradle / Ivy

There is a newer version: 8.2.4
Show newest version
(function(c){c.matchMedia=c.matchMedia||function(c,e){var h,r=c.documentElement,u=r.firstElementChild||r.firstChild,m=c.createElement("body"),f=c.createElement("div");f.id="mq-test-1";f.style.cssText="position:absolute;top:-100em";m.style.background="none";m.appendChild(f);return function(c){f.innerHTML='­';r.insertBefore(m,u);h=42===f.offsetWidth;r.removeChild(m);return{matches:h,media:c}}}(c.document)})(this);
(function(c){function E(){z(!0)}var e={};c.respond=e;e.update=function(){};var h=[],r=function(){var d=!1;try{d=new c.XMLHttpRequest}catch(b){d=new c.ActiveXObject("Microsoft.XMLHTTP")}return function(){return d}}(),u=function(d,b){var a=r();a&&(a.open("GET",d,!0),a.onreadystatechange=function(){4!==a.readyState||200!==a.status&&304!==a.status||b(a.responseText)},4!==a.readyState&&a.send(null))},m=function(d){return d.replace(e.regex.minmaxwh,"").match(e.regex.other)};e.ajax=u;e.queue=h;e.unsupportedmq=
m;e.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,
other:/\([^\)]*\)/g};e.mediaQueriesSupported=c.matchMedia&&null!==c.matchMedia("only all")&&c.matchMedia("only all").matches;if(!e.mediaQueriesSupported){var f=c.document,k=f.documentElement,v=[],w=[],n=[],A={},x=f.getElementsByTagName("head")[0]||k,J=f.getElementsByTagName("base")[0],y=x.getElementsByTagName("link"),B,F,C,D=function(){var d,b=f.createElement("div"),a=f.body,c=k.style.fontSize,e=a&&a.style.fontSize,g=!1;b.style.cssText="position:absolute;font-size:1em;width:1em";a||(a=g=f.createElement("body"),
a.style.background="none");k.style.fontSize="100%";a.style.fontSize="100%";a.appendChild(b);g&&k.insertBefore(a,k.firstChild);d=b.offsetWidth;g?k.removeChild(a):a.removeChild(b);k.style.fontSize=c;e&&(a.style.fontSize=e);return d=C=parseFloat(d)},z=function(d){var b=k.clientWidth,a="CSS1Compat"===f.compatMode&&b||f.body.clientWidth||b,b={},e=y[y.length-1],q=(new Date).getTime();if(d&&B&&30>q-B)c.clearTimeout(F),F=c.setTimeout(z,30);else{B=q;for(var g in v)if(v.hasOwnProperty(g)){d=v[g];var q=d.minw,
t=d.maxw,l=null===q,h=null===t;q&&(q=parseFloat(q)*(-1=q)||!(h||a<=t))||(b[d.media]||(b[d.media]=[]),b[d.media].push(w[d.rules]))}for(var p in n)n.hasOwnProperty(p)&&n[p]&&n[p].parentNode===x&&x.removeChild(n[p]);n.length=0;for(var m in b)b.hasOwnProperty(m)&&(g=f.createElement("style"),p=b[m].join("\n"),g.type="text/css",g.media=m,x.insertBefore(g,e.nextSibling),g.styleSheet?g.styleSheet.cssText=
p:g.appendChild(f.createTextNode(p)),n.push(g))}},G=function(d,b,a){var c=d.replace(e.regex.comments,"").replace(e.regex.keyframes,"").match(e.regex.media),f=c&&c.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=!f&&a;b.length&&(b+="/");g&&(f=1);for(var h=0;h




© 2015 - 2025 Weber Informatics LLC | Privacy Policy