//init AOS.init(); $(document).ready(function () { $('html').easeScroll({ frameRate: 10, animationTime: 1000, }); //web gnb $('.web-gnb').hover( function () { $('.header').addClass('on'); $('.web-gnb .depth-02-container').delay(600).stop().show(); // over }, function () { $('.header').removeClass('on'); $('.web-gnb .depth-02-container').delay(600).stop().hide(); // out } ); // gnb 클릭 $('.m-menu-btn').click(function () { $('.mobile-gnb').show(); }); $('.mobile-gnb .close-btn').click(function () { $('.mobile-gnb').hide(); }); $('.m-depth-01').click(function () { // e.preventDefault(); $('.m-depth-02-container').stop().slideUp(600); $(this).children('.m-depth-02-container').stop().slideDown(600); }); //리사이즈 $(window).resize(function () { mobileContent(); }); //반응형 윈도우 let windowWidth = $(window).width(); function mobileContent() { if (windowWidth > 1024) { $('.mobile-gnb').hide(); // console.log(windowWidth); } } // page-up-btn $('.page-up-btn').click(function (e) { e.preventDefault(); $('html,body').animate({ scrollTop: '0' }, 1000); }); });