1/* gnb */ 2 3(function($){ 4 $.fn.navi=function(options){ 5 //ìµì ê° 6 var opt={ 7 pageNum:null, //ë©ì¸ë©ë´ íì´ì§ì¸ì 8 subNum:null, //ìë¸ë©ë´ íì´ì§ì¸ì 9 motionType:'slide', //모ì íì (none,fade,slide) 10 motionSpeed:100, //모ì ìë(ë°ë¦¬ì´) 11 delayTime:0 //ë©ë´ììì ëëìê°ë ëë ì´ìê°(ë°ë¦¬ì´) 12 } 13 $.extend(opt,options); 14 return this.each(function(){ 15 var $this=$(this); 16 var $menuList=$this.find('>.main'); 17 var $subList=$menuList.find('>.depth2 >.inner >ul>.sub'); 18 var listNum=$menuList.length; 19 var fixMenu=opt.pageNum-1; 20 var fixSub=opt.subNum-1; 21 var currentMenu=fixMenu; 22 var currentSub=fixSub; 23 var timerId; 24 init(); 25 26 function init(){ 27 setMouseEvent(); 28 setAnimation(); 29 } 30 31 function setMouseEvent(){ 32 $this.bind('mouseenter',function(){ 33 clearTimeout(timerId); 34 }); 35 $this.bind('mouseleave',function(){ 36 timerId=setTimeout(setAnimation,opt.delayTime); 37 }); 38 $menuList.bind('mouseenter keyup',function(){ 39 currentMenu=$(this).index(); 40 if(currentMenu!=fixMenu){ 41 currentSub=null; 42 } 43 setAnimation(); 44 }); 45 $menuList.bind('mouseleave',function(){ 46 if(currentMenu!=fixMenu){ 47 currentSub=fixSub; 48 } 49 currentMenu=fixMenu; 50 }); 51 52 $subList.bind('mouseenter keyup',function(){ 53 currentSub=$(this).index(); 54 setAnimation(); 55 }); 56 $subList.bind('mouseleave',function(){ 57 var _currentMenu=$(this).parents('.main').index(); 58 if(_currentMenu==fixMenu){ 59 currentSub=fixSub; 60 }else{ 61 currentSub=null; 62 } 63 }); 64 } 65 66 function setAnimation(){ 67 for(var i=0;i<listNum;i++){ 68 var _menuList=$menuList.eq(i); 69 if(currentMenu==i){ 70 switch(opt.motionType){ 71 case 'fade': 72 _menuList.find('>.depth2').stop(true,true).fadeIn(opt.motionSpeed); 73 break; 74 case 'slide': 75 _menuList.find('>.depth2').stop(true,true).slideDown(opt.motionSpeed); 76 break; 77 default: 78 _menuList.find('>.depth2').show(); 79 } 80 _menuList.addClass('main_select'); 81 setReplace(_menuList.find('>a>img'),'src','_off','_on') 82 for(var k=0;k<_menuList.find('.sub').length;k++){ 83 var _sub=_menuList.find('.sub').eq(k); 84 if(currentSub==k){ 85 setReplace(_sub.find('>a>img'),'src','_off','_on'); 86 _sub.addClass('sub_select'); 87 }else{ 88 _sub.removeClass('sub_select'); 89 setReplace(_sub.find('>a>img'),'src','_on','_off'); 90 } 91 } 92 }else{ 93 switch(opt.motionType){ 94 case 'fade': 95 _menuList.find('.depth2').stop(true,true).fadeOut(opt.motionSpeed/2); 96 break; 97 case 'slide': 98 _menuList.find('.depth2').stop(true,true).slideUp(opt.motionSpeed/2); 99 break; 100 default: 101 _menuList.find('.depth2').hide(); 102 } 103 _menuList.removeClass('main_select'); 104 setReplace(_menuList.find('>a>img'),'src','_on','_off'); 105 106 } 107 } 108 } 109 110 function setReplace(_mc,_attr,_old,_new){ 111 var str=_mc.attr(_attr); 112 if(String(str).search(_old)!=-1){ 113 _mc.attr(_attr,str.replace(_old,_new)); 114 } 115 } 116 117 }) 118 } 119})(jQuery) 120 121$(function(){ 122 123 124 125 $(".on_off a").mouseenter(function(){ 126 $(this).find('.img img').get(0).src = $(this).find('img').get(0).src.replace('_off', '_on'); 127 }); 128 $(".on_off a").mouseleave(function(){ 129 $(this).find('.img img').get(0).src = $(this).find('img').get(0).src.replace('_on', '_off'); 130 }); 131 132 $( ".M_site_btn .btn" ).mouseenter(function() { 133 $( ".M_site_btn .ment" ).animate({ 134 opacity: 1, 135 marginTop: "-3px", 136 }, 500 ); 137 }); 138 $( ".M_site_btn .btn" ).mouseleave(function() { 139 $( ".M_site_btn .ment" ).animate({ 140 opacity: 0, 141 marginTop: "3px", 142 }, 500 ); 143 }); 144 145 $(".gnb .main").mouseenter(function(){ 146 $(this).children('.depth2').children(".inner").children(".ic").animate({ 147 width: $(this).width()+94, 148 top:-11 149 }, 100 ); 150 $(this).children('.depth2').children(".inner").children(".ic").children("span").animate({ 151 opacity: 1 152 }, 100 ); 153 154 }); 155 156 $(".gnb .main").mouseleave(function(){ 157 $(this).children('.depth2').children(".inner").children(".ic").animate({ 158 top:-3 159 }, 100 ); 160 $(this).children('.depth2').children(".inner").children(".ic").children("span").animate({ 161 opacity: 0 162 }, 100 ); 163 164 }); 165 166 $(".jsa_2 .con1 .in_cover .l_btn_wrap a").click(function(){ 167 $(this).parent('.jsa_2 .con1 .in_cover .l_btn_wrap').parent('.jsa_2 .con1 .in_cover').parent('.jsa_2 .con1').children('.jsa_2 .con1 .ab_Pop').show(); 168 }); 169 $(".jsa_2 .con1 .ab_Pop .pop_map .colse").click(function(){ 170 $(this).parent('.jsa_2 .con1 .pop_map').parent('.jsa_2 .con1 .ab_Pop').hide(); 171 }); 172 173 $(".jsa_4 .con4 .in_cover .l_btn_wrap a").click(function(){ 174 $(this).parent('.jsa_4 .con4 .in_cover .l_btn_wrap').parent('.jsa_4 .con4 .in_cover').parent('.jsa_4 .con4').children('.jsa_4 .con4 .ab_Pop').show(); 175 }); 176 $(".jsa_4 .con4 .ab_Pop .pop_map .colse").click(function(){ 177 $(this).parent('.jsa_4 .con4 .pop_map').parent('.jsa_4 .con4 .ab_Pop').hide(); 178 }); 179 180 $(".dmz_4 .con1 .in_cover .l_btn_wrap a").click(function(){ 181 $(this).parent('.dmz_4 .con1 .in_cover .l_btn_wrap').parent('.dmz_4 .con1 .in_cover').parent('.dmz_4 .con1').children('.dmz_4 .con1 .ab_Pop').show(); 182 }); 183 $(".dmz_4 .con1 .ab_Pop .pop_map .colse").click(function(){ 184 $(this).parent('.dmz_4 .con1 .pop_map').parent('.dmz_4 .con1 .ab_Pop').hide(); 185 }); 186 187 $(".dmz_5 .con1 .in_cover .l_btn_wrap a").click(function(){ 188 $(this).parent('.dmz_5 .con1 .in_cover .l_btn_wrap').parent('.dmz_5 .con1 .in_cover').parent('.dmz_5 .con1').children('.dmz_5 .con1 .ab_Pop').show(); 189 }); 190 $(".dmz_5 .con1 .ab_Pop .pop_map .colse").click(function(){ 191 $(this).parent('.dmz_5 .con1 .pop_map').parent('.dmz_5 .con1 .ab_Pop').hide(); 192 }); 193 194 $(".dmz_6 .con1 .in_cover .l_btn_wrap a").click(function(){ 195 $(this).parent('.dmz_6 .con1 .in_cover .l_btn_wrap').parent('.dmz_6 .con1 .in_cover').parent('.dmz_6 .con1').children('.dmz_6 .con1 .ab_Pop').show(); 196 }); 197 $(".dmz_6 .con1 .ab_Pop .pop_map .colse").click(function(){ 198 $(this).parent('.dmz_6 .con1 .pop_map').parent('.dmz_6 .con1 .ab_Pop').hide(); 199 }); 200 201 //aë§í¬ #ì²ë¦¬ 202 $('a[href = "#"]').click(function(){ 203 return false; 204 }); 205 206 // ê´ê³ì¬ ë°ë¡ê°ê¸° 207 208 209 $(".familySite .family_btn").click(function(){
210 $("#family").removeClass("dn").addClass("db"); 211 $("#family li a:first").focus(); 212 return false; 213 }); 214 $(".familySite li").click(function(){ 215 $("#family").addClass("dn").removeClass("db"); 216 }); 217 $(document).click(function(e) { 218 if($("#family").hasClass("db")){ 219 if(!($(e.target).parents(".familySite").length)){ 220 $("#family").addClass("dn").removeClass("db"); 221 } 222 } 223 }).focusin(function(e) { 224 if($("#family").hasClass("db")){ 225 if(!($(e.target).parents(".familySite").length)){ 226 $("#family").addClass("dn").removeClass("db"); 227 } 228 } 229 }); 230 231 232 233jQuery(function(){ 234 235 function lightboxPhoto() { 236 237 jQuery("a[rel^='prettyPhoto']").prettyPhoto({ 238 animationSpeed:'fast', 239 slideshow:5000, 240 theme:'light_rounded', 241 show_title:false, 242 overlay_gallery: false 243 }); 244 245 } 246 247 if(jQuery().prettyPhoto) { 248 249 lightboxPhoto(); 250 251 } 252 253 254if (jQuery().quicksand) { 255 256 // Clone applications to get a second collection 257 var $data = $(".portfolio-area").clone(); 258 259 //NOTE: Only filter on the main portfolio page, not on the subcategory pages 260 $('.portfolio-categ li').click(function(e) { 261 $(".filter li").removeClass("active"); 262 // Use the last category class as the category to filter by. This means that multiple categories are not supported (yet) 263 var filterClass=$(this).attr('class').split(' ').slice(-1)[0]; 264 265 if (filterClass == 'all') { 266 var $filteredData = $data.find('.portfolio-item2'); 267 } else { 268 var $filteredData = $data.find('.portfolio-item2[data-type=' + filterClass + ']'); 269 } 270 $(".portfolio-area").quicksand($filteredData, { 271 duration: 600, 272 adjustHeight: 'auto' 273 }, function () { 274 275 lightboxPhoto(); 276 }); 277 $(this).addClass("active"); 278 return false; 279 }); 280 281}//if quicksand 282 283 var article = $('.faq .article'); 284 article.addClass('hiden'); 285 article.find('.a').slideUp(100); 286 287 $('.faq .article .trigger').click(function(){ 288 var myArticle = $(this).parents('.article:first'); 289 if(myArticle.hasClass('hiden')){ 290 article.addClass('hiden').removeClass('show'); // ìì½ëì¸ í¨ê³¼ë¥¼ ìì¹ ìì¼ë©´ ì´ ë¼ì¸ì ì§ì°ì¸ì 291 article.find('.a').slideUp(100); // ìì½ëì¸ í¨ê³¼ë¥¼ ìì¹ ìì¼ë©´ ì´ ë¼ì¸ì ì§ì°ì¸ì 292 myArticle.removeClass('hiden').addClass('show'); 293 myArticle.find('.a').slideDown(100); 294 } else { 295 myArticle.removeClass('show').addClass('hiden'); 296 myArticle.find('.a').slideUp(100); 297 } 298 }); 299 300 $('.faq .hgroup .trigger').click(function(){ 301 var hidden = $('.faq .article.hiden').length; 302 if(hidden > 0){ 303 article.removeClass('hide').addClass('show'); 304 article.find('.a').slideDown(100); 305 } else { 306 article.removeClass('show').addClass('hiden'); 307 article.find('.a').slideUp(100); 308 } 309 }); 310 311 $('.flexslider').flexslider({ 312 animation: "slide", 313 start: function(slider){ 314 $('body').removeClass('loading'); 315 } 316 }); 317 318 319 /*íµë©ë´*/ 320 var filter = "win16|win32|win64|mac"; 321 var agentChk = null; 322 if (navigator.platform) { agentChk = (filter.indexOf(navigator.platform.toLowerCase()) < 0) ? true : null } 323 324 //ìì¹ê° ìë ì¤ì 325 var wing = $('.Quick'); 326 var currentPosition = $('.header').height(); 327 328 currentPosition = currentPosition +40; 329 330 wing.css('top', currentPosition).css('display', 'block'); 331 332 // ì¤í¬ë¡¤ Aaction 333 $(window).scroll(function () { 334 var scrolls = $(window).scrollTop(); 335 var scrolls2 = scrolls + 200; 336 var cssObj = { position: 'fixed', top: '20px' } 337 var cssObj2 = { position: "absolute", top: currentPosition } 338 339 if (scrolls >= 300) { 340 (agentChk != null) ? wing.stop().animate({ 'top': scrolls2 }, 500) : wing.css(cssObj); 341 $('#section_minibasket').fadeIn('slow'); 342 } else { 343 (agentChk != null) ? wing.stop().animate({ 'top': scrolls + currentPosition + 'px' }, 300) : wing.css(cssObj2); 344 $('#section_minibasket').fadeOut('slow'); 345 346 } 347 }); 348 349 350 $('.selectbox>.sel_re').click(function(ev){ 351 ev.preventDefault(); 352 if($(this).next('ul').is(':visible')){ 353 $(this).next('ul').slideUp(); 354 }else{ 355 $('.selectbox ul:visible').slideUp() 356 $(this).next('ul').slideDown(); 357 } 358 }); 359 $('.location .selectbox ul li a').click(function(){ 360 $(this).parents('ul').slideUp(); 361 }); 362 363 $('#main').fadeslide({ 364 className:'#slide', 365 delayTime:800, 366 nDelayTime:800, 367 autoRolling:true, 368 pagingTag:'.slide_control .visual_paging', 369 nav:'.slide_navi', 370 slideWrap:'#slide_wrap' 371 372 },function(){ 373 //callback function executed at select list click 374 }); 375 376 $('.selectyze1').Selectyze({ 377 theme : 'skype' 378 }); 379 380 $('.selectyze2').Selectyze({ 381 theme : 'mac' 382 }); 383 384 $('.selectyze3').Selectyze({ 385 theme : 'grey' 386 }); 387 388 $('.selectyze4').Selectyze({ 389 theme : 'firefox' 390 }); 391 392 $('.selectyze5').Selectyze({ 393 theme : 'css3' 394 }); 395 396 397 $('#demo4').scrollbox({ 398 direction: 'h', 399 distance: 346, 400 startDelay: 2, 401 }); 402 $('#demo4-backward').click(function () { 403 $('#demo4').trigger('backward'); 404 }); 405 $('#demo4-forward').click(function () { 406 $('#demo4').trigger('forward'); 407 }); 408 409 $('#demo5').scrollbox({ 410 direction: 'h', 411 distance: 139, 412 }); 413 $('#demo5-backward').click(function () { 414 $('#demo5').trigger('backward'); 415 }); 416 $('#demo5-forward').click(function () { 417 $('#demo5').trigger('forward'); 418 }); 419 420 $('#demo6').scrollbox({ 421 direction: 'h', 422 distance: 160, 423 queue: 'demo6-queue' 424 }); 425 426 $('#M_gal').scrollbox({ 427 direction: 'h', 428 distance: 127, 429 }); 430 $('#M_gal-backward').click(function () { 431 $('#M_gal').trigger('backward'); 432 }); 433 $('#M_gal-forward').click(function () { 434 $('#M_gal').trigger('forward'); 435 }); 436 437 /* ë©ì¸ë¡¤ë§ë°°ë */ 438 jQuery(function ($) { 439 440 var T = 5000; // ë°°ë ë¡¤ë§ ìê° ì£¼ê¸° 441 var B_CNT = 5; // ì ì²´ 롤ë§ë°°ë ê°¯ì 442 var BigBanTimer = null; 443 444 $(function() { 445 $('#tplBigPaging li') 446 .bind('mouseover', function() { 447 clear_bigban_timer(); 448 showBanner($(this).index()); 449 }).bind('mouseout', function() { 450 set_bigban_timer(); 451 }); 452 $('#tplBigBanner') 453 .bind('mouseover', function() { 454 clear_bigban_timer(); 455 }).bind('mouseout', function() { 456 set_bigban_timer(); 457 }); 458 set_bigban_timer(); 459 }); 460 461 function set_bigban_timer() 462 { 463 if ( BigBanTimer === null ) 464 { 465 BigBanTimer = setInterval(rollingBanner, T); 466 } 467 } 468 469 function clear_bigban_timer() 470 { 471 clearInterval(BigBanTimer); 472 BigBanTimer = null; 473 } 474 // ë°°ë ë¡¤ë§ 475 var rollingBanner = function() { 476 var _i = $('#tplBigBanner .con_box:visible').index(); 477 var _next = _i + 1; 478 if (_next == B_CNT) { 479 _next = 0; 480 } 481 showBanner(_next); 482 } 483 // ì íí ë°°ë ë ¸ì¶ + ì¸ë¤ì¼ ë³´ì¬ì£¼ê¸° 484 var showBanner = function(idx) { 485 $('#tplBigBanner .con_box:visible').hide(); 486 $('#tplBigBanner .con_box').eq(idx).show(); 487 488 $('a', '#tplBigPaging li').removeClass('active'); 489 $('a', $('#tplBigPaging li').eq(idx)).addClass('active'); 490 } 491 }); /* Document Ready */ 492 493 494}); 495 496 497function resize() { 498 499} 500 501 502 503 $(window).resize(function() { 504 viewMaskSetFn(); 505 }); 506 function viewMaskSetFn() 507 { 508 $('.back_wrap').css('height', $('#wraper').height()); 509 510 $('.Quick .menu').css('height', $('.Quick .menu ul').height()); 511 512 if ($(window).width() <= 320) 513 { 514 515 516 517 } 518 else if ($(window).width() <= 360) 519 { 520 521 522 } 523 524 else if ($(window).width() <= 480) 525 { 526 527 528 } 529 else if ($(window).width() <= 640) 530 { 531 532 533 } 534 else if ($(window).width() > 640 && $(window).width() < 767) { 535 536 537 538 } 539 540 else if ($(window).width() <= 768) 541 { 542 543 544 } 545 else if ($(window).width() <= 1024) 546 { 547 548 549 550 } 551 552 else if ($(window).width() >= 1024 && $(window).width() < 1249) { 553 554 555 556 } 557 558 559 } 560 viewMaskSetFn(); 561}); 562
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.