HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/refonte2023/wordpress/wp-content/plugins/ova-dep/assets/js/script-elementor.js
(function($){
	"use strict";

	$(window).on('elementor/frontend/init', function () {

        /* ova_list_dep */
        elementorFrontend.hooks.addAction('frontend/element_ready/ova_list_dep.default', function(){

            $('.ova_list_dep').each(function(){
                
            });

        });

        /* ova_archive_dep_slide */
        elementorFrontend.hooks.addAction('frontend/element_ready/ova_archive_dep_slide.default', function(){
            $(".ova_dep_slide").each(function(){
                var owlsl = $(this) ;
                var owlsl_ops = owlsl.data('options') ? owlsl.data('options') : {};

                if ( $('body').hasClass('rtl') ) {
                    owlsl_ops.rtl = true;
                }

                var responsive_value = {
                    0:{
                        items:1,
                        nav:false
                    },
                    767:{
                        items:1
                    },
                    992:{
                        items:2
                    },
                    1170:{
                        items:owlsl_ops.items
                    }
               };
              
                owlsl.owlCarousel({
                    autoWidth: owlsl_ops.autoWidth,
                    margin: owlsl_ops.margin,
                    items: owlsl_ops.items,
                    loop: owlsl_ops.loop,
                    autoplay: owlsl_ops.autoplay,
                    autoplayTimeout: owlsl_ops.autoplayTimeout,
                    center: owlsl_ops.center,
                    nav: owlsl_ops.nav,
                    dots: owlsl_ops.dots,
                    thumbs: owlsl_ops.thumbs,
                    autoplayHoverPause: owlsl_ops.autoplayHoverPause,
                    slideBy: owlsl_ops.slideBy,
                    smartSpeed: owlsl_ops.smartSpeed,
                    rtl : owlsl_ops.rtl,
                    navText:[
                        '<i class="fa fa-angle-left" ></i>',
                        '<i class="fa fa-angle-right" ></i>'
                    ],
                    responsive: responsive_value,
               });

                /* Fixed WCAG */
                owlsl.find(".owl-nav button.owl-prev").attr("title", "Previous");
                owlsl.find(".owl-nav button.owl-next").attr("title", "Next");
                owlsl.find(".owl-dots button").attr("title", "Dots");

            });
        });

        /* ova departments ( sidebar ) */
        elementorFrontend.hooks.addAction('frontend/element_ready/ova_list_dep_name.default', function(){

            $('.ova-list-dep-name .dep-list').each(function(e){

                var icon = $(this).find(".item i");

                icon.click(function(e){
                    e.preventDefault();
                    e.stopPropagation();
                    var cateChild = $(this).parent().next();
                    if ( $(this).attr("class") == "fas fa-plus" ) {
                        $(this).attr("class", "fas fa-minus");
                    } else {
                        $(this).attr("class", "fas fa-plus");
                    }
                    cateChild.slideToggle();
                });
                
            });

        });

   });

})(jQuery);