PageSourceSearch

https://0404.go.kr/js/commons/ui.js?ver=1790913595515

js 0404.go.kr collected 2026-10-02 04:00:54 UTC 25,343 bytes, 641 lines download raw bytes

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.