403Webshell
Server IP : 104.171.130.249  /  Your IP : 216.73.216.146
Web Server : nginx/1.25.5
System : Linux 0dac65491b7e 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/themes/matreshka/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/matreshka/assets/js/sliders.js
(function(){
var $ = window.jQuery;
if (!$) { return; }
$(function() {
    if ($('.banner-slider').length) {
    $('.banner-slider').slick({
        slidesToShow: 3,
        slidesToScroll: 1,
        arrows: false,
        dots: false,
        infinite: false,
        autoplay: true,
        autoplaySpeed: 3000,
        centerPadding: '10px',
        responsive: [
            {
                breakpoint: 700,
                settings: {
                    slidesToShow: 1,
                    slidesToScroll: 1
                }
            }
        ]
    });
    }
});
$(function() {
    if ($('.discounts-slider').length) {
    $('.discounts-slider').slick({
        slidesToShow: 4,
        slidesToScroll: 1,
        arrows: false,
        dots: false,
        infinite: false,
        autoplay: true,
        autoplaySpeed: 4000,
        centerPadding: '10px',
        responsive: [
            {
                breakpoint: 700,
                settings: {
                    slidesToShow: 2,
                    slidesToScroll: 1
                }
            }
        ]
    });
    }
});
$(function() {
    if ($('.product-cards-slider').length) {
    $('.product-cards-slider').slick({
        slidesToShow: 5,
        slidesToScroll: 1,
        arrows: false,
        dots: true,
        customPaging: function(slider, i) {
            return '<img class="dots mt-3" src="' + (window.matreshka ? window.matreshka.themeUrl : '') + '/assets/icons/Rectangle.svg" alt="dots">'; 
        },
        infinite: false,
        autoplay: true,
        autoplaySpeed: 3000,
        centerPadding: '10px',
        responsive: [
            {
                breakpoint: 700,
                settings: {
                    slidesToShow: 2,
                    slidesToScroll: 1
                }
            }
        ]
    });
    }
});
$(function() {
    if ($('.product-page-slider').length) {
    var $productSlider = $('.product-page-slider');
    var productSlideCount = $productSlider.children('.product-page-slide').length;

    $productSlider.find('img.product-image[data-fallback-src]').one('error', function() {
        var fallbackSrc = $(this).data('fallback-src');
        if (fallbackSrc && this.src !== fallbackSrc) {
            this.src = fallbackSrc;
            $(this).addClass('product-image--fallback');
        }
    });

    if (productSlideCount < 2) {
        $productSlider.addClass('product-page-slider--single');
        return;
    }

    function refreshProductSlider() {
        if ($productSlider.hasClass('slick-initialized')) {
            $productSlider.slick('setPosition');
        }
    }

    $productSlider.on('init', function() {
        window.requestAnimationFrame(refreshProductSlider);
        setTimeout(refreshProductSlider, 150);
    });

    $productSlider.slick({
        slidesToShow: 1,
        slidesToScroll: 1,
        arrows: true,
        prevArrow: '<button class="slick-arrows slick-prev" aria-label="Previous" type="button"><img src="' + (window.matreshka ? window.matreshka.themeUrl : '') + '/assets/icons/SliderArrowLeft.svg" alt="Arrow left"></button>',
        nextArrow: '<button class="slick-arrows slick-next" aria-label="Next" type="button"><img src="' + (window.matreshka ? window.matreshka.themeUrl : '') + '/assets/icons/SliderArrowRight.svg" alt="Arrow right"></button>',
        dots: true,
        customPaging: function(slider, i) {
            return '<img class="dots mt-3" src="' + (window.matreshka ? window.matreshka.themeUrl : '') + '/assets/icons/Rectangle.svg" alt="dots">'; 
        },
        infinite: false,
        autoplay: false,
        centerPadding: '10px',
        responsive: [
            {
                breakpoint: 700,
                settings: {
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    arrows: false,
                    dots: false,
                }
            }
        ]
    });

    $productSlider.find('img').each(function() {
        if (this.complete) {
            refreshProductSlider();
        } else {
            $(this).one('load error', refreshProductSlider);
        }
    });

    $(window).on('load resize orientationchange', refreshProductSlider);
    }
});
})();

Youez - 2016 - github.com/yon3zu
LinuXploit