Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/node_modules/sweetalert2/src/utils/ drwxr-xr-x |
Viewing file: Select action/file-type: /* istanbul ignore file */ import * as dom from './dom/index.js' import { swalClasses } from '../utils/classes.js' // Fix iOS scrolling http://stackoverflow.com/q/39626302 export const iOSfix = () => { const iOS = (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1) if (iOS && !dom.hasClass(document.body, swalClasses.iosfix)) { const offset = document.body.scrollTop document.body.style.top = `${offset * -1}px` dom.addClass(document.body, swalClasses.iosfix) lockBodyScroll() addBottomPaddingForTallPopups() // #1948 } } const addBottomPaddingForTallPopups = () => { const safari = !navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i) if (safari) { const bottomPanelHeight = 44 if (dom.getPopup().scrollHeight > window.innerHeight - bottomPanelHeight) { dom.getContainer().style.paddingBottom = `${bottomPanelHeight}px` } } } const lockBodyScroll = () => { // #1246 const container = dom.getContainer() let preventTouchMove container.ontouchstart = (e) => { preventTouchMove = shouldPreventTouchMove(e.target) } container.ontouchmove = (e) => { if (preventTouchMove) { e.preventDefault() e.stopPropagation() } } } const shouldPreventTouchMove = (target) => { const container = dom.getContainer() if (target === container) { return true } if ( !dom.isScrollable(container) && target.tagName !== 'INPUT' && // #1603 !( dom.isScrollable(dom.getContent()) && // #1944 dom.getContent().contains(target) ) ) { return true } return false } export const undoIOSfix = () => { if (dom.hasClass(document.body, swalClasses.iosfix)) { const offset = parseInt(document.body.style.top, 10) dom.removeClass(document.body, swalClasses.iosfix) document.body.style.top = '' document.body.scrollTop = (offset * -1) } } |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0032 ]-- |