1document.addEventListener("DOMContentLoaded", () => { 2 console.info('extended gallery is waiting'); 3 4 let extGallery = $('.ce_extended_gallery'), 5 extGalleryImageCount = extGallery.data('images-count'), 6 extGalleryRowSlider; 7 8 console.info('extended gallery images: ' + extGalleryImageCount); 9 10 if(extGalleryImageCount < 5) { 11 extGalleryRowSlider = extGallery.find('.row1 .row'); 12 } else { 13 extGalleryRowSlider = extGallery.find('.row'); 14 } 15 16 function ceExtendedGalleryForSlide() { 17 if($(window).width() < 765) { 18 if(!extGalleryRowSlider.hasClass('slick-initialized')) { 19 extGalleryRowSlider.slick({ 20 infinite: true, 21 arrows: true, 22 dots: false, 23 autoplay: false, 24 autoplaySpeed: 2000, 25 speed: 1000, 26 swipeToSlide: true, 27 slidesToShow: 1, 28 slidesToScroll: 1, 29 centerMode: true, 30 centerPadding: 0, 31 responsive: [{ 32 breakpoint: 480, 33 settings: { 34 slidesToShow: 1, 35 slidesToScroll: 1 36 } 37 }] 38 }); 39 } 40 } else { 41 if(extGalleryRowSlider.hasClass('slick-initialized')) { 42 extGalleryRowSlider.slick('unslick'); 43 } 44 } 45 } 46 47 $(window).resize(ceExtendedGalleryForSlide); 48 $(document).ready(ceExtendedGalleryForSlide); 49 50});
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.