1$(() => { 2 new Swiper('.adv-slider', { 3 loop: true, 4 speed: 600, 5 autoplay: { 6 delay: 3000, 7 disableOnInteraction: false, 8 pauseOnMouseEnter: true, 9 }, 10 }) 11 12 const advScroll = () => { 13 if (window.scrollY > window.innerHeight) { 14 if ($('.floating-adv').hasClass('close')) { 15 $('.floating-adv').removeClass('close') 16 } 17 } 18 } 19 20 $(window).on('scroll', advScroll) 21 22 $('.floating-adv-close').click(function () { 23 $('.floating-adv').toggleClass('close') 24 25 if ($('.floating-adv').hasClass('close')) { 26 $(window).off('scroll', advScroll) 27 } 28 }) 29 30 const setAnnounc = () => { 31 $('.announcement-bar').addClass('d-none') 32 } 33 34 $('.announcement-close').click(() => { 35 setAnnounc() 36 }) 37 38 $('.infinite-slider').infiniteslide({ 39 clone: 5, 40 speed: 30 41 }) 42})
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.