Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/cartforge.co/pub/static/frontend/Smartwave/porto_child/en_US/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/cartforge.co/pub/static/frontend/Smartwave/porto_child/en_US/js/cartforge.js
require([
    'jquery',
    'owl.carousel/owl.carousel.min',
    'Magento_Ui/js/modal/modal'
], function($, modal) {

    // Initialize Owl Carousel
    var initOwlCarousel = function() {
        var bannerOwl = $("#banner-slider-demo-44");
        bannerOwl.owlCarousel({
            items: 5,  // Show 5 items at a time
            autoplay: true,
            autoplayTimeout: 2000,
            autoplayHoverPause: false,
            dots: false,
            nav: false,  // Show next/prev buttons
            loop: true,  // Enable looping
            lazyLoad: true,
            margin: 10,  // Space between items
            responsive: {
                0: {
                    items: 1  // Show 1 item on small screens
                },
                600: {
                    items: 2  // Show 2 items on medium screens
                },
                1000: {
                    items: 5  // Show 5 items on large screens
                }
            }
        });
    };



    // Initialize Video Play/Pause
    var initVideoToggle = function() {
        $('.video-section').on('click', function () {
            var video = $(this).find('.video-with-player-icon').get(0);
            var playButton = $(this).find('.player-icon');

            if (video.paused) {
                video.play();
                playButton.hide();
            } else {
                video.pause();
                playButton.show();
            }
        });
    };

    // Document Ready
    $(document).ready(function() {
        initOwlCarousel();
        initVideoToggle();
    });
});

Spamworldpro Mini