uawdijnntqw1x1x1
IP : 18.191.222.65
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,parse_ini_file,show_source,eval,open_base,symlink
OS : Linux
PATH:
/
home
/
sudancam
/
public_html3
/
.well-known
/
..
/
.
/
.
/
.
/
..
/
.trash
/
src
/
js
/
mdb
/
perfect-scrollbar
/
process-scroll-diff.js
/
/
import { setScrollingClassInstantly } from './lib/class-names'; function createEvent(name) { if (typeof window.CustomEvent === 'function') { return new CustomEvent(name); } const evt = document.createEvent('CustomEvent'); evt.initCustomEvent(name, false, false, undefined); return evt; } export default function (i, axis, diff, useScrollingClass = true, forceFireReachEvent = false) { let fields; if (axis === 'top') { fields = ['contentHeight', 'containerHeight', 'scrollTop', 'y', 'up', 'down']; } else if (axis === 'left') { fields = ['contentWidth', 'containerWidth', 'scrollLeft', 'x', 'left', 'right']; } else { throw new Error('A proper axis should be provided'); } processScrollDiff(i, diff, fields, useScrollingClass, forceFireReachEvent); } function processScrollDiff( i, diff, [contentHeight, containerHeight, scrollTop, y, up, down], useScrollingClass = true, forceFireReachEvent = false ) { const element = i.element; // reset reach i.reach[y] = null; // 1 for subpixel rounding if (element[scrollTop] < 1) { i.reach[y] = 'start'; } // 1 for subpixel rounding if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) { i.reach[y] = 'end'; } if (diff) { element.dispatchEvent(createEvent(`ps-scroll-${y}`)); if (diff < 0) { element.dispatchEvent(createEvent(`ps-scroll-${up}`)); } else if (diff > 0) { element.dispatchEvent(createEvent(`ps-scroll-${down}`)); } if (useScrollingClass) { setScrollingClassInstantly(i, y); } } if (i.reach[y] && (diff || forceFireReachEvent)) { element.dispatchEvent(createEvent(`ps-${y}-reach-${i.reach[y]}`)); } }
/home/sudancam/public_html3/.well-known/.././././../.trash/src/js/mdb/perfect-scrollbar/process-scroll-diff.js