HEX
Server: Apache
System: Linux webm006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/s/l/y/slyfwmm/pianob/wp-content/themes/zk-monaco/assets/2.0/js/zk-owlcarousel.js
/**
 * Custom OWL in theme
 */
(function ($) {
    "use strict";
    $(window).on('load',function () {
        /* add first/last/center class */
        function themeframe_owl_flc(e) {
            var idx = $(e.target).find('.owl-item');
            idx.removeClass('first last'), 
            idx.eq(e.item.index).addClass('first'), 
            idx.eq(e.item.index + e.page.size - 1).addClass('last')
        }
        $(".zk-carousel").each(function () {
            var $this = $(this),
                slide_id = $this.attr('id'),
                slider_settings = cmscarousel[slide_id];
            $this.on("initialized.owl.vccarousel", function(e) {
               themeframe_owl_flc(e);
            }),
            $this.vcOwlCarousel(slider_settings),
            $this.on("changed.owl.vccarousel", function(e) {
                themeframe_owl_flc(e)
            })
        });
    });
})(jQuery)