
    document.addEventListener('DOMContentLoaded', function () {
        if (typeof Splide === 'undefined') return;
        var extensions = (typeof window.splide !== 'undefined' && window.splide.Extensions) ? window.splide.Extensions : {};
        var opts = {
            type: 'loop',
            drag: 'free',
            focus: 'center',
            perPage: 4,
            arrows: false,
            pagination: false,
            autoScroll: {
                speed: 1,
            },
        };
        document.querySelectorAll('.hp-customer-slider-one, .hp-customer-slider-two').forEach(function (root) {
            new Splide(root, opts).mount(extensions);
        });
    });
