1 2const sections = document.querySelectorAll('.content.component'); 3 4window.addEventListener('scroll', () => { 5 let index = sections.length; 6 7 while(--index && window.scrollY + 300 < sections[index].offsetTop) {} 8 9 sections.forEach((sec) => sec.classList.remove('active')); 10 sections[index].classList.add('active'); 11}); 12 13$(document).ready(function () { 14 15 setTimeout(function () { 16 17 const $sliders = $('.slick-slider-1 .slides, .slick-slider-2 .slides'); 18 19 if ($sliders.length && $sliders.hasClass('slick-initialized')) { 20 21 $sliders.slick( 22 'slickSetOption', 23 'responsive', 24 [ 25 { 26 breakpoint: 1200, 27 settings: { 28 slidesToShow: 5 29 } 30 }, 31 { 32 breakpoint: 992, 33 settings: { 34 slidesToShow: 3 35 } 36 }, 37 { 38 breakpoint: 768, 39 settings: { 40 slidesToShow: 2 41 } 42 }, 43 { 44 breakpoint: 575, 45 settings: { 46 slidesToShow: 2 47 } 48 } 49 ], 50 true 51 ); 52 53 $sliders.slick('refresh'); 54 55 window.dispatchEvent(new Event('resize')); 56 } 57 58 }, 500); 59 60});
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.