1$(document).ready(function() { 2 //select 3 $('select:not(.not)').niceSelect(); 4 5 // // í¤ë - ë©ë´ 6 // ìµë ëì´ ê³ì° ë° ì ì© í¨ì 7 function updateMenuHeight() { 8 const depth2Elements = document.querySelectorAll(".depth2"); 9 const menuBg = document.querySelector(".menu_bg"); 10 11 // ìµë ëì´ ê³ì° 12 let maxHeight = 0; 13 depth2Elements.forEach((depth2) => { 14 depth2.style.height = "auto"; // ëì´ ì´ê¸°í 15 const currentHeight = depth2.offsetHeight; // íì¬ ëì´ ê³ì° 16 if (currentHeight > maxHeight) { 17 maxHeight = currentHeight; // ê°ì¥ í° ëì´ ì ì¥ 18 } 19 }); 20 21 // 모ë depth2 ììì menu_bgì ëì¼í ëì´ ì ì© 22 depth2Elements.forEach((depth2) => { 23 depth2.style.height = `${maxHeight}px`; 24 }); 25 26 if (menuBg) { 27 menuBg.style.height = `${maxHeight}px`; 28 } 29 } 30 31 // í¬ì»¤ì¤ ì´ë²¤í¸: í¤ë³´ë ì ê·¼ ì ë©ë´ íì±í 32 $('.lnb > .menu_inner .depth1 a').on('focus', function () { 33 const parent1 = $(this).closest('.depth1'); 34 35 // 모ë .depth2 ë©ë´ íì±í 36 $('.lnb .depth2').css('display', 'block'); 37 38 // íì±í ìí ì ë°ì´í¸ 39 $('.lnb > .menu_inner .depth1').removeClass('over'); 40 parent1.addClass('over'); 41 42 // menu_bg ì¤íì¼ ì¤ì 43 $('.menu_bg').css({ 44 'box-shadow': '0 3px 10px 0 rgba(0, 0, 0, 0.05)', 45 }); 46 47 // ë©ë´ ëì´ ì ë°ì´í¸ 48 updateMenuHeight(); 49 }); 50 51 // í¬ì»¤ì¤ë¥¼ ë²ì´ë ë ì²ë¦¬ 52 $('.lnb > .menu_inner .depth1').each(function () { 53 const parent2 = $(this); 54 55 // ìë¸ ë©ë´ì ë§ì§ë§ í목ìì blur ë°ì ì 56 $(this) 57 .find('.menu_footer li:last-child a') 58 .on('blur', function () { 59 hideMenu(parent2); 60 }); 61 62 // í¤ë³´ëë¡ ì´ë ì ì²ë¦¬ 63 $(this) 64 .find('> a') 65 .on('keydown', function (e) { 66 if (e.shiftKey && e.keyCode === 9) { 67 hideMenu(parent2); 68 } 69 }); 70 71 // focusoutì¼ë¡ í¬ì»¤ì¤ ë²ì´ë ë ì²ë¦¬ 72 $(this).on('focusout', function (e) { 73 if (!$(e.relatedTarget).closest('.depth2').length) { 74 hideMenu(parent2); 75 } 76 }); 77 78 // menu_bg ì¤íì¼ ì´ê¸°í 79 $('.menu_bg').css({ 80 'box-shadow': 'none', 81 }); 82 }); 83 84 // ë©ë´ ì¨ê¸°ê¸° í¨ì 85 function hideMenu(parent) { 86 $('.menu_bg').css('height', '0'); // .menu_bg ì¨ê¸°ê¸° 87 $('.lnb .depth2').css('display', 'none'); // 모ë depth2 ë©ë´ ì¨ê¸°ê¸° 88 parent.removeClass('over'); // íì±í í´ì 89 } 90 91 // depth2_item ë° depth3_itemì hover ì over ì¶ê° 92 $('.depth2_item, .depth3_item') 93 .on('mouseenter', function () { 94 $(this).addClass('over'); // í´ë¹ í목ìë§ over í´ëì¤ ì¶ê° 95 }) 96 .on('mouseleave', function () { 97 $(this).removeClass('over'); // í´ë¹ í목ìì over í´ëì¤ ì ê±° 98 }); 99 100 // ë§ì°ì¤ hover ì depth2 ë©ë´ íì±í 101 $('.lnb > .menu_inner .depth1') 102 .on('mouseenter', function () { 103 const parent = $(this); 104 105 // íì±í ìí ì¶ê° 106 parent.addClass('over'); 107 $('#header').removeClass('header_shadow'); 108 $('.depth2').show(); 109 110 // ë©ë´ ëì´ ì ë°ì´í¸ 111 updateMenuHeight(); 112 113 // menu_bg ì¤íì¼ ì¤ì 114 $('.menu_bg').css({ 115 'box-shadow': '0 3px 10px 0 rgba(0, 0, 0, 0.05)', 116 }); 117 }) 118 .on('mouseleave', function () { 119 // ë¹íì±í ì²ë¦¬ 120 hideMenu($(this)); 121 122 // menu_bg ì¤íì¼ ì´ê¸°í 123 $('.menu_bg').css({ 124 'box-shadow': 'none', 125 }); 126 }); 127 128 129 // // MOBILE MENU 130 $(".mob_lnb .depth1").click(function () { 131 $(".mob_lnb .depth1.over").removeClass("over"); 132 $(this).addClass("over"); 133 }); 134 135 $(".mob_lnb .depth2 .depth2_item > a").click(function (e) { 136 var parent = $(this).closest(".depth2_item"); 137 138 if (parent.hasClass("hasChild")) { 139 //íìë©ë´ê° ììê²½ì° ë©ë´ë¥¼ ì¬ë¼ì´ëíë¤ 140 e.preventDefault(); //aíê·¸ ì´ëì ë©ì¶ë¤. 141 if (parent.hasClass("active")) { 142 parent.removeClass("active"); 143 parent.find(".depth3").slideUp(200); 144 } else { 145 parent.addClass("active"); 146 parent.find(".depth3").slideDown(200); 147 } 148 } 149 });
150 151 // // íë¨ ë°°ë 152 var banner_collect_swiper = new Swiper(".banner_collect_swiper", { 153 spaceBetween: 60, 154 slidesPerView: 'auto', 155 loop: true, 156 autoplay: { 157 delay: 4200, 158 disableOnInteraction: false, 159 }, 160 breakpoints: { 161 1100: { 162 spaceBetween: 100, 163 slidesPerView: 'auto', 164 } 165 }, 166 navigation: { 167 nextEl: ".banner_collect_wrap .btn_next button", 168 prevEl: ".banner_collect_wrap .btn_prev button", 169 }, 170 }); 171 172 $(".banner_collect_wrap .btns .btn.btn_pause").click(function () { 173 var parent = $(this).closest("div"); 174 if (parent.hasClass("active")) { 175 parent.removeClass("active"); 176 banner_collect_swiper.autoplay.start(); 177 $(this).find("span").html("ë°°ë ì¬ë¼ì´ë ì¼ìì ì§"); 178 } else { 179 parent.addClass("active"); 180 banner_collect_swiper.autoplay.stop(); 181 $(this).find("span").html("ë°°ë ì¬ë¼ì´ë ìì"); 182 } 183 }); 184 185 186 // // í ë²í¼ 187 $(function () { 188 $('.floating_pop .topBtn').click(function () { 189 $('body,html').animate({ 190 scrollTop: 0 191 }, 300); // í ì´ë ì¤í¬ë¡¤ ìë 192 return false; 193 }); 194 }); 195 196 197 // 모ë°ì¼ ë©ë´ - ë¡ê·¸ì¸ / ë¡ê·¸ìì - ìì ì¤í¬ë¦½í¸ 198 $('.mob_login_btn, .mob_login_btn_wr_after button').click(function() { 199 $('.mob_login_btn_wr, .mob_login_btn_wr_after').toggleClass('on'); 200 }); 201 202 203 // íì - í ì´ë¸ ë보기 ë²í¼ 204 document.addEventListener('click', function (event) { 205 if (event.target.closest('.btn_extend')) { 206 var btnExtend = event.target.closest('.btn_extend'); 207 var innerDiv = btnExtend.querySelector('.inner'); 208 var extendBtnSvg = $(btnExtend).find(".xi-angle-down"); 209 210 if (innerDiv.textContent.trim().includes('ë보기')) { 211 innerDiv.firstChild.textContent = 'ê°ëµë³´ê¸° '; 212 extendBtnSvg.css("transform", "rotate(180deg)"); 213 $('.tableWr .popup_table tr.extend').show(); 214 } else { 215 innerDiv.firstChild.textContent = 'ë보기 '; 216 extendBtnSvg.css("transform", "rotate(360deg)"); 217 $('.tableWr .popup_table tr.extend').hide(); 218 } 219 } 220 }); 221 222 223}); //// 224 225 226 // // 모ë°ì¼ë©ë´ì´ê¸° 227function openMenu() { 228 $(".mob_menu").addClass("open"); 229 } 230 231// // 모ë°ì¼ë©ë´ ë«ê¸° 232function closeMenu() { 233$(".mob_menu").removeClass("open"); 234} 235 236function openPopup(){ 237 $('.modal_popup').css('display' , 'flex'); 238} 239 240function openDeveloperInquiryPopup(){ 241 $('.developerInquiry_popup').css('display' , 'flex'); 242} 243 244function openUserEvaluationPopup(){ 245 $('.userEvaluation_popup').css('display' , 'flex'); 246} 247 248function closePopup(){ 249 $('.modal_popup').hide(); 250}
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.