403Webshell
Server IP : 172.67.158.161  /  Your IP : 18.191.168.10
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/easy-table-of-contents/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/easy-table-of-contents/assets/js/smooth_scroll.js
jQuery(document).ready((function() {
    var e = !1;
    void 0 !== eztoc_smooth_local.JumpJsLinks && 1 === parseInt(eztoc_smooth_local.JumpJsLinks) && (e = !0), document.querySelectorAll(".ez-toc-link").forEach((e => {
        e = e.replaceWith(e.cloneNode(!0))
    })), document.querySelectorAll(".ez-toc-section").forEach((e => {
        e.setAttribute("ez-toc-data-id", "#" + decodeURI(e.getAttribute("id")))
    })), jQuery("a.ez-toc-link").click((function() {

        let dhref = jQuery(this).attr("data-href");
        let ahref = jQuery(this).attr("href");

        if(1 === parseInt(eztoc_smooth_local.add_request_uri)){
            if(jQuery(this).attr("data-href")){
                let dsplit = jQuery(this).attr("data-href").split("#");                    
                if(dsplit && dsplit.length > 1){
                    dhref = `#${dsplit[1]}`;
                }                    
            }
            if(jQuery(this).attr("href")){
                let asplit = jQuery(this).attr("href").split("#");                    
                if(asplit && asplit.length > 1){
                    ahref = `#${asplit[1]}`;
                }
            }
        }

        let t = e ? dhref : ahref,
            o = jQuery("#wpadminbar"),
            c = jQuery("header"),
            r = 0;
        if (parseInt(eztoc_smooth_local.scroll_offset) > 30 && (r = parseInt(eztoc_smooth_local.scroll_offset)), o.length && (r += o.height()), (c.length && "fixed" == c.css("position") || "sticky" == c.css("position")) && (r += c.height()), jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').length > 0 && (r = jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').offset().top - r), jQuery("html, body").animate({
                scrollTop: r
            }, 500), e) return !1
    }))
}));

Youez - 2016 - github.com/yon3zu
LinuXploit