403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.119.136.220
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/jenniferflocom/www/wp-content/plugins/gutenkit-blocks-addon/src/blocks/nav-menu/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/jenniferflocom/www/wp-content/plugins/gutenkit-blocks-addon/src/blocks/nav-menu/frontend.js
window.addEventListener('DOMContentLoaded', () => {
    const hamburgerBtns = document.querySelectorAll('.gkit-nav-menu-hamburger');
    const closeBtns = document.querySelectorAll('.gkit-menu-close');
    const overlays = document.querySelectorAll('.gkit-nav-menu-overlay');

    hamburgerBtns.forEach(hamburgerBtn => {
        hamburgerBtn.addEventListener('click', function () {
            this.parentElement.classList.toggle('active');
            if (this.parentElement.classList.contains('lock-scroll-for-offcanvas')) {
                document.body.classList.add('lock-scroll');
            }
        })
    })

    closeBtns.forEach(closeBtn => {
        closeBtn.addEventListener('click', function () {
            this.closest('.gkit-nav-menu-wrapper').parentElement.classList.remove('active');
            document.body.classList.remove('lock-scroll');
        })
    })

    overlays.forEach(overlay => {
        overlay.addEventListener('click', function () {
            this.parentElement.classList.remove('active');
            document.body.classList.remove('lock-scroll');
        })
    })

    document.onclick = function (e) {
        if (e.target.classList.contains('gkit-nav-menu-submenu-arrow')) {
            const link = e.target.closest('.gkit-nav-menu-link');
            link?.parentElement.classList.toggle('show-submenu');
        }

        if (e.target.parentElement.classList.contains('gkit-nav-menu-submenu-arrow')) {
            const link = e.target.closest('.gkit-nav-menu-link');
            link?.parentElement.classList.toggle('show-submenu');
        }

        if (e.target.parentElement.parentElement.classList.contains('gkit-nav-menu-submenu-arrow')) {
            const link = e.target.closest('.gkit-nav-menu-link');
            link?.parentElement.classList.toggle('show-submenu');
        }
    }
})

Youez - 2016 - github.com/yon3zu
LinuXploit