1 2$(document).ready(function(){ // html 문ìê° ì¤ë¹ëìì ë ì¤í 3"use strict"; 4// script start 5 6//// ê³µì© //// 7 8// zoom 9var zIn = $('.hd-zoomset .btn-zoomin'); 10var zOut = $('.hd-zoomset .btn-zoomout'); 11var nowZoom = 100; 12function zoomOut() {// íë©´ ì¶ì 13 if(nowZoom == 80) { 14 alert('ëì´ì ì¶ìëì§ ììµëë¤.'); 15 } 16 nowZoom = nowZoom - 5; 17 if(nowZoom <= 80) nowZoom = 80;// ìµì 80% 18 document.body.style.zoom = nowZoom + '%'; 19 $('.hd-zoomset .num-zoom span').text(nowZoom); 20} 21function zoomIn() {// íë©´ íë 22 if(nowZoom == 120) { 23 alert('ëì´ì íëëì§ ììµëë¤.'); 24 } 25 nowZoom = nowZoom + 5; 26 if(nowZoom >= 120) nowZoom = 120;// ìµë 120% 27 document.body.style.zoom = nowZoom + '%'; 28 $('.hd-zoomset .num-zoom span').text(nowZoom); 29} 30zIn.on('click',function(){ 31 zoomIn(); 32}); 33zOut.on('click',function(){ 34 zoomOut(); 35}); 36 37// gnb 38$('#gnb .gnb-depth2').each(function(){ // 2ëì¤ ë©ë´ê° 3ê°ì¼ë ì¤ë¥¸ìª½ ì ë ¬. 기본ì ì¤ì ì ë ¬ 39 if ( $(this).children('ul').children('li').length == 3 ){ 40 $(this).children('ul').addClass('flex-end'); 41 } 42}); 43$(document).on('mouseover focus','#gnb .gnb-depth1 > li > .btn',function(){ 44 $('#gnb').addClass('active'); 45 $('#gnb .gnb-depth1 > li > .btn').removeClass('active'); 46 $(this).addClass('active'); 47}); 48$(document).on('focus','.gnb-close',function(){ 49 $('#gnb').removeClass('active'); 50 $('#gnb .gnb-depth1 > li > .btn').removeClass('active'); 51}); 52$(document).on('mouseleave','#gnb',function(){ 53 $('#gnb').removeClass('active'); 54 $('#gnb .gnb-depth1 > li > .btn').removeClass('active'); 55}); 56$(document).on('mouseover','#gnb .gnb-bg',function(){ 57 $('#gnb').removeClass('active'); 58 $('#gnb .gnb-depth1 > li > .btn').removeClass('active'); 59}); 60 61// #gnb-all 62$('#gnb-all .gnb-depth3').each(function(){ 63 if ( $(this).children('li').length > 4 ){ 64 $(this).parent('li').addClass('double'); 65 } 66}); 67 68// .snb 69$(document).on('click','.snb .snb-depth1 > li > .btn-toggle',function(e){ 70 e.preventDefault(); 71 $(this).toggleClass('active'); 72}); 73 74// slide 75if ( $('.hd-notice-01 .hd-notice-slide').length > 0 ){ // ìì ê³µì§ 76 var swiperMain01 = new Swiper('.hd-notice-01 .hd-notice-slide .swiper', { 77 direction: 'vertical', 78 fadeEffect: { crossFade: true }, 79 navigation: { 80 nextEl: ".hd-notice-01 .hd-notice-slide .btn-next", 81 prevEl: ".hd-notice-01 .hd-notice-slide .btn-prev" 82 }, 83 loop: true, //250514 ì¶ê° 84 autoplay : { 85 delay : 3000, 86 disableOnInteraction : false, 87 }, 88 }); 89} 90 91if ( $('.hd-notice-02 .hd-notice-slide').length > 0 ){ // ì¬íì ì ë± 92 var swiperMain02 = new Swiper('.hd-notice-02 .hd-notice-slide .swiper', { 93 direction: 'vertical', 94 loop: true, //250514 ì¶ê° 95 fadeEffect: { crossFade: true }, 96 autoplay : { 97 delay : 3000, 98 disableOnInteraction : false, 99 }, 100 }); 101} 102 103// search 104$(document).on('keyup focus','.input-search',function(){ 105 var isRight = true; 106 if ($(this).val().trim() == '') { 107 $(this).siblings('.btn-input-delete').hide(); 108 } else { 109 $(this).siblings('.btn-input-delete').show(); 110 } 111}); 112$(document).on('click','.btn-input-delete',function(){ 113 var isRight = true; 114 $(this).siblings('.input-search').val('').focus();; 115}); 116 117// tab 118$(document).on('click','.tab-head .btn',function(e){ 119 e.preventDefault(); 120 var tabTarget = $(this).attr('href'); 121 if ( $(this).parents().hasClass('tab-style-01') ){ // .tab-style-01 ì¼ë 122 var num = $(this).parent().index(); 123 $(this).addClass('active').parent().siblings().find('.btn').removeClass('active'); 124 $('.tab-head-more li').eq(num).find('.btn').addClass('active').parent().siblings().find('.btn').removeClass('active'); 125 } else { 126 $(this).addClass('active').siblings('.btn').removeClass('active'); 127 } 128 $(tabTarget).addClass('active').siblings('.tab-con').removeClass('active'); 129 $(tabTarget).find('.tab-title').focus(); 130 131 132 // data-id ìì±ì¼ë¡ë ì°¾ì ì ìê² ì¶ê° 133 var dataId = $(`[data-id="${tabTarget.replace('#', '')}"]`); 134 dataId.addClass('active').siblings('.tab-con').removeClass('active'); 135 dataId.find('.tab-title').focus(); 136 137 // ì기ìí©ë³ ëì²ë§¤ë´ì¼ 138 if(window.location.pathname === '/bbs/contsPst/MST0000000000125/25/detail'){ 139 // side navìì ì ì í data-hashê° ìì¼ë©´ í´ë¹ ë¶ë¶ì underline class를 ë¶ì¬íë¤. 140 var snbBtnHash = $(`.snb .btn[data-hash="${tabTarget.replace('#', '')}"]`); 141 if(snbBtnHash.length > 0){ 142 $('.snb .btn').removeClass('underline'); 143 snbBtnHash.addClass('underline'); 144 145 var html = $(this).html(); 146 $('h3#content').html(html); 147 $('p#breadcrumbCurrent').html(html); 148 } 149 } 150 151}); 152// .tab-style-01 .tab-head slide 153let tabSwiper01; 154if ( $('.tab-style-01').length > 0){ 155 function initSwiper() { 156 if ($(window).width() <= 1024) { 157 /* ëë¹ê° 1024 ì´íì¼ë ì¬ë¼ì´ë ì ì©ëëë¡ */ 158 tabSwiper01 = new Swiper('.tab-slide-01', { 159 slidesPerView: "auto", 160 spaceBetween: 16, 161 }); 162 } else { 163 /* ëë¹ê° 1025 ì´ìì¼ë ì¬ë¼ì´ë í´ì */ 164 $('.tab-slide-01 .swiper-slide').removeAttr('style'); 165 if (tabSwiper01) tabSwiper01.destroy(); 166 } 167 } 168 let timer; 169 window.addEventListener('resize', function () { 170 if (timer) clearTimeout(timer); 171 timer = setTimeout(initSwiper, 100); 172 });
173 174 initSwiper(); 175} 176$(document).on('click','.tab-head-more .btn-more-toggle',function(e){ 177 e.preventDefault(); 178 $(this).toggleClass('active'); 179 $(this).siblings('ul').toggleClass('active'); 180}); 181$(document).on('click','.tab-head-more ul .btn',function(e){ 182 e.preventDefault(); 183 var tabTarget = $(this).attr('href'); 184 var num = $(this).parent().index(); 185 $(this).addClass('active').parent().siblings().find('.btn').removeClass('active'); 186 $('.tab-style-01 .tab-head .swiper-slide').eq(num).find('.btn').addClass('active').parent().siblings().find('.btn').removeClass('active'); 187 $(tabTarget).addClass('active').siblings('.tab-con').removeClass('active'); 188 $(tabTarget).find('.tab-title').focus(); 189 tabSwiper01.slideTo(num,100,false); 190 191 $(this).closest('.tab-head-more').find('.btn-more-toggle').toggleClass('active'); //250623 ì¶ê° 192 $(this).closest('ul').toggleClass('active'); //250623 ì¶ê° 193 194}); 195 196// anchor 197//주ìì²ë¦¬ 250616 198// $(document).on('click','.list-anchor-01 .btn',function(e){ 199// e.preventDefault(); 200// var anchorTarget = $(this).attr('href'); 201// var targetTop = $(anchorTarget).position().top; 202// $(this).addClass('on').parent().siblings().find('.btn').removeClass('on'); 203// $(this).closest('.tab-contents').animate({scrollTop:targetTop}, 500); 204// $(anchorTarget).focus(); 205// }); 206 207$(document).on('click','.list-anchor-01 .btn',function(e){ //250616 ì¶ê° 208 e.preventDefault(); 209 var anchorTarget = $(this).attr('href'); 210 var targetElement = $(anchorTarget); 211 var container = $(this).closest('.tab-contents'); 212 if (targetElement.length && container.length) { 213 var targetOffsetTop = targetElement[0].offsetTop; 214 var containerScrollTop = container.scrollTop(); 215 var scrollToPosition = targetOffsetTop - 20; 216 container.animate({ 217 scrollTop: scrollToPosition 218 }, 500); 219 $(this).addClass('on').parent().siblings().find('.btn').removeClass('on'); 220 $(anchorTarget).focus(); 221 } 222}); 223 224$(document).on('click','.anchor-wrap .btn',function(e){ 225 e.preventDefault(); 226 var anchorTarget = $(this).attr('href'); 227 var targetTop = $(anchorTarget).position().top; 228 $(this).addClass('on').parent().siblings().find('.btn').removeClass('on'); 229 $('html, body').animate({scrollTop:targetTop}, 500); 230 $(anchorTarget).focus(); 231}); 232 233// toggle 234$(document).on('click','.btn-toggle',function(e){ 235 e.preventDefault(); 236 if ( $(this).parents('.list-accordion-01').length > 0 ){ 237 if ( $(this).hasClass('active') ){ 238 $(this).removeClass('active').siblings('.con').slide
238Up(100); 239 } else { 240 $(this).parent().siblings().find('.btn-toggle').removeClass('active').siblings('.con').slideUp(100); 241 $(this).addClass('active').siblings('.con').slideDown(100); 242 } 243 } else { 244 let target = $(this).attr('href'); 245 $(this).toggleClass('active'); 246 $(target).toggle(); 247 } 248}); 249 250// popup 251var popupScroll; 252$(document).on("click",'.btn-popup-open',function(e){ 253 e.preventDefault(); 254 if ( $(this).hasClass('input-search-01') ){ // input-search-01 ë²í¼ ì¼ ë 255 var target = $(this).attr('data-target'); 256 } else { 257 var target = $(this).attr('href'); 258 } 259 $('.popup-focus').removeClass('popup-focus'); 260 $(this).addClass('popup-focus'); 261 if ( target == '#popup-allMenu'){ // ì ì²´ë©ë´ íì 262 popupScroll = $(window).scrollTop(); 263 $('body').addClass('noscroll').find('.wrap').css('margin-top','-' + popupScroll + 'px'); 264 $(target).fadeIn('fast'); 265 $('#gnb-all .gnb-depth1 > li:eq(0) > .btn').focus(); 266 } 267 if ( target == '#popup-search'){ // ì¬í경보 ê²ì íì 268 $(target).fadeIn('fast'); 269 $(target).find('.input-search').focus(); 270 } if ( target == '#popupCountrySearch') { // êµê° ê²ì íì 271 $(target).fadeIn('fast').find('.input-01').focus(); 272 } if ( target == '#popupEntryInfo' ){// ì¬ì¦ë©´ì íì 273 var val01 = $(this).siblings('.info').find('.value-01').html(); 274 var val02 = $(this).siblings('.info').find('.value-02').html(); 275 var val03 = $(this).siblings('.info').find('.value-03').html(); 276 var val04 = $(this).siblings('.info').find('.value-04').html(); 277 var val05 = $(this).siblings('.info').find('.value-05').html(); 278 var val06 = $(this).siblings('.info').find('.value-06').html(); 279 $(target).find('.value-01').html(val01); 280 $(target).find('.value-02 .val').html(val02); 281 $(target).find('.value-03 .val').html(val03); 282 $(target).find('.value-04 .val').html(val04); 283 $(target).find('.value-05').html(val05); 284 $(target).find('.value-06').html(val06); 285 $(target).find('.popup-title').html(val01); 286 if ( val05 == '' ){ 287 $(target).find('.value-05').prev('.p-title-01').hide(); 288 } else { 289 $(target).find('.value-05').prev('.p-title-01').show(); 290 } 291 if ( val06 == '' ){ 292 $(target).find('.value-06').prev('.p-title-01').hide(); 293 } else { 294 $(target).find('.value-06').prev('.p-title-01').show(); 295 } 296 $(target).fadeIn('fast').focus(); 297 } 298 else { 299 $(target).fadeIn('fast').focus(); 300 } 301}); 302$(document).on("click",'.btn-popup-close',function(e){ 303 e.preventDefault(); 304 $(this).parents('.popup-wrap').fadeOut('fast').removeClass('on'); 305 $('.popup-focus').focus(); 306 if ( $('body').hasClass('noscroll') ){ 307 $('body').removeClass('noscroll').find('.wrap').removeAttr('style'); 308 $('html, body').animate({scrollTop:popupScroll},0); 309 } 310 if(!isNull(document.querySelector('.dim'))){ 311 document.querySelector('.dim').style.display = 'none'; 312 } 313}); 314$(document).on("focus",'.popup-wrap .back',function(){ 315 $(this).parents('.popup-wrap').find('.btn-popup-close').focus(); 316}); 317 318// gnb 319$(document).on('click','#gnb-all .gnb-depth1 > li > .btn',function(e){ 320 if ( $(window).width() <= 1024 ){ 321 e.preventDefault(); 322 $(this).addClass('active').parent().siblings().children('.btn').removeClass('active'); 323 } 324}); 325 326// footer ê´ë ¨ì¬ì´í¸ 327$(document).on('click','.ft-familysite .btn-toggle',function(e){ 328 e.preventDefault(); 329 $(this).toggleClass('active'); 330}); 331 332 333//// ì½í ì¸ //// 334 335// slide 336if ( $('.main-alarm').length > 0 ){ // ë©ì¸ ì림í 337 var slideTotal = $('.main-alarm-slide .swiper-slide').length; 338 var swiperMain03 = new Swiper(".main-alarm-slide", { 339 slidesPerView: 'auto', 340 loop: true, //250514 ì¶ê° 341 autoplay: { 342 delay: 3000, 343 disableOnInteraction: false, 344 }, 345 navigation: { 346 nextEl: ".main-alarm .btn-next", 347 prevEl: ".main-alarm .btn-prev" 348 }, 349 on: { 350 init: function() { 351 $('.main-alarm .swiper-slide').addClass('changed'); 352 $('.main-alarm .custom-fraction .current').text(this.realIndex + 1); 353 $('.main-alarm .custom-fraction .all').text(slideTotal); 354 }, 355 slideChangeTransitionStart: function() { 356 $('.main-alarm .swiper-slide').addClass('changing'); 357 $('.main-alarm .swiper-slide').removeClass('changed'); 358 359 $('.main-alarm .custom-fraction .current').text(this.realIndex + 1); 360 }, 361 slideChangeTransitionEnd: function() { 362 $('.main-alarm .swiper-slide').removeClass('changing'); 363 $('.main-alarm .swiper-slide').addClass('changed'); 364 } 365 }, 366 });
367} 368$(".main-alarm .btn-start").on("click", function() { 369 swiperMain03.autoplay.start(); 370 $(this).removeClass('active').next('.btn-stop').addClass('active').focus(); 371}); 372$(".main-alarm .btn-stop").on("click", function() { 373 swiperMain03.autoplay.stop(); 374 $(this).removeClass('active').prev('.btn-start').addClass('active').focus(); 375}); 376 377if ( $('.main-manual').length > 0 ){ // ë©ì¸ ì기ìí©ë³ ëì² ë§¤ë´ì¼ 378 var slideTotal = $('.main-manual-slide .swiper-slide').length; 379 var swiperMain04 = new Swiper(".main-manual-slide", { 380 slidesPerView: 'auto', 381 loop: true, //250514 ì¶ê° 382 autoplay: { 383 delay: 5000, 384 disableOnInteraction: false, 385 }, 386 navigation: { 387 nextEl: ".main-manual .btn-next", 388 prevEl: ".main-manual .btn-prev" 389 }, 390 on: { 391 init: function() { 392 $('.main-manual .swiper-slide').addClass('changed'); 393 $('.main-manual .custom-fraction .current').text(this.realIndex + 1); 394 $('.main-manual .custom-fraction .all').text(slideTotal); 395 }, 396 slideChangeTransitionStart: function() { 397 $('.main-manual .swiper-slide').addClass('changing'); 398 $('.main-manual .swiper-slide').removeClass('changed'); 399 400 $('.main-manual .custom-fraction .current').text(this.realIndex + 1); 401 }, 402 slideChangeTransitionEnd: function() { 403 $('.main-manual .swiper-slide').removeClass('changing'); 404 $('.main-manual .swiper-slide').addClass('changed'); 405 } 406 }, 407 }); 408} 409$(".main-manual .btn-start").on("click", function() { 410 swiperMain04.autoplay.start(); 411 $(this).removeClass('active').next('.btn-stop').addClass('active').focus(); 412}); 413$(".main-manual .btn-stop").on("click", function() { 414 swiperMain04.autoplay.stop(); 415 $(this).removeClass('active').prev('.btn-start').addClass('active').focus(); 416}); 417 418if ( $('.main-guidebook').length > 0 ){ // ë©ì¸ í´ì¸ìì ì¬í ê°ì´ëë¶ 419 var slideTotal = $('.main-guidebook-slide .swiper-slide').length; 420 var swiperMain05 = new Swiper(".main-guidebook-slide", { 421 loop: true, // 루í íì±í 422 slidesPerView: 'auto', 423 navigation: { 424 nextEl: ".main-guidebook .btn-next", 425 prevEl: ".main-guidebook .btn-prev" 426 }, 427 on: { 428 init: function() { 429 $('.main-guidebook .swiper-slide').addClass('changed'); 430 $('.main-guidebook .custom-fraction .current').text(this.realIndex + 1); 431 $('.main-guidebook .custom-fraction .all').text(slideTotal); 432 }, 433 slideChangeTransitionStart: function() { 434 $('.main-guidebook .swiper-slide').addClass('changing'); 435 $('.main-guidebook .swiper-slide').removeClass('changed'); 436 437 $('.main-guidebook .custom-fraction .current').text(this.realIndex + 1); 438 }, 439 slideChangeTransitionEnd: function() { 440 $('.main-guidebook .swiper-slide').removeClass('changing'); 441 $('.main-guidebook .swiper-slide').addClass('changed'); 442 } 443 }, 444 }); 445} 446 447if ( $('.main-video').length > 0 ){ // ë©ì¸ ë°©ì¡ìì PC 448 var slideTotal = $('.pc-only .main-video-slide .swiper-slide').length; 449 var swiperMain06 = new Swiper(".pc-only .main-video-slide", { 450 loop: true, // 루í íì±í 451 slidesPerView: 'auto', 452 navigation: { 453 nextEl: ".main-video .pc-only .btn-next", 454 prevEl: ".main-video .pc-only .btn-prev" 455 }, 456 on: { 457 init: function() { 458 $('.main-video .pc-only .swiper-slide').addClass('changed'); 459 $('.main-video .pc-only .custom-fraction .current').text(this.realIndex + 1); 460 $('.main-video .pc-only .custom-fraction .all').text(slideTotal); 461 }, 462 slideChangeTransitionStart: function() { 463 $('.main-video .pc-only .swiper-slide').addClass('changing'); 464 $('.main-video .pc-only .swiper-slide').removeClass('changed'); 465 466 $('.main-video .pc-only .custom-fraction .current').text(this.realIndex + 1); 467 }, 468 slideChangeTransitionEnd: function() { 469 $('.main-video .pc-only .swiper-slide').removeClass('changing'); 470 $('.main-video .pc-only .swiper-slide').addClass('changed'); 471 } 472 }, 473 });
474} 475if ( $('.main-video').length > 0 ){ // ë©ì¸ ë°©ì¡ìì mo 476 var slideTotal = $('.mo-only .main-video-slide .swiper-slide').length; 477 var swiperMain06 = new Swiper(".mo-only .main-video-slide", { 478 loop: true, // 루í íì±í 479 slidesPerView: 'auto', 480 spaceBetween: 8, 481 navigation: { 482 nextEl: ".main-video .mo-only .btn-next", 483 prevEl: ".main-video .mo-only .btn-prev" 484 }, 485 on: { 486 init: function() { 487 $('.main-video .mo-only .swiper-slide').addClass('changed'); 488 $('.main-video .mo-only .custom-fraction .current').text(this.realIndex + 1); 489 $('.main-video .mo-only .custom-fraction .all').text(slideTotal); 490 }, 491 slideChangeTransitionStart: function() { 492 $('.main-video .mo-only .swiper-slide').addClass('changing'); 493 $('.main-video .mo-only .swiper-slide').removeClass('changed'); 494 495 $('.main-video .mo-only .custom-fraction .current').text(this.realIndex + 1); 496 }, 497 slideChangeTransitionEnd: function() { 498 $('.main-video .mo-only .swiper-slide').removeClass('changing'); 499 $('.main-video .mo-only .swiper-slide').addClass('changed'); 500 } 501 }, 502 }); 503} 504 505// search - main 506$(document).on('keyup focus','.main-search .input-search',function(){ 507 $('.main-search .list-search').show(); 508}); 509if ( $('.main-search').length > 0){ 510 $(document).on('click',function(e){ // .main-search ìì ì¸ í´ë¦ ì 리ì¤í¸ ë«í 511 if($(e.target).parents('.main-search').length < 1){ 512 $('.main-search .list-search').hide(); 513 } 514 }); 515 $(document).on('focus','.main-section-01 .btn-skip',function(e){ // ì§ë ì¤íµ ë²í¼ í¬ì»¤ì¤ ì 리ì¤í¸ ë«í 516 $('.main-search .list-search').hide(); 517 }); 518 $(document).on('focus','#gnb-all .btn-popup-open',function(e){ // ì ì²´ë©ë´ ë²í¼ í¬ì»¤ì¤ ì 리ì¤í¸ ë«í 519 $('.main-search .list-search').hide(); 520 }); 521} 522 523// .main-map 524$(document).on('mouseover','.main-map .list-check label',function(){ 525 $(this).parent().siblings('.list-countries').show().parent().siblings().find('.list-countries').hide(); 526}); 527$(document).on('focus','.main-map .list-check input',function(){ 528 $(this).parent().siblings('.list-countries').show().parent().siblings().find('.list-countries').hide(); 529}); 530 531/* 532// focusoutì ì¬ë¼ì§ê² 533$(document).on('focusout', '.main-map .list-check input', function () { 534 const $wrapper = $(this).closest('.list-check'); 535 536 // ì½ê°ì ì§ì°ì ì¤ì ë¤ì í¬ì»¤ì¤ ììê¹ì§ ë기 537 setTimeout(() => { 538 if (!$(document.activeElement).closest('.list-check').is($wrapper)) { 539 $wrapper.siblings('.list-countries').hide(); 540 } 541 }, 0); 542}); 543*/ 544 545if ( $('.main-map').length > 0){ 546 $(document).on('click',function(e){ // .list-check ìì ì¸ í´ë¦ ì 리ì¤í¸ ë«í 547 if($(e.target).parents('.list-check').length < 1){ 548 $('.main-map .list-countries').hide(); 549 } 550 }); 551} 552$(document).on('mouseleave','.main-map .list-check',function(){ //250522 ì¶ê° 553 $('.main-map .list-countries').hide(); 554}); 555 556// datepicker 557if ( $(".input-datepicker-01").length > 0 ){ 558 $(".input-datepicker-01").datepicker({ 559 dateFormat: "yy-mm-dd", 560 showMonthAfterYear: true , 561 dayNamesMin: ['ì', 'í', 'ì', '목', 'ê¸', 'í ', 'ì¼'], 562 monthNamesShort: ['1ì','2ì','3ì','4ì','5ì','6ì','7ì','8ì','9ì','10ì','11ì','12ì'], 563 monthNames: ['1ì','2ì','3ì','4ì','5ì','6ì','7ì','8ì','9ì','10ì','11ì','12ì'], 564 showOn : "both", 565 buttonImage : "/images/front/ico_calendar.svg", 566 buttonImageOnly : false, 567 buttonText : "ë ì§ ì í ì´ê¸°" 568 }); 569} 570$(document).on('keydown',".ui-datepicker-trigger",function(keyNum){ 571 // ui-datepicker-triggerë¡ datepicker í¸ì¶ì, ìë¡ê² ê·¸ë ¤ì§ë datepickerì í¬ì»¤ì¤ 572 $('.datefocus').removeClass('datefocus'); 573 var keyCode = keyNum.originalEvent.keyCode 574 if(keyCode == 13){ 575 setTimeout(function() { 576 $(".ui-datepicker-prev").focus(); // datepickerê° ìë¡ ê·¸ë ¤ì§ ì´í í¬ì»¤ì¤ ì§ì 577 }, 0) 578 } 579 $(this).addClass('datefocus clickfocus'); // ë ì§ ì í í í¬ì»¤ì¤ ì°¾ìì¬ í´ëì¤ 580}); 581$(document).on('keydown','.ui-state-default',function(keyNum){ 582 // ë ì§ ì íì 기존 ë²í¼ì í¬ì»¤ì¤ 583 var keyCode = keyNum.originalEvent.keyCode 584 if(keyCode == 13){ 585 setTimeout(function() { 586 $('.datefocus').focus().removeClass('datefocus'); 587 }, 0) 588 } 589}); 590$(document).on('mouseup',".ui-datepicker-trigger",function(keyNum){ 591 // ui-datepicker-triggerë¡ datepicker í¸ì¶ì, ìë¡ê² ê·¸ë ¤ì§ë datepickerì í¬ì»¤ì¤ 592 $('.clickfocus').removeClass('clickfocus'); 593 setTimeout(function() { 594 $(".ui-datepicker-prev").focus(); // datepickerê° ìë¡ ê·¸ë ¤ì§ ì´í í¬ì»¤ì¤ ì§ì 595 }, 0) 596 $(this).addClass('clickfocus'); // ë ì§ ì í í í¬ì»¤ì¤ ì°¾ìì¬ í´ëì¤ 597}); 598$(document).on('mouseup','.ui-state-default',function(){ 599 // ë ì§ ì íì 기존 ë²í¼ì í¬ì»¤ì¤ 600 $('.clickfocus').focus().removeClass('clickfocus'); 601}); 602 603// .radio-set-02 .radio-slide-01 slide 604let radioSwiper01; 605if ( $('.radio-set-02').length > 0){ 606 function initSwiper() { 607 if ($(window).width() <= 1024) { 608 /* ëë¹ê° 1024 ì´íì¼ë ì¬ë¼ì´ë ì ì©ëëë¡ */ 609 radioSwiper01 = new Swiper('.radio-slide-01', { 610 slidesPerView: "auto", 611 spaceBetween: 16, 612 }); 613 } else { 614 /* ëë¹ê° 1025 ì´ìì¼ë ì¬ë¼ì´ë í´ì */ 615 $('.radio-slide-01 .swiper-slide').removeAttr('style'); 616 if (radioSwiper01) radioSwiper01.destroy(); 617 } 618 } 619 let timer; 620 window.addEventListener('resize', function () { 621 if (timer) clearTimeout(timer); 622 timer = setTimeout(initSwiper, 100); 623 });
624 625 initSwiper(); 626} 627$(document).on('click','.radio-set-02 .radio-slide-more .btn-more-toggle',function(e){ 628 e.preventDefault(); 629 $(this).toggleClass('active'); 630 $(this).siblings('ul').toggleClass('active'); 631}); 632$(document).on('click','.radio-set-02 .radio-slide-more label',function(e){ 633 $(this).addClass('active').parent().siblings().find('label').removeClass('active'); 634}); 635$(document).on('click','.radio-set-02 .radio-slide-01 label',function(e){ 636 var num = $(this).parent().parent().index(); 637 $('.radio-set-02 .radio-slide-more > ul > li').eq(num).find('label').addClass('active').parent().siblings().find('label').removeClass('active'); 638}); 639 640// script end 641});
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.