PageSourceSearch

https://www.gardenhealth.com/wp-content/cache/min/1/wp-content/the…/app/moove/iframeresizer.js?ver=1790075888

js gardenhealth.com collected 2026-09-24 22:20:59 UTC 13,938 bytes, 1 lines download raw bytes

1!function(e){if("undefined"!=typeof window){var n,i=0,t=!1,o=!1,r=7,a="[iFrameSizer]",s=a.length,f=null,c=window.requestAnimationFrame,l=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),d={},u=null,m=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){w("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),g={};e!==window.jQuery&&(n=window.jQuery,n.fn?n.fn.iFrameResize||(n.fn.iFrameResize=function e(n){function i(e,i){H(i,n)}return this.filter("iframe").each(i).end()}):$("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof define&&define.amd?define([],L):"object"==typeof module&&"object"==typeof module.exports&&(module.exports=L()),window.iFrameResize=window.iFrameResize||L()}function h(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function p(e,n,i){e.addEventListener(n,i,!1)}function b(e,n,i){e.removeEventListener(n,i,!1)}function y(e){return d[e]?d[e].log:t}function v(e,n){_("log",e,n,y(e))}function $(e,n){_("info",e,n,y(e))}function w(e,n){_("warn",e,n,!0)}function _(e,n,i,t){if(!0===t&&"object"==typeof window.console){var o,r,s;console[e](a+"["+(s="Host page: "+(r=o=n),window.top!==window.self&&(s=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+r:"Nested host page: "+r),s)+"]",i)}}function x(e){function n(){i("Height"),i("Width"),O(function e(){E(A),I(B),h("onResized",A)},A,"init")}function i(e){var n=Number(d[B]["max"+e]),i=Number(d[B]["min"+e]),t=e.toLowerCase(),o=Number(A[t]);v(B,"Checking "+t+" is in range "+i+"-"+n),o<i&&(o=i,v(B,"Set "+t+" to min value")),o>n&&(o=n,v(B,"Set "+t+" to max value")),A[t]=""+o}function t(e){return L.slice(L.indexOf(":")+r+e)}function o(e,n){var i,t,o=32;i=function i(){var t,o;T("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),JSON.stringify({iframeHeight:(o=A.iframe.getBoundingClientRect()).height,iframeWidth:o.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(o.top-t.top,10),offsetLeft:parseInt(o.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},t=n,g[t]||(g[t]=setTimeout(function(){g[t]=null,i()},32))}function c(e){var n=e.getBoundingClientRect();return M(B),{x:Math.floor(Number(n.left)+Number(f.x)),y:Math.floor(Number(n.top)+Number(f.y))}}function l(e){var n=e?c(A.iframe):{x:0,y:0},i={x:Number(A.width)+n.x,y:Number(A.height)+n.y};v(B,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(f=i,u(),v(B,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):w(B,"Unable to scroll to requested position, window.parentIFrame not found")}function u(){!1===h("onScroll",f)?R():I(B)}function m(e){var n={};if(0===Number(A.width)&&0===Number(A.height)){var i=t(9).split(":");n={x:i[1],y:i[0]}}else n={x:A.width,y:A.height};h(e,{iframe:A.iframe,screenX:Number(n.x),screenY:Number(n.y),type:A.type})}function h(e,n){return k(B,e,n)}var y,_,x,z,H,S,P,j,L=e.data,A={},B=null;"[iFrameResizerChild]Ready"===L?!function e(){for(var n in d)T("iFrame requested init",C(n),d[n].iframe,n)}():a===(""+L).slice(0,s)&&L.slice(s).split(":")[0]in d?(d[B=(A=(_=(y=L.slice(s).split(":"))[1]?parseInt(y[1],10):0,z=getComputedStyle(x=d[y[0]]&&d[y[0]].iframe),{iframe:x,id:y[0],height:_+function e(n){if("border-box"!==n.boxSizing)return 0;var i=n.paddingTop?parseInt(n.paddingTop,10):0,t=n.paddingBottom?parseInt(n.paddingBottom,10):0;return i+t}(z)+function e(n){if("border-box"!==n.boxSizing)return 0;var i=n.borderTopWidth?parseInt(n.borderTopWidth,10):0,t=n.borderBottomWidth?parseInt(n.borderBottomWidth,10):0;return i+t}(z),width:y[2],type:y[3]})).id]&&(d[B].loaded=!0),(H=A.type in{true:1,false:1,undefined:1})&&v(B,"Ignoring init message from meta parent page"),!H&&(P=!0,d[S=B]||(P=!1,w(A.type+" No settings for "+S+". Message was: "+L)),P)&&(v(B,"Received: "+L),j=!0,null===A.iframe&&(w(B,"IFrame ("+A.id+") not found"),j=!1),j&&function n(){var i,t=e.origin,o=d[B]&&d[B].checkOrigin;if(o&&""+t!="null"&&!(o.constructor===Array?function e(){var n=0,i=!1;for(v(B,"Checking connection is from allowed list of origins: "+o);n<o.length;n++)if(o[n]===t){i=!0;break}return i}():(i=d[B]&&d[B].remoteHost,v(B,"Checking connection is from: "+i),t===i)))throw Error("Unexpected message received from: "+t+" for "+A.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&!function e(){var i,r,a,s,g,y;switch(d[B]&&d[B].firstRun&&void(d[B]&&(d[B].firstRun=!1)),A.type){case"close"
1:F(A.iframe);break;case"message":i=t(6),v(B,"onMessage passed: {iframe: "+A.iframe.id+", message: "+i+"}"),h("onMessage",{iframe:A.iframe,message:JSON.parse(i)}),v(B,"--");break;case"mouseenter":m("onMouseEnter");break;case"mouseleave":m("onMouseLeave");break;case"autoResize":d[B].autoResize=JSON.parse(t(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":o(d[B]&&d[B].iframe,B),function e(){function n(e,n){function r(){d[t]?o(d[t].iframe,t):i()}["scroll","resize"].forEach(function(i){v(t,e+i+" listener for sendPageInfo"),n(window,i,r)})}function i(){n("Remove ",b)}var t=B;n("Add ",p),d[t]&&(d[t].stopPageInfo=i)}();break;case"pageInfoStop":d[B]&&d[B].stopPageInfo&&(d[B].stopPageInfo(),delete d[B].stopPageInfo);break;case"inPageLink":r=t(9),s=r.split("#")[1]||"",g=decodeURIComponent(s),y=document.getElementById(g)||document.getElementsByName(g)[0],y?(a=c(y),v(B,"Moving to in page link (#"+s+") at x: "+a.x+" y: "+a.y),f={x:a.x,y:a.y},u(),v(B,"--")):window.top===window.self?v(B,"In page link #"+s+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(s):v(B,"In page link #"+s+" not found and window.parentIFrame not found");break;case"reset":W(A);break;case"init":n(),h("onInit",A.iframe);break;default:0===Number(A.width)&&0===Number(A.height)?w("Unsupported message received ("+A.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}}())):$(B,"Ignored: "+L)}function k(e,n,i){var t=null,o=null;if(d[e]){if("function"==typeof(t=d[e][n]))o=t(i);else throw TypeError(n+" on iFrame["+e+"] is not a function")}return o}function z(e){delete d[e.id]}function F(e){var n=e.id;if(!1===k(n,"onClose",n)){v(n,"Close iframe cancelled by onClose event");return}v(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(i){w(i)}k(n,"onClosed",n),v(n,"--"),z(e)}function M(n){null===f&&v(n,"Get page position: "+(f={x:e===window.pageXOffset?document.documentElement.scrollLeft:window.pageXOffset,y:e===window.pageYOffset?document.documentElement.scrollTop:window.pageYOffset}).x+","+f.y)}function I(e){null!==f&&(window.scrollTo(f.x,f.y),v(e,"Set page position: "+f.x+","+f.y),R())}function R(){f=null}function W(e){v(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),M(e.id),O(function n(){E(e),T("reset","reset",e.iframe,e.id)},e,"reset")}function E(e){function n(n){var t;!function n(t){if(!e.id){v("undefined","messageData id not set");return}e.iframe.style[t]=e[t]+"px",v(e.id,"IFrame ("+i+") "+t+" set to "+e[t]+"px")}(n),t=n,o||"0"!==e[t]||(o=!0,v(i,"Hidden iFrame detected, creating visibility listener"),function e(){function n(){Object.keys(d).forEach(function(e){!function e(n){var i;function t(e){return"0px"===(d[n]&&d[n].iframe.style[e])}d[n]&&null!==(i=d[n].iframe).offsetParent&&(t("height")||t("width"))&&T("Visibility change","resize",d[n].iframe,n)}(e)})}var i,t=h();t&&(i=document.querySelector("body"),new t(function e(i){v("window","Mutation observed: "+i[0].target+" "+i[0].type),S(n,16)}).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}var i=e.iframe.id;d[i]&&(d[i].sizeHeight&&n("height"),d[i].sizeWidth&&n("width"))}function O(e,n,i){i!==n.type&&c&&!window.jasmine?(v(n.id,"Requesting animation frame"),c(e)):e()}function T(e,n,i,t,o){var r=!1;d[t=t||i.id]&&(!function o(){if(i&&"contentWindow"in i&&null!==i.contentWindow){var r;r=d[t]&&d[t].targetOrigin,v(t,"["+e+"] Sending msg to iframe["+t+"] ("+n+") targetOrigin: "+r),i.contentWindow.postMessage(a+n,r)}else w(t,"["+e+"] IFrame("+t+") not found")}(),o&&d[t]&&d[t].warningTimeout&&(d[t].msgTimeout=setTimeout(function e(){!d[t]||d[t].loaded||r||(r=!0,w(t,"IFrame has not responded within "+d[t].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},d[t].warningTimeout)))}function C(e){return e+":"+d[e].bodyMarginV1+":"+d[e].sizeWidth+":"+d[e].log+":"+d[e].interval+":"+d[e].enablePublicMethods+":"+d[e].autoResize+":"+d[e].bodyMargin+":"+d[e].heightCalculationMethod+":"+d[e].bodyBackgroun
1d+":"+d[e].bodyPadding+":"+d[e].tolerance+":"+d[e].inPageLinks+":"+d[e].resizeFrom+":"+d[e].widthCalculationMethod+":"+d[e].mouseEvents}function H(n,o){function r(e){var n=e.split("Callback");if(2===n.length){var i="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[i]=this[e],delete this[e],w(c,"Deprecated: '"+e+"' has been renamed '"+i+"'. The old method will be removed in the next major version.")}}var a,s,f,c=function e(r){if("string"!=typeof r)throw TypeError("Invaild id for iFrame. Expected String");if(""===r){var a;n.id=r=(a=o&&o.id||m.id+i++,null!==document.getElementById(a)&&(a+=i++),a),t=(o||{}).log,v(r,"Added missing iframe ID: "+r+" ("+n.src+")")}return r}(n.id);if(c in d&&"iFrameResizer"in n)w(c,"Ignored iFrame, already setup.");else{!function e(i){if(i=i||{},d[c]=Object.create(null),d[c].iframe=n,d[c].firstRun=!0,d[c].remoteHost=n.src&&n.src.split("/").slice(0,3).join("/"),function e(n){if("object"!=typeof n)throw TypeError("Options is not an object")}(i),Object.keys(i).forEach(r,i),function e(n){for(var i in m)Object.prototype.hasOwnProperty.call(m,i)&&(d[c][i]=Object.prototype.hasOwnProperty.call(n,i)?n[i]:m[i])}(i),d[c]){var t;d[c].targetOrigin=!0===d[c].checkOrigin?""===(t=d[c].remoteHost)||null!==t.match(/^(about:blank|javascript:|file:\/\/)/)?"*":t:"*"}}(o),function e(){switch(v(c,"IFrame scrolling "+(d[c]&&d[c].scrolling?"enabled":"disabled")+" for "+c),n.style.overflow=!1===(d[c]&&d[c].scrolling)?"hidden":"auto",d[c]&&d[c].scrolling){case"omit":break;case!0:n.scrolling="yes";break;case!1:n.scrolling="no";break;default:n.scrolling=d[c]?d[c].scrolling:"no"}}(),function e(){function i(e){var i,t=d[c][e];1/0!==t&&0!==t&&(i=t,n.style[e]="number"==typeof i?t+"px":t,v(c,"Set "+e+" = "+n.style[e]))}function t(e){if(d[c]["min"+e]>d[c]["max"+e])throw Error("Value for min"+e+" can not be greater than max"+e)}t("Height"),t("Width"),i("maxHeight"),i("minHeight"),i("maxWidth"),i("minWidth")}(),("number"==typeof(d[c]&&d[c].bodyMargin)||"0"===(d[c]&&d[c].bodyMargin))&&(d[c].bodyMarginV1=d[c].bodyMargin,d[c].bodyMargin=""+d[c].bodyMargin+"px"),s=C(c),(f=h())&&(a=f,n.parentNode&&new a(function(e){e.forEach(function(e){Array.prototype.slice.call(e.removedNodes).forEach(function(e){e===n&&F(n)})})}).observe(n.parentNode,{childList:!0})),p(n,"load",function i(){var t,o;T("iFrame.onload",s,n,e,!0),t=d[c]&&d[c].firstRun,o=d[c]&&d[c].heightCalculationMethod in l,!t&&o&&W({iframe:n,height:0,width:0,type:"init"})}),T("init",s,n,e,!0),d[c]&&(d[c].iframe.iFrameResizer={close:F.bind(null,d[c].iframe),removeListeners:z.bind(null,d[c].iframe),resize:T.bind(null,"Window resize","resize",d[c].iframe),moveToAnchor:function(e){T("Move to anchor","moveToAnchor:"+e,d[c].iframe,c)},sendMessage:function(e){T("Send Message","message:"+(e=JSON.stringify(e)),d[c].iframe,c)}})}}function S(e,n){null===u&&(u=setTimeout(function(){u=null,e()},n))}function P(){"hidden"!==document.visibilityState&&(v("document","Trigger event: Visibility change"),S(function e(){j("Tab Visible","resize")},16))}function j(e,n){Object.keys(d).forEach(function(i){var t;d[t=i]&&"parent"===d[t].resizeFrom&&d[t].autoResize&&!d[t].firstRun&&T(e,n,d[i].iframe,i)})}function L(){var n;function i(e,i){i&&(!function e(){if(i.tagName){if("IFRAME"!==i.tagName.toUpperCase())throw TypeError("Expected <IFRAME> tag, found <"+i.tagName+">")}else throw TypeError("Object is not a valid DOM element")}(),H(i,e),n.push(i))}return!function e(){var n,i=["moz","webkit","o","ms"];for(n=0;n<i.length&&!c;n+=1)c=window[i[n]+"RequestAnimationFrame"];c?c=c.bind(window):v("setup","RequestAnimationFrame not supported")}(),p(window,"message",x),p(window,"resize",function(){var e="resize";v("window","Trigger event: "+e),S(function n(){j("Window "+e,"resize")},16)}),p(document,"visibilitychange",P),p(document,"-webkit-visibilitychange",P),function t(o,r){var a;switch(n=[],(a=o)&&a.enablePublicMethods&&w("enablePublicMethods option has been removed, public methods are now always available in the iFrame"),typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),i.bind(e,o));break;case"object":i(o,r);break;default:throw TypeError("Unexpected data type ("+typeof r+")")}return 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.