Файловый менеджер - Редактировать - /home/goldin10/public_html/getoutyourbox.com/wp-content/plugins/popup-maker/assets/js/iframeResizer.min.js
Error occurred
Назад
!function(c){"use strict";function p(e,n,i){"addEventListener"in window?e.addEventListener(n,i,!1):"attachEvent"in window&&e.attachEvent("on"+n,i)}function b(e,n,i){"removeEventListener"in window?e.removeEventListener(n,i,!1):"detachEvent"in window&&e.detachEvent("on"+n,i)}function o(e){return W+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}function i(e){return H[e]?H[e].log:f}function y(e,n){t("log",e,n,i(e))}function v(e,n){t("info",e,n,i(e))}function k(e,n){t("warn",e,n,!0)}function t(e,n,i,t){!0===t&&"object"==typeof window.console&&console[e](o(n),i)}function e(n){function e(){i("Height"),i("Width"),E(function(){C(w),M(h),c("resizedCallback",w)},w,"init")}function i(e){var n=Number(H[h]["max"+e]),i=Number(H[h]["min"+e]),t=e.toLowerCase(),o=Number(w[t]);y(h,"Checking "+t+" is in range "+i+"-"+n),o<i&&(o=i,y(h,"Set "+t+" to min value")),n<o&&(o=n,y(h,"Set "+t+" to max value")),w[t]=""+o}function t(e){return g.substr(g.indexOf(":")+N+e)}function a(e,n){!function(e,n,i){j[i]||(j[i]=setTimeout(function(){j[i]=null,e()},n))}(function(){O("Send Page Info","pageInfo:"+function(){var e=document.body.getBoundingClientRect(),n=w.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:n.height,iframeWidth:n.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(n.top-e.top,10),offsetLeft:parseInt(n.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})}(),e,n)},32,n)}function r(e){var n=e.getBoundingClientRect();return x(h),{x:Math.floor(Number(n.left)+Number(S.x)),y:Math.floor(Number(n.top)+Number(S.y))}}function o(e){var n=e?r(w.iframe):{x:0,y:0},i={x:Number(w.width)+n.x,y:Number(w.height)+n.y};y(h,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):k(h,"Unable to scroll to requested position, window.parentIFrame not found"):(S=i,s(),y(h,"--"))}function s(){!1!==c("scrollCallback",S)?M(h):z()}function c(e,n){return F(h,e,n)}var d,u,l,f,m,g=n.data,w={},h=null;"[iFrameResizerChild]Ready"===g?function(){for(var e in H)O("iFrame requested init",T(e),document.getElementById(e),e)}():W===(""+g).substr(0,P)&&g.substr(P).split(":")[0]in H?(m=g.substr(P).split(":"),w={iframe:H[m[0]]&&H[m[0]].iframe,id:m[0],height:m[1],width:m[2],type:m[3]},h=w.id,H[h]&&(H[h].loaded=!0),(f=w.type in{true:1,false:1,undefined:1})&&y(h,"Ignoring init message from meta parent page"),!f&&(l=!0,H[u=h]||(l=!1,k(w.type+" No settings for "+u+". Message was: "+g)),l)&&(y(h,"Received: "+g),d=!0,null===w.iframe&&(k(h,"IFrame ("+w.id+") not found"),d=!1),d&&function(){var e,i=n.origin,t=H[h]&&H[h].checkOrigin;if(t&&""+i!="null"&&!(t.constructor===Array?function(){var e=0,n=!1;for(y(h,"Checking connection is from allowed list of origins: "+t);e<t.length;e++)if(t[e]===i){n=!0;break}return n}():(e=H[h]&&H[h].remoteHost,y(h,"Checking connection is from: "+e),i===e)))throw new Error("Unexpected message received from: "+i+" for "+w.iframe.id+". Message was: "+n.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(H[h]&&H[h].firstRun&&H[h]&&(H[h].firstRun=!1),w.type){case"close":H[h].closeRequestCallback?F(h,"closeRequestCallback",H[h].iframe):I(w.iframe);break;case"message":!function(e){y(h,"MessageCallback passed: {iframe: "+w.iframe.id+", message: "+e+"}"),c("messageCallback",{iframe:w.iframe,message:JSON.parse(e)}),y(h,"--")}(t(6));break;case"scrollTo":o(!1);break;case"scrollToOffset":o(!0);break;case"pageInfo":a(H[h]&&H[h].iframe,h),function(){function e(n,i){function t(){H[r]?a(H[r].iframe,r):o()}["scroll","resize"].forEach(function(e){y(r,n+e+" listener for sendPageInfo"),i(window,e,t)})}function o(){e("Remove ",b)}var r=h;e("Add ",p),H[r]&&(H[r].stopPageInfo=o)}();break;case"pageInfoStop":H[h]&&H[h].stopPageInfo&&(H[h].stopPageInfo(),delete H[h].stopPageInfo);break;case"inPageLink":!function(e){var n,i=e.split("#")[1]||"",t=decodeURIComponent(i),o=document.getElementById(t)||document.getElementsByName(t)[0];o?(n=r(o),y(h,"Moving to in page link (#"+i+") at x: "+n.x+" y: "+n.y),S={x:n.x,y:n.y},s(),y(h,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(i):y(h,"In page link #"+i+" not found and window.parentIFrame not found"):y(h,"In page link #"+i+" not found")}(t(9));break;case"reset":R(w);break;case"init":e(),c("initCallback",w.iframe);break;default:e()}}())):v(h,"Ignored: "+g)}function F(e,n,i){var t=null,o=null;if(H[e]){if("function"!=typeof(t=H[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=t(i)}return o}function I(e){var n=e.id;y(n,"Removing iFrame: "+n),e.parentNode&&e.parentNode.removeChild(e),F(n,"closedCallback",n),y(n,"--"),delete H[n]}function x(e){null===S&&y(e,"Get page position: "+(S={x:window.pageXOffset!==c?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==c?window.pageYOffset:document.documentElement.scrollTop}).x+","+S.y)}function M(e){null!==S&&(window.scrollTo(S.x,S.y),y(e,"Set page position: "+S.x+","+S.y),z())}function z(){S=null}function R(e){y(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),x(e.id),E(function(){C(e),O("reset","reset",e.iframe,e.id)},e,"reset")}function C(n){function i(e){m||"0"!==n[e]||(m=!0,y(t,"Hidden iFrame detected, creating visibility listener"),function(){function n(){function e(n){function e(e){return"0px"===(H[n]&&H[n].iframe.style[e])}H[n]&&function(e){return null!==e.offsetParent}(H[n].iframe)&&(e("height")||e("width"))&&O("Visibility change","resize",H[n].iframe,n)}for(var n in H)e(n)}function i(e){y("window","Mutation observed: "+e[0].target+" "+e[0].type),a(n,16)}var t=window.MutationObserver||window.WebKitMutationObserver;t&&function(){var e=document.querySelector("body"),n={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new t(i).observe(e,n)}()}())}function e(e){(function(e){n.iframe.style[e]=n[e]+"px",y(n.id,"IFrame ("+t+") "+e+" set to "+n[e]+"px")})(e),i(e)}var t=n.iframe.id;H[t]&&(H[t].sizeHeight&&e("height"),H[t].sizeWidth&&e("width"))}function E(e,n,i){i!==n.type&&g?(y(n.id,"Requesting animation frame"),g(e)):e()}function O(e,n,i,t,o){var r,a=!1;t=t||i.id,H[t]&&(i&&"contentWindow"in i&&null!==i.contentWindow?(r=H[t]&&H[t].targetOrigin,y(t,"["+e+"] Sending msg to iframe["+t+"] ("+n+") targetOrigin: "+r),i.contentWindow.postMessage(W+n,r)):k(t,"["+e+"] IFrame("+t+") not found"),o&&H[t]&&H[t].warningTimeout&&(H[t].msgTimeout=setTimeout(function(){!H[t]||H[t].loaded||a||(a=!0,k(t,"IFrame has not responded within "+H[t].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ingored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},H[t].warningTimeout)))}function T(e){return e+":"+H[e].bodyMarginV1+":"+H[e].sizeWidth+":"+H[e].log+":"+H[e].interval+":"+H[e].enablePublicMethods+":"+H[e].autoResize+":"+H[e].bodyMargin+":"+H[e].heightCalculationMethod+":"+H[e].bodyBackground+":"+H[e].bodyPadding+":"+H[e].tolerance+":"+H[e].inPageLinks+":"+H[e].resizeFrom+":"+H[e].widthCalculationMethod}function r(i,e){var n,t,o,r,a,s=(t=i.id,""===t&&(i.id=(n=e&&e.id||A.id+l++,null!==document.getElementById(n)&&(n+=l++),t=n),f=(e||{}).log,y(t,"Added missing iframe ID: "+t+" ("+i.src+")")),t);s in H&&"iFrameResizer"in i?k(s,"Ignored iFrame, already setup."):(a=(a=e)||{},H[s]={firstRun:!0,iframe:i,remoteHost:i.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(a),function(e){for(var n in A)A.hasOwnProperty(n)&&(H[s][n]=e.hasOwnProperty(n)?e[n]:A[n])}(a),H[s]&&(H[s].targetOrigin=!0===H[s].checkOrigin?""===(o=H[s].remoteHost)||"file://"===o?"*":o:"*"),function(){switch(y(s,"IFrame scrolling "+(H[s]&&H[s].scrolling?"enabled":"disabled")+" for "+s),i.style.overflow=!1===(H[s]&&H[s].scrolling)?"hidden":"auto",H[s]&&H[s].scrolling){case!0:i.scrolling="yes";break;case!1:i.scrolling="no";break;default:i.scrolling=H[s]?H[s].scrolling:"no"}}(),function(){function e(e){1/0!==H[s][e]&&0!==H[s][e]&&(i.style[e]=H[s][e]+"px",y(s,"Set "+e+" = "+H[s][e]+"px"))}function n(e){if(H[s]["min"+e]>H[s]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(H[s]&&H[s].bodyMargin)&&"0"!==(H[s]&&H[s].bodyMargin)||(H[s].bodyMarginV1=H[s].bodyMargin,H[s].bodyMargin=H[s].bodyMargin+"px"),r=T(s),p(i,"load",function(){O("iFrame.onload",r,i,c,!0),function(){var e=H[s]&&H[s].firstRun,n=H[s]&&H[s].heightCalculationMethod in w;!e&&n&&R({iframe:i,height:0,width:0,type:"init"})}()}),O("init",r,i,c,!0),Function.prototype.bind&&H[s]&&(H[s].iframe.iFrameResizer={close:I.bind(null,H[s].iframe),resize:O.bind(null,"Window resize","resize",H[s].iframe),moveToAnchor:function(e){O("Move to anchor","moveToAnchor:"+e,H[s].iframe,s)},sendMessage:function(e){O("Send Message","message:"+(e=JSON.stringify(e)),H[s].iframe,s)}}))}function a(e,n){null===h&&(h=setTimeout(function(){h=null,e()},n))}function n(e){y("window","Trigger event: "+e),a(function(){d("Window "+e,"resize")},16)}function s(){"hidden"!==document.visibilityState&&(y("document","Trigger event: Visiblity change"),a(function(){d("Tab Visable","resize")},16))}function d(e,n){for(var i in H)H[t=i]&&"parent"===H[t].resizeFrom&&H[t].autoResize&&!H[t].firstRun&&O(e,n,document.getElementById(i),i);var t}function u(){function i(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),r(n,e),t.push(n))}var t;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!g;e+=1)g=window[n[e]+"RequestAnimationFrame"];g||y("setup","RequestAnimationFrame not supported")}(),p(window,"message",e),p(window,"resize",function(){n("resize")}),p(document,"visibilitychange",s),p(document,"-webkit-visibilitychange",s),p(window,"focusin",function(){n("focus")}),p(window,"focus",function(){n("focus")}),function(e,n){switch(t=[],function(e){e&&e.enablePublicMethods&&k("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(e),typeof n){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(n||"iframe"),i.bind(c,e));break;case"object":i(e,n);break;default:throw new TypeError("Unexpected data type ("+typeof n+")")}return t}}if("undefined"!=typeof window){var l=0,f=!1,m=!1,N="message".length,W="[iFrameSizer]",P=W.length,S=null,g=window.requestAnimationFrame,w={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},H={},h=null,A={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,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){k("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}},j={};window.jQuery&&((q=window.jQuery).fn?q.fn.iFrameResize||(q.fn.iFrameResize=function(i){return this.filter("iframe").each(function(e,n){r(n,i)}).end()}):v("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof define&&define.amd?define([],u):"object"==typeof module&&"object"==typeof module.exports?module.exports=u():window.iFrameResize=window.iFrameResize||u()}var q}();
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Генерация страницы: 0.17 |
proxy
|
phpinfo
|
Настройка