1// ¸Þ´º »ó´Ü°íÁ¤ 2 window.onscroll = function() {mainmenuFunction()}; 3 var navbar = document.getElementById("head"); 4 var logo = document.getElementById("toplogo"); 5 var gobtn = document.getElementById("gobtn"); 6 var gobtn2 = document.getElementById("gobtn2"); 7 var sticky = navbar.offsetTop; 8 function mainmenuFunction() { 9 //if (window.pageYOffset >= sticky) { 10 if (window.pageYOffset >= 100) { 11 navbar.classList.add("shown"); 12 logo.src="/2024/img/logoh.png?v=5"; 13 } else { 14 navbar.classList.remove("shown"); 15 logo.src="/2024/img/logoh.png?v=5"; 16 } 17 if (document.body.offsetWidth < 1000) { 18 if (window.pageYOffset >= 400) { 19 gobtn.classList.add("show3"); 20 gobtn2.classList.add("show3"); 21 } else { 22 gobtn.classList.remove("show3"); 23 gobtn2.classList.remove("show3"); 24 } 25 }else{ 26 if (window.pageYOffset >= 700) { 27 gobtn.classList.add("show3"); 28 gobtn2.classList.add("show3"); 29 } else { 30 gobtn.classList.remove("show3"); 31 gobtn2.classList.remove("show3"); 32 } 33 } 34 } 35 //¸ð¹ÙÀϸ޴º 36$('.toggle').click(function(e) { 37 e.preventDefault(); 38 39 var $this = $(this); 40 41 if ($this.next().hasClass('show')) { 42 $this.next().removeClass('show'); 43 $this.next().slideUp(350); 44 } else { 45 $this.parent().parent().find('li .inner').removeClass('show'); 46 $this.parent().parent().find('li .inner').slideUp(350); 47 $this.next().toggleClass('show'); 48 $this.next().slideToggle(350); 49 } 50}); 51$('.Viewmenu').on('click', function(){ 52 $('#fade-in').toggleClass('show'); 53}); 54$('.Mclose').on('click', function(){ 55 $('#fade-in').toggleClass('show'); 56}); 57//aos 58AOS.init({ 59 easing: 'ease-in-out-sine' 60}); 61//½½¶óÀ̵å 62var swiper = new Swiper('.m-main-best', { 63 slidesPerView: 2, 64 spaceBetween: 20, 65 autoplay : { 66 delay : 3000, 67 }, 68//centeredSlides: true, 69//loop: true, 70 // init: false, 71 72 navigation: { 73 nextEl: '.swiper-button-next-m-main-best', 74 prevEl: '.swiper-button-prev-m-main-best', 75 }, 76 breakpoints: { 77 640: { 78 slidesPerView: 2, 79 spaceBetween: 20, 80 81 }, 82 768: { 83 slidesPerView: 2, 84 spaceBetween: 20, 85 86 }, 87 1024: { 88 slidesPerView: 3, 89 spaceBetween: 30, 90 allowTouchMove: false 91 }, 92 } 93 }); 94//ÆË¾÷ 95function readCookie(cookiename) 96{ 97 var Found = false; 98 99 cookiedata = document.cookie; 100 if ( cookiedata.indexOf(cookiename) >= 0 ){ 101 Found = true; 102 } 103 104 return Found; 105} 106 107function setCookie( name, value, expiredays ) 108{ 109 var todayDate = new Date(); 110 todayDate.setDate( todayDate.getDate() + expiredays ); 111 document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 112} 113 function popupClose22(){ 114 setCookie("popupDayClose23", "true", 1); 115 popup22.style.display = 'none'; 116 document.getElementById("popContent22").innerHTML=""; 117 } 118 119 120 function popupCloses22(){ 121 122 popup22.style.display = 'none'; 123 document.getElementById("popContent22").innerHTML=""; 124 } 125 126 if(readCookie("popupDayClose23")){ 127 popup22.style.display = 'none'; 128} 129//¿ìÃø¸Þ´º 130$('#nav nav a').on('click', function(event) { 131 $(this).parent().find('a').removeClass('active'); 132 $(this).addClass('active'); 133 }); 134 $(window).on('scroll', function() { 135 $('.target').each(function() { 136 if($(window).scrollTop() >= $(this).offset().top - 200) { 137 var id = $(this).attr('id'); 138 $('#nav nav a').removeClass('active'); 139 $('#nav nav a[href=#'+ id +']').addClass('active'); 140 } 141 }); 142 });
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.