PageSourceSearch

https://www.lio-occitanie.fr/wp-content/plugins/responsive-posts-carousel/assets/front/js/custom.js

js lio-occitanie.fr collected 2026-10-02 11:08:41 UTC 2,247 bytes, 59 lines download raw bytes

1jQuery(document).ready(function($) {
2	$(".wcp-slick").each(function(index, el) {
3		slick_ob = {
4			infinite: ($(this).data('infinite') == 'on') ? true : false,		  
5			pauseOnHover: ($(this).data('pauseonhover') == 'on') ? true : false,		  
6			initialSlide: ($(this).data('initialslide') != undefined) ? parseInt($(this).data('initialslide')) : 0,
7			dots: ($(this).data('dots') == 'on') ? true : false,		  
8			arrows: ($(this).data('arrows') == 'on') ? true : false,		  
9			autoplay: ($(this).data('autoplay') == 'on') ? true : false,
10			autoplaySpeed: $(this).data('autoplayspeed'),
11			draggable: true,
12			cssEase: ($(this).data('cssease') == 'on') ? 'linear' : 'ease',
13			swipeToSlide: true,
14			speed: $(this).data('speed'),
15			slidesToShow: $(this).data('slidestoshow'),
16			slidesToScroll: $(this).data('slidestoscroll'),
17			slidesPerRow: $(this).data('slidesperrow'),
18			rows: $(this).data('rows'),
19			adaptiveHeight: true,
20		  	responsive: [{
21		      breakpoint: 992,
22		      settings: {
23		        slidesToShow: $(this).data('slidestoshowtab'),
24		        slidesToScroll: 1,
25		      }
26		    },
27		    {
28		      breakpoint: 768,
29		      settings: {
30		        slidesToShow: $(this).data('slidestoshowmob'),
31		        slidesToScroll: 1,
32		      }
33		    }]			
34		};
35		$(this).slick(slick_ob);
36	});
37
38	if ($('.fixed-height-image').length) {
39		$('.fixed-height-image').imagefill();
40		setTimeout(function() {$('.fixed-height-image').imagefill();}, 50);
41	}
42});
43
44jQuery(window).on("load", function (e) {
45	if (slick_ob.autoplay) {
46		$(".slick-dots").append( "<button class='is-Control-Slider is-button-Pause' aria-label='Stopper le défilement'></button>");
47	}
48    $('.is-Control-Slider').on("click", function () {
49        $(this).toggleClass('is-button-Pause').toggleClass('is-button-Play');
50        if ($(this).hasClass('is-button-Play')) {
51            $(this).attr('aria-label','Activer le défilement');
52            $(this).closest('.wcp-carousel-main-wrap .slick-slider').slick('slickPause');
53        }
54        else {
55            $(this).attr('aria-label','Stopper le défilement');
56            $(this).closest('.wcp-carousel-main-wrap .slick-slider').slick('slickPlay');
57        }
58    });
59});

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.