PageSourceSearch

https://www.yulchon.com/resources/js/officaial.js?v=20230321

js yulchon.com collected 2026-10-02 05:45:48 UTC 32,911 bytes, 913 lines download raw bytes

1/**
2 * @description Official Main
3 */
4
5var mainSwiper = null;
6
7$(document).ready(function() {
8	$('.swiper-button-prev').click(function(){
9		if(mainSwiper)
10			mainSwiper.swipePrev();
11	})
12
13    $('.swiper-button-next').click(function(){
14        if(mainSwiper)
15            mainSwiper.swipeNext();
16    })
17});
18/**
19*메인 인트로가 포함된 함수 flag인자에 'skip'이라고 넣으면 인트로를 건너 뛴다 
20**/
21var mainTlm;
22function mainAnimation(flag){
23    mainTlm = new TimelineMax();
24	if($('.main_intro').length){
25	   var i,j,n;
26
27        mainTlm.to($('.main_intro'), 1, {autoAlpha:0, ease:Sine.easeInOut, onComplete:function(){
28	            $('.main_intro').css({display:'none'});
29	            $('.footer_wrap').css({zIndex:'auto'});
30	        }}, 0.7);
31        mainTlm.to($('.header_inner'), 1, {opacity:1, ease:Sine.easeInOut}, 1);
32        mainTlm.to($('.box_search.deco'), 0.5, {opacity:1, ease:Sine.easeInOut}, 0.8);
33
34	    for(i=0;i<$('.main_list .swiper-slide .slide_inner').length;i++)
35	    {
36            mainTlm.set($('.main_list .swiper-slide').eq(i), {opacity:0, x:60},0);
37            mainTlm.set($(this).find('.slide_img img'), {scale:1, ease:Cubic.easeInOut},0);
38            mainTlm.to($('.main_list .swiper-slide').eq(i), 0.5, {opacity:1, x:0, ease:Sine.easeInOut}, i*0.2+0.8);
39	    }
40
41	    if(flag == 'skip')
42		{
43            mainTlm.pause();
44            mainTlm.seek(2);
45			mainTlm.play();
46		}
47
48	    mainSwiper = new Swiper('.main_list .swiper-container', {
49	        slidesPerView: 'auto'
50	        , keyboardControl:true
51	        , calculateHeight:true
52	    });
53
54	    function listOverHandler()
55	    {
56	        TweenMax.to($(this).find('.slide_line'), 0.5, {opacity:1, ease:Cubic.easeInOut});
57	        TweenMax.to($(this).find('.slide_ctg'), 0.5, {marginLeft:'-60%', ease:Cubic.easeInOut});
58	        TweenMax.to($(this).find('.txt_tit'), 0.5, {color:'#fff', ease:Cubic.easeInOut});
59	        TweenMax.to($(this).find('.share_area'), 0.5, {opacity:1, display:'inline-block', ease:Cubic.easeInOut});
60	        TweenMax.to($('.main_list .slide_inner').find('.slide_img img'), 0.5, {opacity:0.5, ease:Cubic.easeInOut});
61	        TweenMax.to($('.main_list .slide_inner').find('.slide_img'), 0.5, {backgroundColor:'#000000', ease:Cubic.easeInOut});
62	        TweenMax.to($(this).find('.slide_img img'), 0.5, {scale:1.1, opacity:1, ease:Cubic.easeInOut});
63	    }
64
65	    function listOutHandler()
66	    {
67	        TweenMax.to($(this).find('.slide_line'), 0.5, {opacity:0, ease:Cubic.easeInOut});
68	        TweenMax.to($(this).find('.slide_ctg'), 0.5, {marginLeft:0, ease:Cubic.easeInOut});
69	        TweenMax.to($(this).find('.txt_tit'), 0.5, {color:'#b9babb', ease:Cubic.easeInOut});
70	        TweenMax.to($(this).find('.share_area'), 0.5, {opacity:0, ease:Cubic.easeInOut});
71	        TweenMax.to($('.main_list .slide_inner').find('.slide_img img'), 0.5, {opacity:1, ease:Cubic.easeInOut});
72            TweenMax.to($('.main_list .slide_inner').find('.slide_img'), 0.5, {backgroundColor:'transparent', ease:Cubic.easeInOut});
73	        TweenMax.to($(this).find('.slide_img img'), 0.5, {scale:1, ease:Cubic.easeInOut});
74	       var tg = $(this).find('.share_wrap');
75	        TweenMax.to(tg, 0.5, {opacity:0, ease:Cubic.easeInOut, onComplete:function(){
76	                tg.removeClass('on');
77	            }});
78	    }
79
80	    var device = ($(window)[0].innerWidth <= 1024)? false : true;
81	    var deviceM = ($(window)[0].innerWidth <= 767)? false : true;
82	    $(window).on('resize', mainResizeHandler);
83
84	    function mainResizeHandler(){
85
86	        //$('.main_intro').css({height:$('.wrap').height()});
87
88	        if ($(window)[0].innerWidth <= 1024 && !device) {
89	            device = true;
90	        } else if ($(window)[0].innerWidth > 1024 && device) {
91	            device = false;
92	        }
93
94	        if ($(window)[0].innerWidth <= 767 && !deviceM) {
95	            $(document).off('mouseenter', '.main_list .slide_inner', listOverHandler)
96	                .off('mouseleave', '.main_list .slide_inner', listOutHandler)
97	                .off('focus', '.main_list .slide_inner', listOverHandler)
98	                .off('blur', '.main_list .slide_inner', listOutHandler);
99
100	            $('.main_list .slide_inner').find('.slide_line').removeAttr('style');
101	            $('.main_list .slide_inner').find('.slide_ctg').removeAttr('style');
102	            $('.main_list .slide_inner').find('.txt_tit').removeAttr('style');
103	            $('.main_list .slide_inner').find('.share_area').removeAttr('style');
104	            $('.main_list .slide_inner').find('.slide_img img').removeAttr('style');
105	            deviceM = true;
106	        } else if ($(window)[0].innerWidth > 767 && deviceM) {
107	            $(document).on('mouseenter', '.main_list .slide_inner', listOverHandler)
108	                .on('mouseleave', '.main_list .slide_inner', listOutHandler)
109	                .on('focus', '.main_list .slide_inner', listOverHandler)
110	                .on('blur', '.main_list .slide_inner', listOutHandler);
111	            deviceM = false;
112	        }
113	    }
114
115	    mainResizeHandler();
116
117	    // 메인 검색영역 클릭시 통합검색 레이어 팝업 띄움
118	    $(document).on('click', '.box_search.deco .wrap_search', function(){
119	        $('#pop_search').addClass('on');
120	        $('.header_inner').addClass('on');
121	        TweenMax.to($('.header_inner'), 0, {backgroundColor:'#fff', ease:Cubic.easeInOut});
122	        layerPosition(".layer_pop.search_wrap");
123	        TweenMax.to($('#pop_search'),0.5,{opacity:1, ease:Cubic.easeInOut});
124	    });
125
126		//$('.main_intro').css({height:$('.wrap').height()});
127	}
128
129	$(window).on('resize', function(){
130        var tops = $('.main_list_wrap .swiper-wrapper .slide_img').eq(0).outerHeight() + $('.main_list_wrap .swiper-wrapper .slide_infomation').eq(0).outerHeight();
131        document.styleSheets[0].addRule('div.main_list:after','content: "";position: absolute;\n' +
132			'    left: 50%;\n' +
133			'    top: '+tops+'px;\n' +
134			'    bottom: auto;\n' +
135			'    display: block;\n' +
136			'    width: 100%;\n' +
137			'    max-width: 1170px;\n' +
138			'    height: 1px;\n' +
139			'    background: #fff;\n' +
140			'    opacity: 0.2;\n' +
141			'    transform: translateX(-50%);\n' +
142			'    z-index: 2;');
143	});
144	$(window).trigger('resize');
145};
146
147/**
148 * @description About (수상내역 검색 체크박스 이벤트)
149 */
150$(function(){
151	var popChk = function(){
152
153		var render = {
154			bind: function(el,elAll){
155				$(document).on('click',el, function(){
156					render.chkClick(el,elAll);
157				});
158				$(document).on('click',elAll, function(){
159					render.chkAll(this,el);
160				});
161			},
162			chkClick: function(el,elAll){
163				var _allCnt = $(el).length;
164				var _crtCnt = render.chkCnt(el);
165
166				if(_allCnt == _crtCnt){
167					render.chkAll(el, el);
168					$(elAll).prop("checked", true);
169				}else{
170					render.chkAll(el, elAll);
171				}
172			},
173			chkAll : function(el, elAll){
174				var isChk = $(el).is(":checked");
175
176				if(isChk) $(elAll).prop("checked", false);
177			},
178			chkCnt : function(el){
179				var chkNum = 0;
180
181				$(el).each(function(i){
182					var isChk = $(el).eq(i).is(":checked");
183					if(isChk) chkNum++;
184				});
185				return chkNum;
186			}
187		}
188
189		return render;
190	}();
191
192	popChk.bind('.chk_year','.chk_year_all');
193	popChk.bind('.chk_work','.chk_work_all');
194})
195
196/**
197 * @description Official Sitemap
198 */
199var resizeAccordion;
200$(function(){
201	if($("#official #container").hasClass("sitemap")){
202
203	    $(window).on('resize orientation', resizeAccordion);
204	   
205	  	var isChk = ($(window)[0].innerWidth <= 767) ? true : false;
206	    var i, prevMap;
207
208        resizeAccordion = function()
209	    {
210	        if ($(window)[0].innerWidth <= 767) {
211	            if(isChk)
212	            {
213	                TweenMax.to($('.sitemap .level1.drop_menu:not(.outlink) > span').children('i'),0.5,{rotation:0, ease:Cubic.easeInOut});
214	                $('.sitemap .level1.drop_menu').removeClass("on");
215	                
216	                //메뉴 아코디언 모션 등록
217	                for(i=0;i<$('.sitemap .level1.drop_menu:not(.outlink) > span').length;i++)
218	                {
219	                    if($('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i).next('.level2')[0] == undefined)
220	                    {
221	                        $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i).children('i').css({display:'none'});
222	                    }
223
224	                    $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].toggle = false;
225	                    if($('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].tl)
226	                    {
227	                        $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].tl.remove();
228	                        $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].tl = undefined;
229	                        $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i).next('.level2').removeAttr('style');
230	                    }
231	                    $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].tl = new TimelineMax();
232	                    $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].tl.from($('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i).next(), 0.5, {height:0, display:'none', ease:Cubic.easeInOut, onUpdate:function(){
233	                            rerenderScroll();
234	                            if(prevMap)
235	                            {
236	                                TweenMax.to($('html, body'), 0.5, {scrollTop:$(prevMap).offset().top - $('.header_inner').height()});
237	                            }
238	                        }}, 0);
239	                    $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].tl.seek(0.01);
240	                    $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].tl.reverse();
241	                    $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].tl.pause();
242	                }
243
244	                $('.s_map_top button')[0].check = false;
245
246	                $(document).on('click', '.s_map_top button', sitemapAllHandler);
247	                // drop_menu 메뉴 클릭 이벤트 등록
248	                $(document).on('click', '.s_map_list .drop_menu:not(.outlink) > span', sitemapHandler);
249
250	                isChk = false;
251	            }
252	        } else {
253	            if(!isChk)
254	            {
255	                $(document).off('click', '.s_map_top button', sitemapAllHandler);
256	                $(document).off('click', '.s_map_list .drop_menu > span', sitemapHandler);
257	                $('.sitemap .level2').removeAttr('style');
258	                isChk = true;
259	            }
260	        }
261	        rerenderScroll();
262	    }
263
264	    function sitemapHandler()
265	    {
266	        if($(this)[0].toggle)
267	        {
268	            $(this).parent().removeClass('on');
269	            $(this)[0].tl.reverse();
270	            TweenMax.to($(this).not(".outlink").children('i'),0.5,{rotation:0, ease:Cubic.easeInOut});
271	            $(this).children('i').not(".outlink").html('닫힘');
272	            $(this)[0].toggle = false;
273	        }else{
274	            $(this).parent().addClass('on');
275	            $(this)[0].tl.play();
276	            TweenMax.to($(this).not(".outlink").children('i'),0.5,{rotation:180, ease:Cubic.easeInOut});
277	            $(this).children('i').not(".outlink").html('열림');
278	            $(this)[0].toggle = true;
279	        }
280
281	        prevMap = this;
282	        var len = 0;
283	        for(i=0;i<$('.sitemap .level1.drop_menu:not(.outlink) > span').length;i++)
284	        {
285	            if($('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].toggle == true)
286	            {
287	                len++;
288	            }
289	        }
290
291	        if($('.sitemap .level1.drop_menu:not(.outlink) > span').length == len)
292	        {
293	            $('.s_map_top button')[0].check = true;
294	            $('.s_map_top button').html($('.s_map_top button').data('close'));
295	        }else{
296	            $('.s_map_top button')[0].check = false;
297	            $('.s_map_top button').html($('.s_map_top button').data('open'));
298	        }
299	    }
300
301	    function sitemapAllHandler(){
302	        if(this.check)
303	        {
304                $(this).removeClass('sitemap_open').addClass('sitemap_close');
305	            $('.sitemap .level1.drop_menu').removeClass("on");
306	            for(i=0;i<$('.sitemap .level1.drop_menu:not(.outlink) > span').length;i++)
307	            {
308	                $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].tl.reverse();
309	                $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].toggle = false;
310	            }
311
312	            TweenMax.to($('.sitemap .level1.drop_menu:not(.outlink) > span').children('i'),0.5,{rotation:0, ease:Cubic.easeInOut});
313
314	            this.check = false;
315	        }else{
316                $(this).removeClass('sitemap_close').addClass('sitemap_open');
317	            $('.sitemap .level1.drop_menu').addClass("on");
318	            for(i=0;i<$('.sitemap .level1.drop_menu:not(.outlink) > span').length;i++)
319	            {
320	                $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].tl.play();
321	                $('.sitemap .level1.drop_menu:not(.outlink) > span').eq(i)[0].toggle = true;
322	            }
323
324	            TweenMax.to($('.sitemap .level1.drop_menu:not(.outlink) > span').children('i'),0.5,{rotation:180, ease:Cubic.easeInOut});
325	            
326	            this.check = true;
327	        }
328	    }
329
330        //resizeAccordion();
331	}
332});
333
334/**
335 * @description 분야 선택 팝업
336 */
337$(function(){
338	// 리사이즈 이벤트 등록
339    $(window).on('load resize orientation', fn_accordion);
340
341    // 함수전역 화면 해상도 체크
342    var isChk = ($(window)[0].innerWidth < 767) ? true : false;
343
344    // 함수 전역 변수 선언
345    var prevThisDep1, prevThisDep2, i;
346
347    // 각 분야의 하위분야의 존재 유무를 체크하여 없을시 non_child 클래스를 넣어줌
348    for(i=0;i<$('.level2.inner_list .s_ctg').length;i++)
349    {
350        if($('.level2.inner_list .s_ctg').eq(i).next('.level3')[0] == undefined)
351        {
352            $('.level2.inner_list .s_ctg').eq(i).parent().addClass('non_child');
353        }
354    }
355    for(i=0;i<$('.level3.m_hide').length;i++)
356    {
357        $('.level3.m_hide').eq(i).parent().addClass('non_child');
358    }
359
360	// label의 기본 이벤트동작을 막음
361    $(document).on('click', '.field_ctg label, .s_ctg label', function(e){e.stopPropagation();});
362    // input의 클릭 이벤트 등록
363    $(document).on('change', '.field_ctg input[type="checkbox"], .s_ctg input[type="checkbox"], .s_ctg + .level3 input[type="checkbox"]', fn_labelHandler);
364    // 전체선택 버튼 클릭 이벤트 등록
365    $(document).on('click', '.field_top .btn_area', function(){
366        var $this = $(this);
367        if($this.children('input[type="checkbox"]').prop('checked'))
368        {
369            $('.field_list').find('input[type="checkbox"]').prop('checked', true);
370        }else{
371            $('.field_list').find('input[type="checkbox"]').prop('checked', false);
372        }
373    });
374
375    // pop_field 아이디를 가진 테그가 있으면 fn_accordion() 함수 실행
376    //if($('#pop_field')[0] || $('#pop_practice')[0]) fn_accordion();
377
378    // 리사이즈 핸들러 함수
379    function fn_accordion(){
380        //분야선택 아코디언
381        if ($(window)[0].innerWidth < 768) {
382            if(isChk){
383                $('.field_list ul').css({display:'none'});
384                $(document).on('click', '.field_ctg', fn_accordionHandler1);
385                /*
386                for(i=0;i<$('.level2.inner_list .s_ctg').length;i++)
387                {
388                    if ($('.level2.inner_list .s_ctg').eq(i).next('.level3')[0])
389                    {
390                        $('.level2.inner_list .s_ctg').eq(i).on('click', fn_accordionHandler2);
391                    }
392                }
393                */
394                $(document).on('click', '.level2.inner_list .s_ctg', fn_accordionHandler2);
395                isChk = false;
396            }
397        } else {
398            if(!isChk)
399            {
400                $('.field_list ul').css({display:'block'});
401                $(document).off('click', '.field_ctg', fn_accordionHandler1);
402                for(i=0;i<$('.level2.inner_list .s_ctg').length;i++)
403                {
404                    if ($('.level2.inner_list .s_ctg').eq(i).next('.level3')[0])
405                    {
406                        $('.level2.inner_list .s_ctg').eq(i).off('click', fn_accordionHandler2);
407                    }
408                }
409                $('.field_ctg').next('.inner_list').removeAttr('style');
410                $('.s_ctg').next('.inner_list').removeAttr('style');
411                $('.field_list').find('.active').removeClass('active');
412                $('.field_list').find('.on').removeClass('on');
413                prevThisDep1 = false;
414				prevThisDep2 = false;
415                isChk = true;
416            }
417        }
418        rerenderScroll();
419    }
420
421    // 인풋 체크 핸들러 함수
422    function fn_labelHandler () {
423        var $this = $(this);
424
425		if($(this).prop('checked'))
426		{
427		    $this.parent().next('ul').find('.s_ctg input[type="checkbox"]').prop('checked', true);
428            $this.parent().next('ul').find('.level3 input[type="checkbox"]').prop('checked', true);
429			var len, checkLen;
430
431		    /*if($this.closest('.level3')[0])
432			{
433                len = $this.parent().siblings().length+1;
434				checkLen = $this.parent().parent().find('input[type="checkbox"]:checked').length;
435                if(len == checkLen)
436				{
437                    $this.closest('.level3').prev('.s_ctg').children('input[type="checkbox"]').prop('checked', true);
438				}
439			}*/
440            if($this.closest('.level2')[0])
441			{
442				len = $this.closest('.level2').find('input[type="checkbox"]').length;
443				checkLen = $this.closest('.level2').find('input[type="checkbox"]:checked').length;
444                if(len == checkLen){
445                    $this.closest('.level2').prev('.field_ctg').children('input[type="checkbox"]').prop('checked', true);
446				}
447			}
448
449		}else{
450            $this.parent().next('.level2').find('input[type="checkbox"]').prop('checked', false);
451
452            $this.closest('.level2').prev('.field_ctg').children('input[type="checkbox"]').prop('checked', false);
453            //$this.closest('.level3').prev('.s_ctg').children('input[type="checkbox"]').prop('checked', false);
454
455		}
456
457		if($('.field_list').find('input[type="checkbox"]').length == $('.field_list').find('input[type="checkbox"]:checked').length)
458		{
459			$('.field_top').find('input[type="checkbox"]').prop('checked', true);
460		}else{
461            $('.field_top').find('input[type="checkbox"]').prop('checked', false);
462		}
463    }
464
465	var listHeight, defaultHeight;
466	function fn_accordionHandler1(e) {
467        var $this = $(this);
468
469        if($(e.target).attr('type')) {
470			if($(e.target).prop('checked')) {
471                if($this.hasClass('active') == false) {
472                    if (prevThisDep1) {
473                        prevThisDep1.removeClass('active');
474                        TweenMax.to(prevThisDep1.next(), 0.5, {height: 0, ease: Cubic.easeInOut, onCompleteScope:prevThisDep1, onComplete: function () {
475                                TweenMax.set(this.next(), {height:'auto', display:'none'});
476                            }, onUpdate: function () {
477                                rerenderScroll();
478                            }
479                        });
480                    }
481                    $this.addClass('active');
482                    TweenMax.set($this.next(), {display: 'block'});
483                    listHeight = $this.next().height();
484                    TweenMax.set($this.next(), {height: 0});
485                    TweenMax.to($this.next(), 0.5, {height: listHeight, ease: Cubic.easeInOut, onCompleteScope:$this, onComplete: function () {
486                            prevThisDep1 = this;
487                        }
487, onUpdate: function () {
488                            rerenderScroll();
489                        }
490                    });
491                }
492			}
493		}else{
494            if (prevThisDep1) {
495                prevThisDep1.removeClass('active');
496                TweenMax.to(prevThisDep1.next(), 0.5, {height:0, ease:Cubic.easeInOut, onCompleteScope:prevThisDep1, onComplete:function(){
497                        TweenMax.set(this.next(), {height:'auto', display:'none'});
498                        prevThisDep1 = undefined;
499					}, onUpdate:function(){
500						rerenderScroll();
501					}});
502                if(prevThisDep1[0] == $this[0]) {
503                    //prevThisDep1 = undefined;
504                } else {
505                    $this.addClass('active');
506                    listHeight = $this.next().height();
507                    TweenMax.set($this.next(), {height:0, display:'block'});
508                    TweenMax.to($this.next(), 0.5, {height:listHeight, ease:Cubic.easeInOut, onCompleteScope:$this, onComplete:function(){
509							prevThisDep1 = this;
510						}, onUpdate:function(){
511                            rerenderScroll();
512                        }});
513                }
514            } else{
515                $this.addClass('active');
516				listHeight = $this.next().height();
517				TweenMax.set($this.next(), {height:0, display:'block'});
518				TweenMax.to($this.next(), 0.5, {height:listHeight, ease:Cubic.easeInOut, onCompleteScope:$this, onComplete:function(){
519						prevThisDep1 = this;
520					}, onUpdate:function(){
521                        rerenderScroll();
522                    }});
523            }
524		}
525    }
526
527    function fn_accordionHandler2(e) {
528        var $this = $(this);
529		if($(e.target).hasClass('s_ctg'))
530		{
531            if($(e.target)[0].tagName.toLowerCase() != 'input')
532            {
533                if(prevThisDep2)
534                {
535                    prevThisDep2.parent().removeClass('on');
536                    TweenMax.to(prevThisDep2.next(), 0.5, {height:0, ease:Cubic.easeInOut, onCompleteScope:prevThisDep2, onComplete:function(){
537                            TweenMax.set(this.next(), {height:'auto', display:'none'});
538                            rerenderScroll();
539                        }});
540
541                    if(prevThisDep2[0] == $this[0]){
542                        TweenMax.to($this.closest('.inner_list'), 0.5, {height:defaultHeight, ease:Cubic.easeInOut, onUpdate:function(){
543                                rerenderScroll();
544                            }, onComplete:function(){rerenderScroll();}});
545                        prevThisDep2 = undefined;
546                    } else {
547                        handlers($this);
548                    }
549                }else{
550                    defaultHeight = $this.closest('.inner_list').height();
551                    handlers($this);
552                }
553            }
554		}
555    }
556
557    function handlers(tg)
558    {
559    	var $that = tg;
560    	if( $that.next().is('.level3') ){
561    		$that.parent().addClass("on");
562    	}
563        //$that.parent().addClass('on');
564        TweenMax.set($that.next(), {display:'block'});
565        listHeight = $that.next().height();
566        if(listHeight < 0) listHeight = 0;
567        TweenMax.set($that.next(), {height:0});
568        TweenMax.to($that.next(), 0.5, {height:listHeight, ease:Cubic.easeInOut, onCompleteScope:$that, onComplete:function(){
569                prevThisDep2 = this;
570                rerenderScroll();
571            }});
572        TweenMax.to($that.closest('.inner_list'), 0.5, {height:defaultHeight+listHeight, ease:Cubic.easeInOut, onUpdate:function(){
573                rerenderScroll();
574            }, onComplete:function(){rerenderScroll();}});
575        prevThisDep2 = $that;
576    }
577});
578
579/**
580 * @description 구성원
581 */
582$(function(){
583	var device = ($(window)[0].innerWidth <= 767) ? false : true;
584
585	$(document).on('click', '.btn_search_toggle button', function(){
586		if($('.search_area.search').is(":visible"))
587		{
588        	$('.search_area.search').css({display:'none'});
589        	$(this).removeClass('on');
590		}else{
591            $('.search_area.search').css({display:'block'});
592            $(this).addClass('on');
593		}
594		
595		footerResize();
596	});
597
598	function searchEvent(){
599		 if ($(window)[0].innerWidth <= 767 && !device) {
600            device = true;
601        } else if ($(window)[0].innerWidth > 767 && device) {
602            $('.search_area.search').removeAttr('style');
603            device = false;
604        }
605	}
606
607	$(window).on('resize', searchEvent);
608
609	searchEvent();
610});
611
612/**
613 * @description 구성원 상세
614 */
615$(function(){
616	$('.more_field, .more_area').hide();
617	//상단 주요업무분야
618	$(document).on('click','.more_list', function(){
619		$(this).hide();
620		$('.more_field').addClass('on').fadeIn();
621	});
622
623	//하단 소식 펼쳐보기 
624	$(document).on('click','.more_news button', function(){
625		var txtMore = $(this);
626		$(this).parent().parent('.mb_detail').children('.more_area').slideToggle('fast', function() { 
627			if ($(this).is(":visible")) {
628				txtMore.text(txtMore.data("close-text")).addClass('active');
629			} else {
630				txtMore.text(txtMore.data("open-text")).removeClass('active');
631			} 
632		});
633	});
634});
635
636
637/**
638 * @description 세미나
639 */
640$(function(){
641	function tabReisze(){
642		if ($(window)[0].innerWidth <= 767) { 
643			$(".tabcontent").hide();
644			$(".tabcontent").eq($(".tablinks.active").index()).show();  
645		} else{
646			$(".tabcontent").css('display','block');
647		}
648	}
649
650	$(window).on("resize", tabReisze);
651
652	tabReisze();
653
654	function openTabCnt(evt, mbFilter) {
655		var i, tabcontent, tablinks;
656		tabcontent = document.getElementsByClassName("tabcontent");
657		for (i = 0; i < tabcontent.length; i++) {
658			tabcontent[i].style.display = "none";
659		}
660		tablinks = document.getElementsByClassName("tablinks");
661		for (i = 0; i < tablinks.length; i++) {
662			tablinks[i].className = tablinks[i].className.replace(" active", "");
663		}
664		document.getElementById(mbFilter).style.display = "block";
665		evt.currentTarget.className += " active";
666	}
667
668	window.openTabCnt = openTabCnt;
669
670	$(".tablinks").eq(0).addClass("active")
671});
672
673/**
674 * @description 세미나 참석신청
675 */
676$(function(){
677	$(document).on('change', '.gender.en_non_member .radio_g input[type="radio"]', function(){
678		if($(this).prop('class') == 'other')
679		{
680            $('.user_gender').removeAttr('disabled');
681		}else{
682            $('.user_gender').attr('disabled', 'disabled');
683			$('.user_gender').val('');
684		}
685	});
686});
687/**
688 * @description selectbox 말줄임
689 */
690$(function(){
691	var ie9selbox = function(){
692
693		var $chkIe9selbox = $('[data-ie9selbox = true]');
694
695		var render = {
696			init: function(){
697				var _deviceChk = deviceChk();
698
699				if(_deviceChk === 'pc'){
700					$.each($chkIe9selbox, function(index){
701						selectbox.init(index);
702					});
703
704					ellipse.init();
705
706				}else{
707					$chkIe9selbox.find('select').show();
708					$('[data-ie9selbox-hidden = true]').css('display','none');
709				}
710
711			},
712			destroy: function(){
713				var _makeSelbox = $chkIe9selbox;
714				var _title = _makeSelbox.find('label');
715				var _option = _makeSelbox.find('ul');
716
717				_title.remove();
718				_option.remove();
719
720				selectbox.unbind();
721			}
722		}
723
724		var selectbox = {
725			init: function(index){
726				selectbox.make(index);
727				selectbox.bind(index);
728			},
729			bind: function(index){
730				var $wrapper = $chkIe9selbox.eq(index);
731				var $label = $wrapper.find('label');
732				var $ul = $wrapper.find('ul');
733				var $li = $wrapper.find('li');
734
735				$wrapper.on('click', function(){
736					var _display = $ul.css('display');
737
738					$chkIe9selbox.find('ul').hide();
739                    $chkIe9selbox.children('label').removeClass('active');
740
741					if(_display === 'none'){
742						$ul.show();
743						$label.addClass('active');
744					}else{
745						$ul.hide();
746                        $label.removeClass('active');
747					}
748				});
749
750				$li.on('click', function(){
751					var _text = $(this).html();
752					var _gab = 0;
753					var $option = $(this).parent().siblings('select').children('option');
754
755					$.each($option, function(){
756						if($(this).data('ie9selboxHidden')){
757							_gab++;
758						};
759					});
760
761					var _index = $(this).index() + _gab;
762					var _selboxAll = $(this).parent().siblings().children();
763					var _selbox = _selboxAll.eq(_index);
764
765					$label.html(_text);
766
767					_selbox.prop("selected", true).change();
768				});
769			},
770			unbind: function(){
771				var $wrapper = $chkIe9selbox;
772				var $li = $wrapper.find('li');
773
774				$wrapper.unbind('click');
775				$li.unbind('click');
776			},
777			make: function(index){
778				var $wrapper = $chkIe9selbox.eq(index);
779				var $select = $wrapper.find('select');
780				var $option = $select.children('option');
781
782				if($select.length < 1) return;
783
784				$.each($option, function(index) {
785					var _text = $(this).text();
786                    var _params = $(this).val();
787                    var _textHiddenChk = $(this).data('ie9selboxHidden');
788
789                    if(index === 0){
790                        $wrapper.append('<label data-ie9selbox-ellipse="true">' + _text + '</label>');
791                        $wrapper.append('<ul></ul>');
792                    }
793
794                    if(_textHiddenChk != true){
795                        $wrapper.find('ul').append('<li data-ie9selbox-ellipse="true" class="'+ _params +'" title="' + _text + '">' + _text + '</li>');
796                    }
797
798					if($option.eq(index).prop('selected') === true){
799						$wrapper.find('label').text(_text);
800					}
801				});
802			},
803		}
804
805		var ellipse = {
806			init: function(){
807				ellipse.make();
808			},
809			make: function(){
810				var $ellip = $('[data-ie9selbox-ellipse = true]');
811
812				for (var i = 0; i < $ellip.length; i++) {
813					$ellip.eq(i).ellipsis({lines: 1, responsive: true});
814				}
815			}
816		};
817
818		/*if($chkIe9selbox.length > 0){
819			render.init();
820		}*/
821
822		return render;
823	}();
824
825	window.ie9selbox = ie9selbox;
826});
827
828$(window).load(function(){
829	var i, r = 10, speed = 0.3, tlm = new TimelineMax();
830
831    $(document).on('mouseover', '.icon_search', searchOverHandler3).on('mouseout', '.icon_search', searchOutHandler3);
832
833    TweenMax.set($('.icon_search_box'), {scale:0.5});
834    tlm.to($('.icon_search_box'), 3, {rotation:-360, repeat:-1, ease:Power0.easeNone},0);
835    tlm.staggerTo($('.icon_search_box span'), 0.5,{
836    	cycle:{
837			x:function(index, target){
838                return r * Math.cos((360/6*index) * Math.PI/180);
839			},
840			y:function(index, target){
841                return r * Math.sin((360/6*index) * Math.PI/180);
842			}
843		}, scale:Math.random()+1, yoyo:true, repeat:-1}, 0.5);
844
845    tlm.seek(6);
846    tlm.pause();
847
848    function searchOverHandler3()
849    {
850        if(window.innerWidth > 1024) {
851            TweenMax.to($('.icon_search'),speed,{x:-6, y:-3, ease:Cubic.easeOut});
852            if($('.gnb_btn_area').hasClass('ent3'))
853			{
854                TweenMax.to($('.icon_search_in .ico1'),speed,{borderWidth:2, width:28, height:28, ease:Cubic.easeOut});
855                TweenMax.to($('.icon_search_in .ico2'),speed,{width:2, height:10, left
855:26, top:22, ease:Cubic.easeOut});
856			}else{
857                TweenMax.to($('.icon_search_in .ico1'),speed,{borderWidth:1, width:28, height:28, ease:Cubic.easeOut});
858                TweenMax.to($('.icon_search_in .ico2'),speed,{width:1, height:10, left:26, top:22, ease:Cubic.easeOut});
859			}
860            TweenMax.to($('.icon_search_box'),speed,{opacity:1, scale:1, left:14, top:14, ease:Cubic.easeOut});
861        }
862        tlm.play();
863    }
864    function searchOutHandler3()
865    {
866        if(window.innerWidth > 1024) {
867            TweenMax.to($('.icon_search'), speed, {x: 0, y: 0, ease: Cubic.easeOut});
868            TweenMax.to($('.icon_search_in .ico1'), speed, {borderWidth: 2, width: 20, height: 20, ease: Cubic.easeOut});
869            TweenMax.to($('.icon_search_in .ico2'), speed, {width: 2, height:8, left: 19, top: 16, ease: Cubic.easeOut});
870            TweenMax.to($('.icon_search_box'), speed, {opacity:0, scale:0.5, top:10, left:10, ease:Cubic.easeOut});
871        }
872        tlm.pause();
873    }
874
875});
876
877/**
878 * @description 법인명
879 */
880$(function() {
881	var $searchCompany = $('#search_company');
882	if ($searchCompany.length) {
883		var enableAutoComplete = true;
884        if ($searchCompany.attr('autocomplete') == 'off') {
885            enableAutoComplete = false;
886		}
887		$searchCompany.autocomplete({
888			source: function( request, response ) {
889				if (enableAutoComplete) {
890                    $.ajax({
891                        url: "/membership/getComNmList.ajax", // 법인명 검색 API 주소 입력
892                        dataType: "json",
893                        data: {
894                            term:request.term
895                        },
896                        success: function( data ) {
897                            response( data );
898                        },
899                        error: function (err)
900                        {
901                            console.log(err)
902                        }
903                    });
904				}
905			},
906			minLength: 2, // 이 옵션에서 설정하는 숫자에 따라 검색 시작글자 수가 결정됨
907			select: function( event, ui ) {
908				// 테스트 콘솔
909				//console.log( "Selected: " + ui.item.value + " aka " + ui.item.id );
910			}
911		});
912	}
913});

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.