⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
v-tooltip
/
src
/
Edit File: utils.js
let SVGAnimatedString = function () {} if (typeof window !== 'undefined') { SVGAnimatedString = window.SVGAnimatedString } export function convertToArray (value) { if (typeof value === 'string') { value = value.split(' ') } return value } /** * Add classes to an element. * This method checks to ensure that the classes don't already exist before adding them. * It uses el.className rather than classList in order to be IE friendly. * @param {object} el - The element to add the classes to. * @param {classes} string - List of space separated classes to be added to the element. */ export function addClasses (el, classes) { const newClasses = convertToArray(classes) let classList if (el.className instanceof SVGAnimatedString) { classList = convertToArray(el.className.baseVal) } else { classList = convertToArray(el.className) } newClasses.forEach((newClass) => { if (classList.indexOf(newClass) === -1) { classList.push(newClass) } }) if (el instanceof SVGElement) { el.setAttribute('class', classList.join(' ')) } else { el.className = classList.join(' ') } } /** * Remove classes from an element. * It uses el.className rather than classList in order to be IE friendly. * @export * @param {any} el The element to remove the classes from. * @param {any} classes List of space separated classes to be removed from the element. */ export function removeClasses (el, classes) { const newClasses = convertToArray(classes) let classList if (el.className instanceof SVGAnimatedString) { classList = convertToArray(el.className.baseVal) } else { classList = convertToArray(el.className) } newClasses.forEach((newClass) => { const index = classList.indexOf(newClass) if (index !== -1) { classList.splice(index, 1) } }) if (el instanceof SVGElement) { el.setAttribute('class', classList.join(' ')) } else { el.className = classList.join(' ') } } export let supportsPassive = false if (typeof window !== 'undefined') { supportsPassive = false try { const opts = Object.defineProperty({}, 'passive', { get () { supportsPassive = true }, }) window.addEventListener('test', null, opts) } catch (e) {} }
Simpan