Файловый менеджер - Редактировать - /var/www/html/media/foundry/scripts/vendor/bodyscrolllock.min.js
Ðазад
FD.module("vendor/bodyscrolllock",function(e){var o,t,n=this;o=this,t=function(e){Object.defineProperty(e,"__esModule",{value:!0});var o,t=!1;"undefined"!=typeof window&&(o={get passive(){t=!0}},window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o));function i(e){return e=e||window.event,!!m(e.target)||(1<e.touches.length||(e.preventDefault&&e.preventDefault(),!1))}function n(){void 0!==v&&(document.body.style.paddingRight=v,v=void 0),void 0!==u&&(document.body.style.overflow=u,u=void 0)}function l(){var e,o;void 0!==a&&(e=-parseInt(document.body.style.top,10),o=-parseInt(document.body.style.left,10),document.body.style.position=a.position,document.body.style.top=a.top,document.body.style.left=a.left,window.scrollTo(o,e),a=void 0)}var d="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&1<window.navigator.maxTouchPoints),r=[],c=!1,s=-1,u=void 0,a=void 0,v=void 0,m=function(o){return r.some(function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(o))})};e.disableBodyScroll=function(n,e){var o;n?r.some(function(e){return e.targetElement===n})||(o={targetElement:n,options:e||{}},r=[].concat(function(e){if(Array.isArray(e)){for(var o=0,t=Array(e.length);o<e.length;o++)t[o]=e[o];return t}return Array.from(e)}(r),[o]),d?window.requestAnimationFrame(function(){var e,o,t,n;void 0===a&&(a={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left},e=window,o=e.scrollY,t=e.scrollX,n=e.innerHeight,document.body.style.position="fixed",document.body.style.top=-o+"px",document.body.style.left=-t+"px",setTimeout(function(){return window.requestAnimationFrame(function(){var e=n-window.innerHeight;e&&n<=o&&(document.body.style.top=-(o+e))})},300))}):(o=e,void 0===v&&(e=!!o&&!0===o.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth,e&&0<o&&(e=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10),v=document.body.style.paddingRight,document.body.style.paddingRight=e+o+"px")),void 0===u&&(u=document.body.style.overflow,document.body.style.overflow="hidden")),d&&(n.ontouchstart=function(e){1===e.targetTouches.length&&(s=e.targetTouches[0].clientY)},n.ontouchmove=function(e){var o,t;1===e.targetTouches.length&&(t=n,e=(o=e).targetTouches[0].clientY-s,m(o.target)||(t&&0===t.scrollTop&&0<e||!!(t=t)&&t.scrollHeight-t.scrollTop<=t.clientHeight&&e<0?i(o):o.stopPropagation()))},c||(document.addEventListener("touchmove",i,t?{passive:!1}:void 0),c=!0))):console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},e.clearAllBodyScrollLocks=function(){d&&(r.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),c&&(document.removeEventListener("touchmove",i,t?{passive:!1}:void 0),c=!1),s=-1),(d?l:n)(),r=[]},e.enableBodyScroll=function(o){o?(r=r.filter(function(e){return e.targetElement!==o}),d&&(o.ontouchstart=null,o.ontouchmove=null,c&&0===r.length&&(document.removeEventListener("touchmove",i,t?{passive:!1}:void 0),c=!1)),(d?l:n)()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}},"object"==typeof exports&&void 0!==n?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((o="undefined"!=typeof globalThis?globalThis:o||self).bodyScrollLock={}),n.resolve()});
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка