1const flowHompHeaderFooter = function (){ 2 function init(){ 3 moHeadernavi(); 4 thinBannerSlide(); 5 6 } 7 function moHeadernavi(){ 8 $('.js-btn-navi').off('click').on('click', function(){ 9 $('#headerInnerSection, .flow-header').toggleClass('open'); 10 $('html').toggleClass('js-preventScroll'); 11 }) 12 13 $('.js-gnb-mo-toggle-btn').off('click').on('click', function(){ 14 $(this).toggleClass('active'); 15 }) 16 } 17 18 function thinBannerSlide(){ 19 let isSlickInitialized = false; 20 21 function checkResponsiveSlider() { 22 const $slider = $('.top-thin-banner_wrapper'); 23 24 if (window.innerWidth <= 768) { 25 if (!isSlickInitialized) { 26 $slider.slick({ 27 arrows: false, 28 dots: false, 29 autoplay: true, 30 autoplaySpeed: 3000, 31 infinite: true, 32 slidesToShow: 1, 33 slidesToScroll: 1 34 }); 35 isSlickInitialized = true; 36 } 37 } else { 38 if (isSlickInitialized) { 39 $slider.slick('unslick'); 40 isSlickInitialized = false; 41 } 42 } 43 } 44 45 // ì´ê¸° ì¤í 46 checkResponsiveSlider(); 47 48 // ì°½ í¬ê¸° ë³ê²½ ì ì¬ì¤í (ì±ë¥ì ìí´ debounce ì¶ì² ê°ë¥) 49 $(window).on('resize', function () { 50 checkResponsiveSlider(); 51 }); 52 } 53 54 return { 55 init: init 56 } 57}(); 58 59flowHompHeaderFooter.init();
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.