!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html_ecom1/public/dist/js/custom/site/   drwxr-xr-x
Free 26.21 GB of 117.98 GB (22.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     home.js (9.48 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
"use strict";

var myCustomSlider = document.querySelectorAll('.mySwiper');

for( let i=0; i< myCustomSlider.length; i++ ) {

  myCustomSlider[i].classList.add('mySwiper-' + i);

  if ( $('.mySwiper-' + i).find('.swiper-slide').length == 1 ) {
            options = {
                loop: false,
                autoplayDisableOnInteraction: false,
                pagination: '.swiper-pagination',
                allowTouchMove:false,
                paginationClickable: true,
                navigation: {
                    nextEl: ".swiper-button-next",
                    prevEl: ".swiper-button-prev",
                    disabledClass:'swiper-button-disabled'
                  }
            }
        } else {
            options = {
                effect: 'fade',
                spaceBetween: 30,
                centeredSlides: true,
                direction: 'horizontal',
                loop: true,
                autoplay: {
                  delay: 4500,
                  disableOnInteraction: false,
                },
                allowTouchMove:false,
                pagination: {
                  el: ".swiper-pagination",
                  clickable: true,
                },
                navigation: {
                  nextEl: ".swiper-button-next",
                  prevEl: ".swiper-button-prev",
                },
            }

        }
        var swiper = new Swiper('.mySwiper-' + i, options);
}

(function() {
    document.querySelectorAll('.slider').forEach(function(slider){

      let card = slider.querySelectorAll('.card');
      let cards = slider.querySelector('.cards');
      let img = slider.querySelectorAll('.img');
      let currentSlide = 0;
      let transition = window.innerWidth;

      cards.addEventListener('click', function(e) {

        let element = e.target;

        if (element.classList.contains('btn--prev') && !(currentSlide == 0)) {
          img[currentSlide].classList.remove('active');
          currentSlide--;
          img[currentSlide].classList.add('active');
        }

        if (element.classList.contains('btn--next') && !(currentSlide == card.length - 1)) {
          img[currentSlide].classList.remove('active');
          currentSlide++;
          img[currentSlide].classList.add('active');
        }

        cards.style.transform = `translate3d(${(transition * currentSlide)}px, 0, 0)`;
        cards.style.transition = '1s';
      });

      window.addEventListener('resize', function(cards) {
        transition = window.innerWidth;
        cards.style.transform = `translate3d(${(transition * currentSlide)}px, 0, 0)`;
        cards.style.transition = 0;
      });

    });
  }());

// Bottom nav start
var slideIndex = 1;

function plusSlides(n) {
    showSlides(0);
}

function currentSlides(n) {
    showSlides((slideIndex = n));
}

var slideIndex = 0;

let timeoutHandle;

function showSlides(auto = 1) {
    var i;
    var slides = document.getElementsByClassName("mySlides");
    var dots = document.getElementsByClassName("dot");
    for (i = 0; i < slides.length; i++) {
        slides[i].style.display = "none";
    }
    slideIndex++;
    if (slideIndex > slides.length) {
        slideIndex = 1;
    }
    for (i = 0; i < dots.length; i++) {
        dots[i].className = dots[i].className.replace(" active", "");
    }
    slides[slideIndex - 1].style.display = "block";
    dots[slideIndex - 1].className += " active";
    if (auto) {
        timeoutHandle = window.setTimeout(showSlides, 4000);
    } else {
        window.clearTimeout(timeoutHandle);
        timeoutHandle = window.setTimeout(showSlides, 4000);
    }
}

// Bottom nav end

var slideIndexs = 1;

function plusSlidess(p) {
    showSlidess((slideIndexs += p));
}

function currentSlide(p) {
    showSlidess((slideIndexs = p));
}

function showSlidess(p) {
    var i;
    var slides = document.getElementsByClassName("mySlidess");
    var dotss = document.getElementsByClassName("dotss");
    if (p > slides.length) {
        slideIndexs = 1;
    }
    if (p < 1) {
        slideIndexs = slides.length;
    }
    for (i = 0; i < slides.length; i++) {
        slides[i].style.display = "none";
    }
    for (i = 0; i < dotss.length; i++) {
        dotss[i].className = dotss[i].className.replace(" active", "");
    }
    slides[slideIndexs - 1].style.display = "block";
    dotss[slideIndexs - 1].className += " active";
}

function Tabs(options) {
    var tabs = document.querySelector(options.el);
    var initCalled = false;
    var tabNavigation = tabs.querySelector(".c-tabs-nav");
    var tabNavigationLinks = tabs.querySelectorAll(".c-tabs-nav__link");
    var tabContentContainers = tabs.querySelectorAll(".c-tab");
    var marker = options.marker ? createNavMarker() : false;
    var activeIndex = 0;

    function init() {
        if (!initCalled) {
            initCalled = true;

            for (var i = 0; i < tabNavigationLinks.length; i++) {
                var link = tabNavigationLinks[i];
                clickHandlerSetup(link, i);
            }

            if (marker) {
                setMarker(tabNavigationLinks[activeIndex]);
            }
        }
    }

    function clickHandlerSetup(link, index) {
        link.addEventListener("click", function (e) {
            e.preventDefault();
            goToTab(index);
        });
    }

    function goToTab(index) {
        if (
            index >= 0 &&
            index != activeIndex &&
            index <= tabNavigationLinks.length
        ) {
            tabNavigationLinks[activeIndex].classList.remove("is-active");
            tabNavigationLinks[index].classList.add("is-active");

            tabContentContainers[activeIndex].classList.remove("is-active");
            tabContentContainers[index].classList.add("is-active");

            if (marker) {
                setMarker(tabNavigationLinks[index]);
            }

            activeIndex = index;
        }
    }

    function createNavMarker() {
        var marker = document.createElement("div");
        marker.classList.add("c-tab-nav-marker");
        tabNavigation.appendChild(marker);
        return marker;
    }

    function setMarker(element) {
        marker.style.left = element.offsetLeft + "px";
        marker.style.width = element.offsetWidth + "px";
    }

    return {
        init: init,
        goToTab: goToTab,
    };
}

const iniTabs = () => {
    document.querySelectorAll(".p_tabs").forEach((tab) => {
        var m = new Tabs({
            el: "#" + tab.id,
            marker: true,
        });

        m.init();
    });
};

iniTabs();

$(document).ready(function () {
    /* Big cards slider */
    $(".slider-big-cards").slick({
        arrows: false,
        dots: false,
        infinite: true,
        initialSlide: 0.5,
        slidesToScroll: 1,
        slidesToShow: 7,
    });
});

var slideInd = 0;

const showSliderr = () => {
    var i;
    var slid = document.getElementsByClassName("mySliderr");
    for (i = 0; i < slid.length; i++) {
        slid[i].style.display = "none";
    }
    slideInd++;
    if (slideInd > slid.length) {
        slideInd = 1;
    }
    slid[slideInd - 1].style.display = "block";
    setTimeout(showSliderr, 4000); // Change image every 4 seconds
};

const initAllSlides = () => {
    let sliderr = document.querySelectorAll(".mySliderr");
    if (sliderr.length > 0) {
        showSliderr();
    }
    let slidess = document.querySelectorAll(".mySlidess");
    if (slidess.length > 0) {
        showSlidess(slideIndexs);
    }
    let slides = document.querySelectorAll(".mySlides");
    if (slides.length > 0) {
        showSlides();
    }
};
initAllSlides();

const sliderInitiate = () => {
    $(".sidebar_slider").each(function () {
        var slideInd = 0;

        var main = $(this).find(".builder_slider").get();
        builderSlider();

        function builderSlider() {
            var i;
            var slid = main;
            for (i = 0; i < slid.length; i++) {
                slid[i].style.display = "none";
            }
            slideInd++;
            if (slideInd > slid.length) {
                slideInd = 1;
            }
            slid[slideInd - 1].style.display = "block";
            setTimeout(builderSlider, 4000); // Change image every 4 seconds
        }
    });
};

sliderInitiate();

/**
 * Ajax product load
 */

var ajaxLoadedArray = [];

$.fn.isInViewport = function () {
    if (this.length == 0) {
        return false;
    }
    return this[0].getBoundingClientRect().top < $(window).height();
};

function startInitialLoad() {
    if ($(".has-ajax-load-data").length == 0) {
        return;
    }
    $(".has-ajax-load-data").each(function() {
        let button = this;

        let cid = $(button).data("component");

        if (ajaxLoadedArray.includes(cid)) {
            return;
        }

        ajaxLoadedArray.push(cid);

        $.ajax(ajaxLoadUrl + `?component=${cid}`, {
            type: "GET", // http method
            dataType: "json",
            data: {},
            success: function (data, status, xhr) {
                ajaxProductLoaded(button, data);
            },
            error: function (jqXhr, textStatus, errorMessage) {
            }
        });
    })
}

function ajaxProductLoaded(dom, data) {
    $(dom).parent().html(data.response.records.html);
}

startInitialLoad();


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0053 ]--