PageSourceSearch

https://www.georgiaaquarium.org/wp-content/themes/georgia-aquarium…/ElementQueries.min.js?ver=20260924202037

js georgiaaquarium.org collected 2026-09-25 08:41:20 UTC 6,322 bytes, 1 lines download raw bytes

1((e,t)=>{"function"==typeof define&&define.amd?define(["./ResizeSensor.js"],t):"object"==typeof exports?module.exports=t(require("./_ResizeSensor.js")):(e.ElementQueries=t(e.ResizeSensor),e.ElementQueries.listen())})("undefined"!=typeof window?window:this,function(p){function n(){var d,h={},m=[];function f(e){e=e||document.documentElement;e=window.getComputedStyle(e,null).fontSize;return parseFloat(e)||16}function n(e,i){this.element=e;var r,o,s,l,a,d,m,u,c=["min-width","min-height","max-width","max-height"];this.call=function(){var e,t,n;for(r in e=this.element,s=e.getBoundingClientRect?(t=e.getBoundingClientRect(),{width:Math.round(t.width),height:Math.round(t.height)}):{width:e.offsetWidth,height:e.offsetHeight},d={},h[i])h[i].hasOwnProperty(r)&&(o=h[i][r],l=((e,t)=>{var n=t.split(/\d/),i=n[n.length-1];switch(t=parseFloat(t),i){case"px":return t;case"em":return t*f(e);case"rem":return t*f();case"vw":return t*document.documentElement.clientWidth/100;case"vh":return t*document.documentElement.clientHeight/100;case"vmin":case"vmax":var r=document.documentElement.clientWidth/100,o=document.documentElement.clientHeight/100;return t*(0,Math["vmin"===i?"min":"max"])(r,o);default:return t}})(this.element,o.value),a="width"===o.property?s.width:s.height,u=o.mode+"-"+o.property,m="","min"===o.mode&&l<=a&&(m+=o.value),"max"===o.mode&&a<=l&&(m+=o.value),d[u]||(d[u]=""),m)&&-1===(" "+d[u]+" ").indexOf(" "+m+" ")&&(d[u]+=" "+m);for(n in c)c.hasOwnProperty(n)&&(d[c[n]]?this.element.setAttribute(c[n],d[c[n]].substr(1)):this.element.removeAttribute(c[n]))}}function l(e,t){e.elementQueriesSetupInformation||(e.elementQueriesSetupInformation=new n(e,t)),e.elementQueriesSensor||(e.elementQueriesSensor=new p(e,function(){e.elementQueriesSetupInformation.call()})),e.elementQueriesSetupInformation.call()}function a(e){var t;if(t=(t=(t=document.querySelectorAll?e?e.querySelectorAll.bind(e):document.querySelectorAll.bind(document):t)||"undefined"==typeof $$?t:$$)||"undefined"==typeof jQuery?t:jQuery)return t;throw"No document.querySelectorAll, jQuery or Mootools's $$ found."}function i(){for(var e=a()("[data-responsive-image],[responsive-image]"),t=0,n=e.length;t<n;t++)(i=>{var e,t,n,r=[],o=[],s=[],l=0,a=-1,d=[];for(e in i.children)i.children.hasOwnProperty(e)&&i.children[e].tagName&&"img"===i.children[e].tagName.toLowerCase()&&(r.push(i.children[e]),t=i.children[e].getAttribute("min-width")||i.children[e].getAttribute("data-min-width"),n=i.children[e].getAttribute("data-src")||i.children[e].getAttribute("url"),s.push(n),o.push({minWidth:t}),t?i.children[e].style.display="none":(l=r.length-1,i.children[e].style.display="block"));function m(){var e,t,n=!1;for(e in r)r.hasOwnProperty(e)&&o[e].minWidth&&i.offsetWidth>o[e].minWidth&&(n=e);a!==(n=n||l)?d[n]?(r[a].style.display="none",r[n].style.display="block",a=n):((t=new Image).onload=function(){r[n].src=s[n],r[a].style.display="none",r[n].style.display="block",d[n]=!0,a=n},t.src=s[n]):r[n].src=s[n]}a=l,i.resizeSensor=new p(i,m),m()})(e[t])}var u=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,c=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function o(e){var t,n,i,r,o,s,l,a;for(e=e.replace(/'/g,'"');null!==(t=u.exec(e));)for(n=t[1]+t[3],i=t[2];null!==(l=c.exec(i));)r=n,o=l[1],s=l[2],l=l[3],(a=void 0)===h[r]&&(h[r]=[],a=m.length,d.innerHTML+="\n"+r+" {animation: 0.1s element-queries;}",d.innerHTML+="\n"+r+" > .resize-sensor {min-width: "+a+"px;}",m.push(r)),h[r].push({mode:o,property:s,value:l})}var r=!1;this.init=function(){var e="animationstart";void 0!==document.documentElement.style.webkitAnimationName?e="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?e="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(e="oanimationstart"),document.body.addEventListener(e,function(e){var t,n=e.target;-1!==window.getComputedStyle(n,null).getPropertyValue("animation-name").indexOf("element-queries")&&(n.elementQueriesSensor=new p(n,function(){n.elementQueriesSetupInformation&&n.elementQueriesSetupInformation.call()}),t=window.getComputedStyle(n.resizeSensor,null).getPropertyValue("min-width"),t=parseInt(t.replace("px","")),l(e.target,m[t]))}),r||((d=document.createElement("style")).type="text/css",d.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",d.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }
1",document.getElementsByTagName("head")[0].appendChild(d),r=!0);for(var t=0,n=document.styleSheets.length;t<n;t++)try{document.styleSheets[t].href&&0===document.styleSheets[t].href.indexOf("file://")&&console.log("CssElementQueries: unable to parse local css files, "+document.styleSheets[t].href),!function e(t){var n="";if(t)if("string"==typeof t)-1===(t=t.toLowerCase()).indexOf("min-width")&&-1===t.indexOf("max-width")||o(t);else for(var i=0,r=t.length;i<r;i++)1===t[i].type?-1===(n=t[i].selectorText||t[i].cssText).indexOf("min-height")&&-1===n.indexOf("max-height")&&-1===n.indexOf("min-width")&&-1===n.indexOf("max-width")||o(n):4===t[i].type?e(t[i].cssRules||t[i].rules):3===t[i].type&&e(t[i].styleSheet.cssRules)}(document.styleSheets[t].cssRules||document.styleSheets[t].rules||document.styleSheets[t].cssText)}catch(e){}i()},this.findElementQueriesElements=function(e){var t,n=e,i=a(n);for(t in h)if(h.hasOwnProperty(mode))for(var r=i(t,n),o=0,s=r.length;o<s;o++)l(r[o],t)},this.update=function(){this.init()}}n.update=function(){n.instance.update()},n.detach=function(e){e.elementQueriesSetupInformation?(e.elementQueriesSensor.detach(),delete e.elementQueriesSetupInformation,delete e.elementQueriesSensor):e.resizeSensor&&(e.resizeSensor.detach(),delete e.resizeSensor)},n.init=function(){(n.instance=n.instance?n.instance:new n).init()};return n.findElementQueriesElements=function(e){n.instance.findElementQueriesElements(e)},n.listen=function(){var e,t;e=n.init,document.addEventListener?document.addEventListener("DOMContentLoaded",e,!1):/KHTML|WebKit|iCab/i.test(navigator.userAgent)?t=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(e(),clearInterval(t))},10):window.onload=e},n});

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.