403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.217.33
Web Server : nginx/1.27.3
System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
User : mitr ( 1000)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /www/public1/ep3/wp-content/themes/greenshift/assets/sticky/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/public1/ep3/wp-content/themes/greenshift/assets/sticky/index.js
"use strict";
var prevGSScrollpos = window.pageYOffset;
var headerGSsticky = document.querySelector(".gs-sticky-header");
var headerGSstickyUp = headerGSsticky.classList.contains("gs-sticky-header-up");
let headerGSparentblock = headerGSsticky.parentNode;
let headerGSalphaenabled = headerGSparentblock.classList.contains("gs-header-alpha");
let stickySrc = document.querySelector("[data-stickysrc]");
if(stickySrc){
    stickySrc.setAttribute("data-originalsrc", stickySrc.getAttribute("src"));
    stickySrc.srcset = '';
}

window.addEventListener("scroll", function () {
    let direction = "down";
    if(headerGSstickyUp){
        let currentScrollPos = window.pageYOffset;
        if (prevGSScrollpos > currentScrollPos) {
            direction = "up";
        } else {
            direction = "down";
        }
        prevGSScrollpos = currentScrollPos;
    }
    if (headerGSsticky) {
        headerGSparentblock.classList.toggle("gs-sticky-enable", window.scrollY > 0 && ((headerGSstickyUp && direction == "up") || !headerGSstickyUp));
        if(headerGSalphaenabled){
            if(window.scrollY > headerGSparentblock.clientHeight){
                headerGSparentblock.classList.remove("gs-header-alpha");
            }else{
                headerGSparentblock.classList.add("gs-header-alpha");
            }
        }
        document.body.style = "--greenshift-sticky-height:" + headerGSparentblock.clientHeight + "px";
    }
    if(stickySrc){
        if(window.scrollY > 0 && ((headerGSstickyUp && direction == "up") || !headerGSstickyUp)){
            if(stickySrc && stickySrc.dataset.stickysrc != stickySrc.src){
                setTimeout(function(){
                    stickySrc.src = stickySrc.dataset.stickysrc;
                }, 100);
            }
        }else{
            if(stickySrc && stickySrc.dataset.originalsrc != stickySrc.src){
                setTimeout(function(){
                    stickySrc.src = stickySrc.dataset.originalsrc;
                }, 100);
            }
        }
    }
});

Youez - 2016 - github.com/yon3zu
LinuXploit