1;(function ($) { 2 3 /* 4 * sliders 5 */ 6 var imageSlider = function( $block ) { 7 $block.find('.slider__slider').slick({ 8 infinite: true, 9 fade: true, 10 speed: 2000, 11 cssEase: 'ease-out', 12 mobileFirst: true, 13 slidesToShow: 1, 14 slidesToScroll: 1, 15 dots: false, 16 arrows: false, 17 appendArrows: $block.find('.slider__arrows'), 18 prevArrow: '<button type="button" class="slick-prev" data-action="prev" aria-label="Slide précédente"><svg class="wzcm-svg-icon wzcm-svg-icon--button-left"><use xlink:href="/content/themes/viaburgundia/assets/images/sprite.svg#button-left"></use></svg><span class="sr-only">Précédent</span></button>', 19 nextArrow: '<button type="button" class="slick-next" data-action="next" aria-label="Slide suivante"><svg class="wzcm-svg-icon wzcm-svg-icon--button"><use xlink:href="/content/themes/viaburgundia/assets/images/sprite.svg#button"></use></svg><span class="sr-only">Suivant</span></button>', 20 autoplay: true, 21 autoplaySpeed: 4000, 22 focusOnSelect: true, 23 responsive: [ 24 { 25 breakpoint: 991, 26 settings: { 27 dots: false, 28 arrows: false 29 } 30 }, 31 ] 32 }); 33 } 34 35 jQuery(document).ready(function($) { 36 $(document).on('click', '.slider__scrolltosection', function(e) { 37 $('html, body').scrollTop( $('section:nth-child(2)').offset().top ); 38 }); 39 40 $('.slider').each(function() { 41 imageSlider( $(this) ); 42 }) 43 }); 44 45 // Initialize dynamic block preview (editor). 46 if( window.acf ) { 47 window.acf.addAction( 'render_block_preview/type=slider', imageSlider ); 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.