PageSourceSearch

https://signos.fr/wp-content/cache/min/1/wp-content/plugins/divifl…/js/contentcarousel.js?ver=1790156811

js signos.fr collected 2026-09-26 10:21:05 UTC 4,722 bytes, 19 lines download raw bytes

1(function(){var difl_testimonialcarousel=document.querySelectorAll('.difl_contentcarousel');[].forEach.call(difl_testimonialcarousel,function(ele,index){const container=ele.querySelector('.df_cc_container');const data=JSON.parse(container.dataset.settings);const selector=ele.querySelector('.swiper-container');const item_spacing_tablet=''!==data.item_spacing_tablet?data.item_spacing_tablet:data.item_spacing;const item_spacing_phone=''!==data.item_spacing_phone?data.item_spacing_phone:item_spacing_tablet;const desktopBreakpoint=window.matchMedia('(min-width: 992px)').matches;const tabletBreakpoint=window.matchMedia('screen and (min-width: 401px) and (max-width: 768px)').matches;const mobileBreakpoint=window.matchMedia('screen and (max-width: 400px)').matches;var config={speed:parseInt(data.speed),autoplay:!1,loop:data.loop,effect:data.effect,centeredSlides:data.centeredSlides==='on'?!0:!1,threshold:15,slideClass:'difl_contentcarouselitem',observer:!0,observeParents:!0,observeSlideChildren:!0,watchSlidesVisibility:!0,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,breakpoints:{981:{slidesPerView:data.desktop,spaceBetween:parseInt(data.item_spacing)},768:{slidesPerView:data.tablet,spaceBetween:parseInt(item_spacing_tablet)},1:{slidesPerView:data.mobile,spaceBetween:parseInt(item_spacing_phone)},}};if(data.effect==='coverflow'){config.coverflowEffect={slideShadows:data.slideShadows==='on'?!0:!1,rotate:parseInt(data.rotate),stretch:parseInt(data.stretch),depth:parseInt(data.depth),modifier:parseInt(data.modifier)}}
2if(('off'===data.autoplay&&desktopBreakpoint)||('off'===data.autoplay_tablet&&tabletBreakpoint)||('off'===data.autoplay_phone&&mobileBreakpoint)){config.autoplay=!1}
3if('on'===data.autoplay&&desktopBreakpoint){config.autoplay={delay:data.auto_delay,disableOnInteraction:!1}}
4if('on'===data.autoplay_tablet&&tabletBreakpoint){config.autoplay={delay:parseInt(data.auto_delay_tablet),disableOnInteraction:!1}}
5if('on'===data.autoplay_phone&&mobileBreakpoint){config.autoplay={delay:parseInt(data.auto_delay_phone),disableOnInteraction:!1}}
6if(data.arrow==='on'){config.navigation={nextEl:'.cc-next-'+data.order,prevEl:'.cc-prev-'+data.order}}
7if(data.dots==='on'){config.pagination={el:'.cc-dots-'+data.order,type:'bullets',clickable:!0}}
8if(typeof Swiper==='function'){var slider=new Swiper(selector,config);setTimeout(function(){slider.update(!0)},500);const pauseOnHoverDesktop='on'===data.autoplay&&'on'===data.pause_hover&&desktopBreakpoint;const pauseOnHoverTablet='on'===data.autoplay_tablet&&'on'===data.pause_hover_tablet&&tabletBreakpoint;const pauseOnHoverphone='on'===data.autoplay_phone&&'on'===data.pause_hover_phone&&mobileBreakpoint;if(pauseOnHoverDesktop||pauseOnHoverTablet||pauseOnHoverphone){selector.addEventListener("mouseover",function(){slider.autoplay.stop()})
9selector.addEventListener("mouseout",function(){slider.autoplay.start()})}
10if(('on'===data.autoplay&&desktopBreakpoint&&slider)||('on'===data.autoplay_tablet&&tabletBreakpoint&&slider)||('on'===data.autoplay_phone&&mobileBreakpoint&&slider)){document.addEventListener('scroll',()=>{handleAutoplay(selector,slider)});handleAutoplay(selector,slider)}}
11df_cc_handle_mouseover_event(ele);df_cc_use_lightbox(container.querySelector('.swiper-wrapper'),{cc_lightbox:data.use_lightbox})})})()
12function df_cc_use_lightbox(selector,options){if(options.cc_lightbox!=='on'||!selector)return;var galleryItems=selector.querySelectorAll('.df_cci_image_container');if(!galleryItems.length)return;var settings={selector:'.df_cci_image_container',subHtmlSelectorRelative:!0,addClass:'df_cc_lightbox',counter:!1,download:options.download};lightGallery(selector,settings)}
13function df_cc_handle_mouseover_event(ele){const hover_class='df-ele-hover';let class_list=ele.classList;ele.addEventListener('mouseleave',function(event){if(class_list.contains(hover_class)){setTimeout(function(){ele.classList.remove(hover_class)},3000)}})
14ele.addEventListener('mouseenter',function(event){if(!ele.classList.contains(hover_class)){ele.classList.add(hover_class)}})}
15function inViewport(selector){const offset=10;const element=selector.getBoundingClientRect();const elementTop=Math.round(element.top)+offset;const elementBottom=Math.round(element.bottom);return elementTop<=window.innerHeight&&elementBottom>=0}
16function handleAutoplay(selector,swiper){if(inViewport(selector)){swiper.autoplay.start();return}
17swiper.autoplay.stop()}
18const handleEmptyItem=()=>{const container=document.querySelectorAll('.difl_contentcarouselitem');
18if(!container)return;[...container].forEach(element=>{if(!element.querySelector('.df_cci_container')){element.remove()}})}
19window.addEventListener('DOMContentLoaded',handleEmptyItem)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.