Linux sothorn202 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 202.28.82.202 | : 216.73.216.9
pkexec version 0.105
Cant Read [ /etc/named.conf ]
iqtd
RED EYES BYPASS SHELL!
Terminal
Auto Root
Adminer
Backdoor Destroyer
Kernel Exploit
Lock Shell
Lock File
Create User
+ Create Folder
+ Create File
/
home /
lifelonglearn /
pdpa /
src /
js /
mdb /
util /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
touch
[ DIR ]
drwxr-xr-x
focusTrap.js
2.49
KB
-rwxr-xr-x
index.js
5.72
KB
-rwxr-xr-x
keycodes.js
920
B
-rwxr-xr-x
sanitizer.js
3.31
KB
-rwxr-xr-x
scrollbar.js
2.84
KB
-rwxr-xr-x
stack.js
2.47
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : focusTrap.js
import SelectorEngine from '../dom/selector-engine'; import { isVisible } from './index'; class FocusTrap { constructor(element, options = {}, toggler) { this._element = element; this._toggler = toggler; this._event = options.event || 'blur'; this._condition = options.condition || (() => true); this._selector = options.selector || 'button, a, input, select, textarea, [tabindex]:not([tabindex="-1"])'; this._onlyVisible = options.onlyVisible || false; this._focusableElements = []; this._firstElement = null; this._lastElement = null; this.handler = (e) => { if (this._condition(e) && e.target === this._lastElement) { e.preventDefault(); this._firstElement.focus(); } }; } trap() { this._setElements(); this._init(); this._setFocusTrap(); } disable() { this._focusableElements.forEach((element) => { element.removeEventListener(this._event, this.handler); }); if (this._toggler) { this._toggler.focus(); } } update() { this._setElements(); this._setFocusTrap(); } _init() { const handler = (e) => { if (!this._firstElement || e.key !== 'Tab' || this._focusableElements.includes(e.target)) { return; } e.preventDefault(); this._firstElement.focus(); window.removeEventListener('keydown', handler); }; window.addEventListener('keydown', handler); } _filterVisible(elements) { return elements.filter((el) => { if (!isVisible(el)) return false; const ancestors = SelectorEngine.parents(el, '*'); for (let i = 0; i < ancestors.length; i++) { const style = window.getComputedStyle(ancestors[i]); if (style && (style.display === 'none' || style.visibility === 'hidden')) return false; } return true; }); } _setElements() { this._focusableElements = SelectorEngine.find(this._selector, this._element); if (this._onlyVisible) { this._focusableElements = this._filterVisible(this._focusableElements); } this._firstElement = this._focusableElements[0]; this._lastElement = this._focusableElements[this._focusableElements.length - 1]; } _setFocusTrap() { this._focusableElements.forEach((element, i) => { if (i === this._focusableElements.length - 1) { element.addEventListener(this._event, this.handler); } else { element.removeEventListener(this._event, this.handler); } }); } } export default FocusTrap;
Close