1$(document).ready(function() { 2 const detailSlider = new Swiper('.js-scs-item-slider .swiper-container', { 3 slidesPerView: 1, 4 spaceBetween: 15, 5 pagination: { 6 el: ".swiper-pagination", 7 }, 8 }); 9 10 /* 11 let stopScroll = false; 12 13 $(window).scroll(function(){ 14 const wt = $(window).scrollTop(); 15 const wh = $(window).height(); 16 const et = $('.js-pagination').offset().top - 500; 17 const eh = $('.js-pagination').outerHeight(); 18 const dh = $(document).height(); 19 20 if((wt + wh >= et || wh + wt == dh || eh + et < wh) && !stopScroll){ 21 $('.js-pagination .pagination__item._active + .pagination__item .pagination__item-link').click(); 22 } 23 }); 24 25 $('.js-pagination').on('click', '.pagination__item._active + .pagination__item .pagination__item-link', function(){ 26 const url = $(this).attr('href'); 27 28 stopScroll = true; 29 30 $.ajax({ 31 url: url, 32 method: 'get', 33 success: function(data){ 34 const items = $(data).find('.catalog-grid').html(); 35 const pagination = $(data).find('.js-pagination').html(); 36 37 $('.catalog-grid').append(items); 38 $('.js-pagination').html(pagination); 39 40 const detailSlider = new Swiper('.js-scs-item-slider .swiper-container', { 41 slidesPerView: 1, 42 spaceBetween: 15, 43 pagination: { 44 el: ".swiper-pagination", 45 }, 46 }); 47 48 stopScroll = false; 49 } 50 }); 51 52 return false; 53 }); 54 */ 55});
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.