PageSourceSearch

https://www.garynolan.com/wp-content/themes/GN/core/js/responsive-scripts.min.js?ver=3.21

js garynolan.com collected 2026-10-08 01:17:23 UTC 7,895 bytes, 1 lines download raw bytes

1window.matchMedia=window.matchMedia||function(e,t){var n,i=e.documentElement,s=i.firstElementChild||i.firstChild,o=e.createElement("body"),r=e.createElement("div");return r.id="mq-test-1",r.style.cssText="position:absolute;top:-100em",o.style.background="none",o.appendChild(r),function(e){return r.innerHTML='&shy;<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>',i.insertBefore(o,s),n=42==r.offsetWidth,i.removeChild(o),{matches:n,media:e}}}(document),function(e){if(e.respond={},respond.update=function(){},respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches,!respond.mediaQueriesSupported){var t,n,i,s=e.document,o=s.documentElement,r=[],a=[],l=[],d={},m=s.getElementsByTagName("head")[0]||o,c=s.getElementsByTagName("base")[0],u=m.getElementsByTagName("link"),p=[],v=function(){for(var t,n,i,s,o=u,r=o.length,a=0;a<r;a++)n=(t=o[a]).href,i=t.media,s=t.rel&&"stylesheet"===t.rel.toLowerCase(),n&&s&&!d[n]&&(t.styleSheet&&t.styleSheet.rawCssText?(h(t.styleSheet.rawCssText,n,i),d[n]=!0):(/^([a-zA-Z:]*\/\/)/.test(n)||c)&&n.replace(RegExp.$1,"").split("/")[0]!==e.location.host||p.push({href:n,media:i}));y()},y=function(){if(p.length){var e=p.shift();b(e.href,function(t){h(t,e.href,e.media),d[e.href]=!0,y()})}},h=function(e,t,n){var i,s,o,l,d,m=e.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),c=m&&m.length||0,u=function(e){return e.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+t+"$2$3")},p=!c&&n,v=0;for((t=t.substring(0,t.lastIndexOf("/"))).length&&(t+="/"),p&&(c=1);v<c;v++)for(i=0,p?(s=n,a.push(u(e))):(s=m[v].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,a.push(RegExp.$2&&u(RegExp.$2))),d=(l=s.split(",")).length;i<d;i++)o=l[i],r.push({media:o.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:a.length-1,hasquery:o.indexOf("(")>-1,minw:o.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:o.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});f()},g=function(){var e,t=s.createElement("div"),n=s.body,r=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||((n=r=s.createElement("body")).style.background="none"),n.appendChild(t),o.insertBefore(n,o.firstChild),e=t.offsetWidth,r?o.removeChild(n):n.removeChild(t),e=i=parseFloat(e)},f=function(e){var d=o.clientWidth,c="CSS1Compat"===s.compatMode&&d||s.body.clientWidth||d,p={},v=u[u.length-1],y=(new Date).getTime();if(e&&t&&y-t<30)return clearTimeout(n),void(n=setTimeout(f,30));for(var h in t=y,r){var b=r[h],E=b.minw,w=b.maxw,x=null===E,S=null===w;E&&(E=parseFloat(E)*(E.indexOf("em")>-1?i||g():1)),w&&(w=parseFloat(w)*(w.indexOf("em")>-1?i||g():1)),b.hasquery&&(x&&S||!(x||c>=E)||!(S||c<=w))||(p[b.media]||(p[b.media]=[]),p[b.media].push(a[b.rules]))}for(var h in l)l[h]&&l[h].parentNode===m&&m.removeChild(l[h]);for(var h in p){var _=s.createElement("style"),B=p[h].join("\n");_.type="text/css",_.media=h,m.insertBefore(_,v.nextSibling),_.styleSheet?_.styleSheet.cssText=B:_.appendChild(s.createTextNode(B)),l.push(_)}},b=function(e,t){var n=E();n&&(n.open("GET",e,!0),n.onreadystatechange=function(){4!=n.readyState||200!=n.status&&304!=n.status||t(n.responseText)},4!=n.readyState&&n.send(null))},E=function(){var e=!1;try{e=new XMLHttpRequest}catch(t){e=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return e}}();v(),respond.update=v,e.addEventListener?e.addEventListener("resize",w,!1):e.attachEvent&&e.attachEvent("onresize",w)}function w(){f(!0)}}(this);var slideOpen=!0,heightChecked=!1,initHeight=0,intval=null;function slideToggle(){window.clearInterval(intval);var e=document.getElementById("main-nav");if(heightChecked||(initHeight=e.offsetHeight,heightChecked=!0),slideOpen){var t=initHeight;slideOpen=!1,intval=setInterval(function(){t--,e.style.height=t+"px",t<=0&&window.clearInterval(intval)},1)}else{t=0;slideOpen=!0,intval=setInterval(function(){t++,e.style.height=t+"px",t>=initHeight&&window.clearInterval(intval)},1)}}!function(){var e=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,t=navigator.userAgent.toLowerCase().indexOf("opera")>-1,n=navigator.userAgent.toLowerCase().indexOf("msie")>-1;if((e||t||n)&&void 0!==document.getElementById){var i=window.addEventListener?"addEventListener":"attachEvent";window[i]("hashchange",function(){var e=document.getElementById(location.hash.substring(1));e&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1)}}(),function(){var e,t,n=document.getElementsByClassName("responsive-header"),i=document.getElementsByClassName("main-nav");if(i.length>0){if((i=i[0]).insertAdjacentHTML("beforeend",'<a id="responsive_menu_button"></a>'),i.insertAdjacentHTML("afterbegin",'<div id="responsive_current_menu_item">Home</div>'),!n)return;if(e=document.getElementById("responsive_menu_button"),t=i.getElementsByTagName("ul")[0],!e)return;t&&t.childNodes.length||(e.style.display="none"),window.addEventListener("resize",function(){var e=responsives.break_point;if(window.innerWidth>e){document.getElementById("responsive_menu_button").classList.remove("responsive-toggle-open"),document.querySelector(".js .main-nav .menu").style.display="block",document.querySelector(".js .main-nav").classList.remove("mobile-dropdown-inner"),document.querySelector(".js .main-nav #responsive_current_menu_item").style.display="none";var t=document.querySelector(".responsive-mobile-sidebar #mobile-sidebar");t&&(t.style.display="none",document.getElementById("responsive-sidebar-overlay").style.display="none");var n=document.querySelector(".responsive-mobile-fullscreen #mobile-fullscreen");n&&(n.style.display="none")}window.innerWidth<=e&&(document.querySelector(".js .main-nav .menu").style.display="none",document.querySelector(".js .main-nav").classList.add("mobile-dropdown-inner"),document.querySelector(".js .main-nav #responsive_current_menu_item").style.display="block")});var s=document.querySelector(".responsive-mobile-dropdown #responsive_menu_button");s&&s.addEventListener("click",function(){-1===t.className.indexOf("menu")&&(t.className="menu"),-1!==document.getElementById("responsive_menu_button").className.indexOf("responsive-toggle-open")?(document.getElementById("responsive_menu_button").classList.remove("responsive-toggle-open"),document.querySelector(".js .main-nav .menu").style.display="none",document.querySelector(".js .main-nav").classList.remove("mobile-dropdown-inner")):(document.getElementById("responsive_menu_button").classList.add("responsive-toggle-open"),document.querySelector(".js .main-nav .menu").style.display="block",document.querySelector(".js .main-nav").classList.add("mobile-dropdown-inner"))});var o=document.querySelector(".responsive-mobile-fullscreen #responsive_menu_button");o&&o.addEventListener("click",function(){document.getElementById("mobile-fullscreen").style.display="block"});var r=document.querySelector("#mobile-fullscreen .close");r&&r.addEventListener("click",function(){document.getElementById("mobile-fullscreen").style.display="none"});var a=document.querySelector(".responsive-mobile-sidebar #responsive_menu_button");a&&a.addEventListener("click",function(){document.getElementById("mobile-sidebar").style.display="block",document.getElementById("mobile-sidebar").style.width="300px",document.getElementById("responsive-sidebar-overlay").style.display="block"});var l=document.querySelector(".responsive-mobile-sidebar #responsive-sidebar-overlay");l&&l.addEventListener("click",function(){document.getElementById("mobile-sidebar").style.width="0px",document.getElementById("responsive-sidebar-overlay").style.display="none"});var d=document.querySelector("#mobile-sidebar .close");d&&d.addEventListener("click",function(){document.getElementById("mobile-sidebar").style.width="0px",document.getElementById("responsive-sidebar-overlay").style.display="none"})}}();

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.