1(($) => { 2 $(document).ready(() => { 3 4 function postsCarousel() { 5 var checkWidth = $(window).width(); 6 var stepSlider = $(".tiles-picto--list"); 7 if (checkWidth > 1279) { 8 if (typeof stepSlider.data('owl.carousel') != 'undefined') { 9 stepSlider.data('owl.carousel').destroy(); 10 } 11 stepSlider.removeClass('owl-carousel'); 12 } else if (checkWidth < 1280) { 13 stepSlider.addClass('owl-carousel'); 14 stepSlider.owlCarousel({ 15 nav: false, 16 dots: true, 17 loop: true, 18 dotsContainer: '.tiles-picto--dots', 19 responsive: { 20 0: { 21 items: 1, 22 margin: 8, 23 stagePadding: 24 24 }, 25 768: { 26 items: 2, 27 margin: 8, 28 stagePadding: 74 29 }, 30 1024: { 31 items: 2, 32 margin: 8, 33 stagePadding: 120 34 }, 35 1280: { 36 items: 4, 37 margin: 32, 38 }, 39 40 41 } 42 }); 43 } 44 } 45 46 postsCarousel(); 47 $(window).resize(postsCarousel); 48 49 }); 50})(jQuery);
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.