PageSourceSearch

https://www.freistaedter-motorshow.at/lib/msvorlagen/sass01a/sw2015/includes/scripts/browser-compatibility.js

js freistaedter-motorshow.at collected 2026-10-08 03:28:28 UTC 9,717 bytes, 19 lines download raw bytes

1(function(){function H(c){try{var a=document.querySelectorAll("meta[name=viewport]");a&&a.length&&(a=a[a.length-1],a.getAttribute("content"),a.setAttribute("content","initial-scale="+c))}catch(b){}}function I(){window.matchMedia=window.matchMedia||function(c){var a,b=c.documentElement,d=b.firstElementChild||b.firstChild,e=c.createElement("body"),h=c.createElement("div");h.id="mq-test-1";h.style.cssText="position:absolute;top:-100em";e.style.background="none";e.appendChild(h);return function(c){h.innerHTML=�
2'&shy;<style media="'+c+'"> #mq-test-1 { width: 42px; }</style>';b.insertBefore(e,d);a=42===h.offsetWidth;b.removeChild(e);return{matches:a,media:c}}}(document);(function(c){function a(){A(!0)}var b={};c.respond=b;b.update=function(){};b.mediaQueriesSupported=c.matchMedia&&c.matchMedia("only all").matches;if(!b.mediaQueriesSupported){var d=c.document,e=d.documentElement,h=[],k=[],f=[],l={},z=d.getElementsByTagName("head")[0]||e,q=d.getElementsByTagName("base")[0],p=z.getElementsByTagName("link"),�
3m=[],g=function(){for(var a=0;a<p.length;a++){var b=p[a],d=b.href,e=b.media,h=b.rel&&"stylesheet"===b.rel.toLowerCase();d&&h&&!l[d]&&(b.styleSheet&&b.styleSheet.rawCssText?(n(b.styleSheet.rawCssText,d,e),l[d]=!0):(!/^([a-zA-Z:]*\/\/)/.test(d)&&!q||d.replace(RegExp.$1,"").split("/")[0]===c.location.host)&&m.push({href:d,media:e}))}v()},v=function(){if(m.length){var a=m.shift(),b=a.href,d=y();d&&(d.open("GET",b,!0),d.onreadystatechange=function(){4!==d.readyState||200!==d.status&&304!==d.status||(n(d.responseText,�
4a.href,a.media),l[a.href]=!0,c.setTimeout(function(){v()},0))},4!==d.readyState&&d.send(null))}},n=function(a,c,b){var d=a.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),e=d&&d.length||0;c=c.substring(0,c.lastIndexOf("/"));var f=function(a){return a.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+c+"$2$3")},l=!e&&b;c.length&&(c+="/");l&&(e=1);for(var m=0;m<e;m++){var r,s,g;l?(r=b,k.push(f(a))):(r=d[m].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,k.push(RegExp.$2&&f(RegExp.$2)));s=�
5r.split(",");g=s.length;for(var p=0;p<g;p++)r=s[p],h.push({media:r.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:k.length-1,hasquery:-1<r.indexOf("("),minw:r.match(/\(min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:r.match(/\(max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}A()},t,w,x=function(){var c,a=d.createElement("div"),b=d.body,h=!1;a.style.cssText="position:absolute;font-size:1em;width:1em";�
6b||(b=h=d.createElement("body"),b.style.background="none");b.appendChild(a);e.insertBefore(b,e.firstChild);c=a.offsetWidth;h?e.removeChild(b):b.removeChild(a);return B=parseFloat(c)},B,A=function(a){var b=e.clientWidth,l="CSS1Compat"===d.compatMode&&b||d.body.clientWidth||b,b={},m=p[p.length-1],g=(new Date).getTime();if(a&&t&&30>g-t)c.clearTimeout(w),w=c.setTimeout(A,30);else{t=g;for(var u in h)if(h.hasOwnProperty(u)){a=h[u];var g=a.minw,n=a.maxw,v=null===g,r=null===n;g&&(g=parseFloat(g)*(-1<g.indexOf("em")?�
7B||x():1));n&&(n=parseFloat(n)*(-1<n.indexOf("em")?B||x():1));a.hasquery&&(v&&r||!(v||l>=g)||!(r||l<=n))||(b[a.media]||(b[a.media]=[]),b[a.media].push(k[a.rules]))}for(var s in f)f.hasOwnProperty(s)&&f[s]&&f[s].parentNode===z&&z.removeChild(f[s]);for(var q in b)b.hasOwnProperty(q)&&(u=d.createElement("style"),s=b[q].join("\n"),u.type="text/css",u.media=q,z.insertBefore(u,m.nextSibling),u.styleSheet?u.styleSheet.cssText=s:u.appendChild(d.createTextNode(s)),f.push(u))}},y,C=!1;try{C=new c.XMLHttpRequest}catch(D){C=�
8new c.ActiveXObject("Microsoft.XMLHTTP")}y=function(){return C};g();b.update=g;c.addEventListener?c.addEventListener("resize",a,!1):c.attachEvent&&c.attachEvent("onresize",a)}})(this)}function w(){function c(a,b){q[b]||(q[b]=0);if(a.rules.length)for(var d=a.rules.length-1;0<=d;d--)a.rules[d].style.behavior="url("+b+")";else q[b]++,"complete"!=a.owningElement.readyState&&500>q[b]&&setTimeout(function(a,b){return function(){c(a,b)}}(a,b),10)}for(var a=document.getElementsByTagName("LINK"),b=0;b<a.length;b++){var d=�
9a[b].getAttribute("href");d&&-1!=d.indexOf("-ie.css")&&-1!=d.toLowerCase().indexOf(x.toLowerCase())&&(d=d.substring(0,d.lastIndexOf("/")).replace("stylesheets","scripts")+"/PIE.htc",c(a[b].styleSheet,d))}a=document.getElementsByTagName("STYLE");for(b=0;b<a.length;b++)d=a[b],("ie-style-css"==d.title||d.innerHTML&&-1!=d.innerHTML.indexOf("/* lte IE 9 style*/"))&&c(d.styleSheet,J+"PIE.htc")}function y(c){var a=c.currentStyle,b;if(b=a)if(b="both"==a.clear||"left"==a.clear)b=(b=c.nextSibling)&&b.currentStyle&&�
10"left"==b.currentStyle.styleFloat&&"none"==b.currentStyle.clear?!0:!1;b&&(b=document.createElement("div"),b.style.visibility="hidden",b.style.width="0px",b.style.height="0px",c.parentNode.insertBefore(b,c));a&&"inline-block"==a.display&&(c.style.display="inline",c.style.zoom=1);a&&"relative"==a.position&&a.hasLayout&&"0px"!=a.marginTop&&(c.style.top=a.marginTop);a&&"none"==a.styleFloat&&"block"==a.display&&c.parentNode.currentStyle&&(a=c.parentNode.currentStyle.display,"inline-block"!=a&&"inline"!=�
11a||"HTML"==c.parentNode.tagName||(c.style.display="inline",c.style.zoom=1));c=c.childNodes;for(a=c.length-1;0<=a;a--)y(c[a])}function D(c){var a=c.currentStyle;if(c.style){c.style.zoom=1;!a||"auto"!=a.height&&"auto"==a.minHeight||(c.style.height=a.minHeight);!a||"left"!=a.styleFloat&&"right"!=a.styleFloat&&"inline-block"!=a.display||(c.style.zoom=1,c.style.display="inline");if("none"==a.styleFloat&&"block"==a.display&&c.parentNode.currentStyle){var b=c.parentNode.currentStyle.display;"inline-block"!=�
12b&&"inline"!=b||"HTML"==c.parentNode.tagName||(c.style.display="inline",c.style.zoom=1)}a&&"left"==a.styleFloat&&"block"==a.display&&(a=parseFloat(a.marginRight),isNaN(a)&&(a=0),c.style.marginRight=a-3+"px")}c=c.childNodes;for(a=c.length-1;0<=a;a--)D(c[a])}
12function E(){if("msie"==f.name&&9>=f.version)for(var c=document.getElementsByTagName("LINK"),a=c.length,b=0;b<a;b++){var d=c[b].getAttribute("href"),e;a:{for(e=0;e<t.length;e++)if(t[e]==d){e=!0;break a}e=!1}if(!e&&(t.push(d),-1==d.indexOf("reset.css")&&�
13-1==d.indexOf("-ie.css")&&-1!=d.toLowerCase().indexOf(x.toLowerCase()))){a:{e=d.replace(".css","-ie.css");for(var h=document.getElementsByTagName("LINK"),k=0;k<h.length;k++)if(h[k].getAttribute("href")==e){e=!0;break a}e=!1}e||(document.createStyleSheet(d.replace(".css","-ie.css")),t.push(d.replace(".css","-ie.css")))}}}function K(){for(var c=document.getElementsByTagName("select"),a,b,d,e=0;e<c.length;e++)if((d=c[e].className)&&d.match(/\s*FM_CSS_mobileDropdown\s*/)){a=c[e];b=a.parentNode;d=d.split(" ")[0].replace("_mobile",�
14"_container");for(var f=0;f<b.childNodes.length;f++){var k=b.childNodes[f];if("DIV"==k.tagName&&k.className==d){for(var q,l=0;l<k.childNodes.length;l++)if("UL"==k.childNodes[l].tagName){q=k.childNodes[l];break}for(var k=q.childNodes,l="",t="#",w="",p=0;p<k.length;p++)if("LI"==k[p].tagName){for(var m=k[p],g=0;g<m.childNodes.length;g++)if(m.childNodes[g].tagName&&"a"==m.childNodes[g].tagName.toLowerCase()){for(var t=m.childNodes[g].href,v=0;v<m.childNodes[g].childNodes.length;v++){var n=m.childNodes[g].childNodes[v];�
15if(n.tagName&&("font"==n.tagName.toLowerCase()||"span"==n.tagName.toLowerCase())){w=n.innerHTML;break}}break}l+="<option value='"+t+"'>"+w+"</option>"}a.innerHTML=l}}}}function F(c){var a=c.getAttribute&&c.getAttribute("class")||"";if(!c.layoutsLiquid&&a.match(/(^|(\s+))liquid((\s+)|$)/i)){c.layoutsLiquid=!0;for(var b=c.previousSibling;b&&1!=b.nodeType;)b=b.previousSibling;if(b){var d=b.currentStyle||window.getComputedStyle(b);if(d&&"none"==d["float"]&&(a=a.match(/(^|\s+)lindex-(\d+)($|\s+)/i))){for(a=�
16parseInt(a[2]);0<a&&b&&!(1==b.nodeType&&(a--,0>=a));)b=b.previousSibling;c.parentNode.insertBefore(c,b)}}}c=c.childNodes;for(b=c.length-1;0<=b;b--)F(c[b])}var G="article aside audio canvas command datalist details embed figcaption figure footer header hgroup keygen mark meter nav output progress rp rt ruby section source summary time video".split(" "),f=function(){var c=navigator.userAgent.toLowerCase(),c=/(chrome)[ \/]([\w.]+)/.exec(c)||/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(c)||�
17/(msie) ([\w.]+)/.exec(c)||0>c.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(c)||[],a=c[2]||"0",b=a.indexOf("."),b=a.indexOf(".",b);-1!=b&&(a=parseFloat(a.substring(0,b)));return{name:c[1]||"",version:a}}(),J=function(){for(var c=document.getElementsByTagName("SCRIPT"),a=0;a<c.length;a++){var b=c[a].getAttribute("src");if(b&&-1!=b.indexOf("browser-compatibility.js"))return-1!=b.lastIndexOf("/")?b.substring(0,b.lastIndexOf("/")+1):""}}(),x=function(){for(var c=document.getElementsByTagName("LINK"),�
18a=0;a<c.length;a++){var b=c[a].getAttribute("href");if(b&&-1!=b.indexOf("reset.css"))return-1!=b.lastIndexOf("/")?b.substring(0,b.lastIndexOf("/")+1):"stylesheets"}}(),q={};(function(){if("msie"==f.name&&9>=f.version)for(var c=0;c<G.length;c++)document.createElement(G[c])})();var t=[];E();(function(c,a,b){c.addEventListener?c.addEventListener(a,b,!1):c.attachEvent&&c.attachEvent("on"+a,b)})(window,"load",function(){location.protocol&&-1!=location.protocol.indexOf("file")&&"msie"==f.name&&9>f.version&&�
19alert("On IE7/IE8 local pages with media queries won't display correctly.");E();try{I()}catch(c){}F(document.documentElement);var a;a=document.body?document.documentElement.clientWidth/document.body.scrollWidth:1;1>a&&H(a);K();"msie"==f.name&&6==f.version&&D(document.documentElement);"msie"==f.name&&7==f.version&&window.setTimeout(function(){y(document.documentElement);w()},1E3);"msie"==f.name&&9>=f.version&&7!=f.version&&w()})})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.