1$(function(){ 2 3 if($(window).scrollTop() > 0){ 4 $("#header").addClass("active"); 5 } 6 7 if(location.search.slice(-12) == 'a30800000000') { 8 $("#header").addClass("active"); 9 } 10 11 $(window).on("scroll", function(){ 12 if(location.search.slice(-12) != 'a30800000000') { 13 if($(window).scrollTop() > 0){ 14 $("#header").addClass("active"); 15 }else{ 16 $("#header").removeClass("active"); 17 } 18 } 19 }); 20 21 /*$("#trip_area").find("ul").addClass("trip_list").addClass("clearfix");*/ 22 23 //ìë¨ ë©ë´ 24 $("#nav .depth1 > li").on("mouseenter focusin", function(){ 25 var navHeight = $(this).children(".depth2box").outerHeight(); 26 $(this).addClass("active"); 27 $("#header").addClass("active"); 28 if($(this).find(".depth2").length > 0){ 29 $(".menu_bg").css({ 30 "height": navHeight, "display":"block" 31 }); 32 $(".menu_bg").removeClass().addClass("menu_bg").addClass($(this).attr('id')); 33 $(".mask").show(); 34 $(this).siblings().children(".depth2box").removeClass("active"); 35 $(this).siblings().removeClass("active"); 36 $(this).children(".depth2box").addClass("active"); 37 } 38 }); 39 $("#nav .depth1 > li").on("mouseleave", function(){ 40 $(this).removeClass("active"); 41 $("#header").removeClass("active"); 42 $(".menu_bg").css({ 43 "height":"", "display":"none" 44 }); 45 $(".menu_bg").removeClass($(this).attr('id')); 46 if(!$('.find_top_area').hasClass("on")) { 47 $(".mask").hide(); 48 } 49 $("#nav .depth1 > li > .depth2box").removeClass("active"); 50 }); 51 $(document).on("focusin", function(){ 52 if($(":focus").parents("#nav").length <= 0 && $("#nav .depth1 > li.active").length > 0){ 53 $("#nav .depth1 > li").removeClass("active"); 54 $("#nav .depth2box").removeClass("active"); 55 $(".menu_bg").css({ 56 "height":"", "display":"none" 57 }); 58 $(".menu_bg").removeClass().addClass("menu_bg"); 59 $(".mask").hide(); 60 } 61 }) 62 63 // ì ì²´ë©ë´ì´ì 모ë°ì¼ ë©ë´ 64 //$("#gnb2").gnb2(); 65 set_gnb2($("#gnb2")); 66 67 68 //모ë°ì¼ ì¬ì´ë ë©ë´ 69 $(".slider_btn").click(function(){ 70 var snbWidth = $("#sidebar #snb").outerWidth(); 71 72 if(!$("#sidebar").hasClass("slidefull")){ 73 $("#sidebar").fadeIn(); 74 $("#sidebar").addClass("slidefull"); 75 $("#sidebar #snb").animate({right: "0"},200); 76 }else{ 77 $("#sidebar").fadeOut(); 78 $("#sidebar").removeClass("slidefull"); 79 $("#sidebar #snb").animate({right: "-"+snbWidth},200); 80 } 81 }); 82 83 84 85 //ìë¸ ë©ë´ 86 $(".lnb_list .depth1 > li > a").click(function(){ 87 if($(this).parent("li").children("ul").length > 0){ 88 if($(this).parent("li").hasClass("active")){ 89 $(".lnb_list .depth1 > li").removeClass("active"); 90 }else{ 91 $(".lnb_list .depth1 > li").removeClass("active"); 92 $(this).parent("li").addClass("active"); 93 } 94 } 95 }); 96 97 98 99 //íë¨ ê´ë ¨ ì¬ì´í¸ 100 $(".family_site .depth1 > li > button").on("click", function(){ 101 if(!$(this).parent("li").hasClass("active")){ 102 $(this).parent("li").addClass("active").siblings("li").removeClass("active"); 103 }else{ 104 105 } 106 }); 107 108 $(window).mouseup(function (e){ 109 if($("#footer .family_site").has(e.target).length === 0){ 110 $("#footer .family_site .depth1 > li").removeClass("active"); 111 } 112 }); 113 114/* $("#trip_area .trip_lnb > li > a").on("focusin", function(){ 115 $("#trip_area .depth2").removeClass("active"); 116 $(this).next(".depth2").addClass("active"); 117 }) 118 $("#trip_area .depth2 a").on("focusin", function(){ 119 $("#trip_area .depth2").removeClass("active"); 120 $(this).parents(".depth2").addClass("active"); 121 }) 122 $("#trip_area").next().find("a:eq(0)").on("focusin", function(){ 123 $("#trip_area .depth2").removeClass("active"); 124 })*/ 125 126 $("#trip_area .trip_lnb > li a").click(function(){ 127 $(this).parents("li").siblings().find(".depth2").hide(); 128 if($(this).next(".depth2").is(":visible")){ 129 $(this).next(".depth2").hide(); 130 }else{ 131 $(this).next(".depth2").show(); 132 } 133 134 }) 135 $("#trip_area .trip_lnb > li:eq(0)").children("a").attr("title", "ë©ì¸ì¼ë¡ ì´ë"); 136 $("#trip_area .trip_lnb > li").not(":eq(0)").children("a").attr("title", "ë©ë´ì í"); 137 138 139 $("#trip_area .trip_lnb > li").on("mouseenter focusin", function() { 140 const $trigger = $(this).children("a"); 141 $trigger.attr("aria-expanded", "false"); 142 }); 143 144 $("#trip_area .trip_lnb > li").on("mouseleave", function() { 145 const $trigger = $(this).children("a"); 146 $trigger.attr("aria-expanded", "true"); 147 }); 148}); 149 150/*------------------------------------------------- 151title : ë©ë´2 152-------------------------------------------------*/
153$.fn.gnb2 = function( options ) 154{ 155 var settings = $.extend 156 ({ 157 'btnOpen' : '.open', // ìµì´ ë©ë´ë¥¼ ì¬ë ë²í¼ 158 'btnClose' : '.close', // ë«ê¸° ë²í¼ì´ ë³ëë¡ ì¡´ì¬íë ê²½ì° 159 'classAdd' : '#gnb2', // íì±í ì í´ëì¤ê° ì¶ê°ëë ìì 160 'classAdd2' : '#gnb2 .mnfirst', // 2ì°¨ ë©ë´ ì´ê¸° íì±íëë í´ëì¤ëª 161 'className' : 'active', // ì¶ê°í í´ëì¤ëª (classAddì ì¶ê°ë¨) 162 'siblings' : true, // active ë ë íì ììì ë°ì ì¬ë¶ 163 'responsive' : false, // ë°ìíì¼ ë (true ì ë°ìíì¼ë ê°ë¡ ì¬ì´ì¦ ì´íììë§ / false ì ë°ìí ìë ëë í´ë¦ ëìí¨) 164 'responsiveWidth' : '1024', // ë°ìí ê°ë¡ ì¬ì´ì¦ 165 'target' : '#wrap', // íì±í ì í´ëì¤ê° ì¶ê°ëë ìì (ê³µëì¼ ê²½ì° ì¤ë²ëë a ë§í¬ ë¶ëª¨ liìë§ í
165´ëì¤ ì¶ê°ë¨) 166 'class' : 'sitemap', // ì¶ê°í í´ëì¤ëª (targetì ì¶ê°ë¨) 167 168 }, 169 options ); 170 171 // gnb2 3ì°¨ ë©ë´ ê°ì§ê³ ìë liì í´ëì¤ ì¶ê° 172 $('#gnb2 .depth2box > ul > li').each(function(i) 173 { 174 if ( $(this).find('div').length > 0 ) 175 { 176 // $(this).addClass('type1'); 177 } 178 }); 179 180 // 모ë°ì¼ ë©ë´ìì 3ëì¤ ìì ë 181 $('#gnb2 .depth2box > ul > li.type1 > a').on('click', function(){ 182 if($(this).parent().hasClass('active')){ 183 $(this).parent().removeClass('active'); 184 }else{ 185 $(this).parent().addClass('active').siblings().removeClass('active'); 186 } 187 return false; 188 }); 189 190 return this.each(function() 191 { 192 var $selecter = $(this); 193 194 195 // ë©ë´ í´ë¦ ì´ë²¤í¸ 196 function menuAction($this) 197 { 198 199 if($this.parent('li').hasClass("sub01") && $this.parent('li').parents('li').hasClass("lnb1")){ 200 201 }else if ( $this.next('*').length > 0) 202 { 203 204 $this.parent('li').siblings('li').removeClass('active'); 205 $this.parent('li').addClass('active'); 206 207 event.preventDefault(); 208 } 209 } 210 211 // ë©ë´ 212 $selecter.find('li a').on('click', function(e) 213 { 214 215 if ( settings.responsive == true ) 216 { 217 if ( $(window).width() <= settings.responsiveWidth ) 218 { 219 menuAction($(this)); 220 } 221 } 222 else 223 { 224 menuAction($(this)); 225 } 226 }); 227 228 return false; 229 }); 230}; 231 232function getParam(strHref, strParamName){ 233 var strReturn = ""; 234 var bFound=false; 235 var cmpstring = strParamName + "="; 236 var cmplen = cmpstring.length; 237 if ( strHref.indexOf("?") > -1 ){ 238 var strQueryString = strHref.substr(strHref.indexOf("?")+1); 239 var aQueryString = strQueryString.split("&"); 240 for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){ 241 if (aQueryString[iParam].substr(0,cmplen)==cmpstring){ 242 var aParam = aQueryString[iParam].split("="); 243 strReturn = aParam[1]; 244 bFound=true; 245 break; 246 } 247 } 248 } 249 if (bFound==false) return null; 250 return strReturn; 251} 252 253function showSearch() { 254 if($('.find_top_area').hasClass("on")) { 255 $('.find_top_area').removeClass("on"); 256 $(".mask").hide(); 257 } else { 258 $('.find_top_area').addClass("on"); 259 $(".mask").show(); 260 $("#search").focus(); //ì¹ì ê·¼ì±ìí´ì¶ê°. íì ë«ììë ë²í¼ì¼ë¡ í¬ì»¤ì¤ ëìì¤ê¸° 261 } 262} 263 264function closeSearch(){ 265 $('.find_top_area').removeClass("on"); 266 $(".mask").hide(); 267 $("#hd_btn_find").focus(); //ì¹ì ê·¼ì±ìí´ì¶ê°. íì ë«ììë ë²í¼ì¼ë¡ í¬ì»¤ì¤ ëìì¤ê¸° 268} 269 270function drop_language () { 271 272 if($(".drop_language").hasClass("active")) { 273 $(".drop_language").removeClass("active"); 274 } else { 275 $(".drop_language").addClass("active"); 276 } 277 278} 279 280function set_gnb2($this){ 281 var settings = { 282 'btnOpen' : '.open', // ìµì´ ë©ë´ë¥¼ ì¬ë ë²í¼ 283 'btnClose' : '.close', // ë«ê¸° ë²í¼ì´ ë³ëë¡ ì¡´ì¬íë ê²½ì° 284 'classAdd' : '#gnb2', // íì±í ì í´ëì¤ê° ì¶ê°ëë ìì 285 'classAdd2' : '#gnb2 .mnfirst', // 2ì°¨ ë©ë´ ì´ê¸° íì±íëë í´ëì¤ëª 286 'className' : 'active', // ì¶ê°í í´ëì¤ëª (classAddì ì¶ê°ë¨) 287 'siblings' : true, // active ë ë íì ììì ë°ì ì¬ë¶ 288 'responsive' : false, // ë°ìíì¼ ë (true ì ë°ìíì¼ë ê°ë¡ ì¬ì´ì¦ ì´íììë§ / false ì ë°ìí ìë ëë í´ë¦ ëìí¨) 289 'responsiveWidth' : '1024', // ë°ìí ê°ë¡ ì¬ì´ì¦ 290 'target' : '#wrap', // íì±í ì í´ëì¤ê° ì¶ê°ëë ìì (ê³µëì¼ ê²½ì° ì¤ë²ëë a ë§í¬ ë¶ëª¨ liìë§ í
290´ëì¤ ì¶ê°ë¨) 291 'class' : 'sitemap', // ì¶ê°í í´ëì¤ëª (targetì ì¶ê°ë¨) 292 293 }; 294 295 // gnb2 3ì°¨ ë©ë´ ê°ì§ê³ ìë liì í´ëì¤ ì¶ê° 296 $('#gnb2 .depth2box > ul > li').each(function(i) 297 { 298 if ( $this.find('div').length > 0 ) 299 { 300 // $this.addClass('type1'); 301 } 302 }); 303 304 // 모ë°ì¼ ë©ë´ìì 3ëì¤ ìì ë 305 $('#gnb2 .depth2box > ul > li.type1 > a').on('click', function(){ 306 if($this.parent().hasClass('active')){ 307 $this.parent().removeClass('active'); 308 }else{ 309 $this.parent().addClass('active').siblings().removeClass('active'); 310 } 311 return false; 312 }); 313 314 $this.each(function(i, item) 315 { 316 var $selecter = $(item); 317 318 319 // ë©ë´ í´ë¦ ì´ë²¤í¸ 320 function menuAction($item) 321 { 322 323 if($item.parent('li').hasClass("sub01") && $item.parent('li').parents('li').hasClass("lnb1")){ 324 325 }else if ( $item.next('*').length > 0) 326 { 327 328 $item.parent('li').siblings('li').removeClass('active'); 329 $item.parent('li').addClass('active'); 330 331 event.preventDefault(); 332 } 333 } 334 335 // ë©ë´ 336 $selecter.find('li a').on('click', function(e) 337 { 338 339 if ( settings.responsive == true ) 340 { 341 if ( $(window).width() <= settings.responsiveWidth ) 342 { 343 menuAction($(this)); 344 } 345 } 346 else 347 { 348 menuAction($(this)); 349 } 350 }); 351 352 return false; 353 }); 354} 355
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.