403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/coopermain/wp-content/themes/cooper/components/tooltip/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/coopermain/wp-content/themes/cooper/components/tooltip/tooltip.js
import AbstractComponent from "class/AbstractComponent";

export default class ComponentTooltip extends AbstractComponent {

    constructor(component) {
        super(component)

        this.isVisibile = false;
        this.icon = $(this.component).find(".tooltip-icon")
        this.modal = $(this.component).find(".tooltip-modal")

        this.events();
    }

    events() {
        const cb = (ev) => {
            if(ev.target !== this.modal[0]) {
                this.isVisibile = false
                this.modal.removeClass("show")
                $(document).off("click", cb)
            }
        }

        this.icon.on("click", () => {
            if(this.isVisibile) {
                this.isVisibile = false
                this.modal.removeClass("show")
            } else {
                this.isVisibile = true
                this.modal.addClass("show")

                setTimeout(() => {
                    $(document).on("click", cb)
                }, 500)
            }
        })
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit