PageSourceSearch

https://lsholdings.com/html/ko/_js/client.js?hide_refresh=20261004041844

js lsholdings.com collected 2026-10-03 19:19:07 UTC 18,068 bytes, 791 lines download raw bytes

1var width_now=$(window).width();
2var subHeader=false;
3var mainJudge=false;
4var totalSearch=0;
5var scroll_direction="down";
6var lastScrollTop = 0;
7var mainPage=false;
8var element_layer = document.getElementById('layer');
9
10$(document).ready(function(){
11	
12	$('#eng_cl').on("click",function(){
13		location.href='/en';
14	});
15	
16	$('#kor_cl').on("click",function(){
17		location.href='/ko';
18	});
19	
20	$('.keyword_cl').on("click",function(){
21		$('#top_input').val($(this).attr("data_name"));
22		$('#top_search').submit();
23	});
24
25	$( window ).scrollTop(1);
26	width_now=$(window).width();
27	if($('.wrap_header').hasClass("trans"))
28	{
29		 subHeader=true;
30	}
31	
32	if($('#mainJuge').length > 0)
33	{
34		mainPage=true;
35	}
36	
37	if(width_now < 980)
38	{
39		$('.gnb > li').on("click",function(){
40			$('.gnb > li > ul').slideUp();
41			if($(this).find("ul").css("display") == "none")
42			{
43				$(this).find("ul").slideDown();
44			}
45
46		});
47		
48		$('.tit_family').on("click",function(){
49			if($(this).hasClass("on") > 0)
50			{
51				$(this).removeClass("on");
52			}else{
53				$(this).addClass("on");
54			}
55		});
56	}else{
57		$('.gnb > li').on("mouseover",function(){
58			top_menu_show(); 
59		});
60		
61		$('header').on("mouseover",function(){
62			$('.wrap_header').removeClass("trans");
63		});
64		
65		$('header').on("mouseleave",function(){
66			if($('.sub_navigation').hasClass("fixed"))
67			{
68			}else{
69				if(mainPage == false)
70				{
71					
72					if(subHeader == true)
73					{
74						$('.wrap_header').addClass("trans");
75					}
76				}else{
77					if(mainJudge == false)
78					{
79						$('.wrap_header').addClass("trans");
80					}
81				}
82			}
83				
84			
85			
86			if(!$('.wrap_header').hasClass("fixedShow"))
87			{
88				
89			}
90		});
91	}
92	
93	
94	$('.btn_top').on("click",function(){
95		$("html,body").stop().animate({
96			scrollTop: '0px'
97		}, {
98			duration: 500,
99			complete: function() {
100				if(mainPage)
101				{
102					
103					go_section("0",$('.section_1'),0);
104					mainJudge=false;
105					if(!$('.wrap_header').hasClass("trans"))
106					{
107						$('.wrap_header').addClass("trans");
108					}
109				}
110                  
111			}
112		});
113	});
114	
115	$('.btn_open').on("click",function(){
116		$('.snsGroup').show();
117	});
118	
119	$('.btn_close').on("click",function(){
120		$('.snsGroup').hide();
121	});
122	sub_menu_hide();
123	
124	$('.btn_lnb_open').on("click",function(){
125		$('.wrap_lnb').addClass("moLnbOn");
126		mobile_menu_show();
127	});
128	
129	$('.btn_lnb_close').on("click",function(){
130		$('.wrap_lnb').removeClass("moLnbOn");
131		mobile_menu_hide();
132	});
133	
134	if(width_now < 980)
135	{
136		mobile_change();
137	}
138	
139	//footer 슬라이드
140	
141	var swiper_footer = new Swiper('#footer_family', {
142      spaceBetween: 0,
143	  slidesPerView:5,
144	  slidesPerGroup:5,
145      effect: 'slide',
146	  speed:1000,
147	  //loop: true,
148      pagination: {
149        el: '.familySite .swiper-pagination',
150        clickable: true,
151      },
152	   navigation: {
153        nextEl: '.familySite .swiper-button-next',
154        prevEl: '.familySite .swiper-button-prev',
155      },
156	  
157	 /* autoplay: {
158			delay: 3000,
159			disableOnInteraction: true,
160	 }*/
161    });
162	
163	//상단 검색 클릭시
164	$('.ic_srch').on("click",function(){
165		$(this).addClass("searchOn");
166	});
167	
168	$('.ic_srch_close').on("click",function(){
169		$('.ic_srch').removeClass("searchOn");
170	});
171	//검색 값 넘기기
172	$('.srch_box').find("form").submit(function(event){
173	
174		
175		
176	});
177	//sns
178	$('.share .facebook,.share_sns .facebook').on("click",function(){
179		var url=location.href;
180		var title="["+$('#extra_h1').val()+" > "+$('#extra_h2').val()+"]";
181		sns_facebook(url,title);
182	});
183	
184	$('.share .twitter,.share_sns .twitter').on("click",function(){
185		var url=location.href;
186		var title="["+$('#extra_h1').val()+" > "+$('#extra_h2').val()+"]";
187		sns_twitter(url,title);
188	});
189	
190	$('.share .naver,.share_sns .naver').on("click",function(){
191		var url=location.href;
192		var title="["+$('#extra_h1').val()+" > "+$('#extra_h2').val()+"]";
193		sns_blog(url,title);
194	});
195	
196	$('.share .kakao,.share_sns .kakao').on("click",function(){
197		var url=location.href;
198		var title="["+$('#extra_h1').val()+" > "+$('#extra_h2').val()+"]";
199		sns_kakao(url,title,$('#extra_sns_img').val());
200	});
201
202	if($(window).width() < 980)
203	{
204		mobile_show();
205	}
206	scroll_top_icon();
207});
208
209
210$(window).resize(function(){
211		
212		if($(window).width() < 980)
213		{
214			mobile_show();
215		}else{
216			//mobile_hide();
217		}
218	});
219	
220
221function mobile_show()
222{
223	$('.wrap_header').removeClass("fixedShow");
224	if(mainPage)
225	{
226		$('#allWrap').removeClass("subpageAllWrap").addClass("mainAllWrap");
227	}
228}
229
230function mobile_hide()
231{
232	$('.wrap_header').removeClass("fixedShow").addClass("fixedShow");
233	if(mainPage)
234	{
235		$('#allWrap').removeClass("subpageAllWrap");
236		$('#allWrap').addClass("subpageAllWrap");
237	}
238}
239
240function mobile_menu_show()
241{
242	$('body').css("overflow","hidden");
243	$('#allWrap').addClass("wrapHidden");
244}
245
246function mobile_menu_hide()
247{
248	$('body').css("overflow","auto");
249	$('#allWrap').removeClass("wrapHidden");
250}
251
252function mobile_change()
253{
254	
255}
256
257
258$(document).on("mousemove",function(event){
259
260    var stop=0;
261
262	if($('.gnb').hasClass("pcGnbOn") > 0)
263	{
264		if(event.clientY > (stop+420))
265		{
266			top_menu_hide(); 
267		}
268		var  menuWidth=$('.gnb').offset().left+$('.gnb').width();
269
270		if(event.clientX > menuWidth)
271		{
272			 $('.gnb').removeClass("pcGnbOn");
273		}
274	}
275		
276});
277
278$(window).scroll(function (event) {
279
280	if(mainPage == false)
281	{
282    var stop=$( window ).scrollTop();
283	var top;
284	if($('.sub_navigation').length > 0)
285	{
286		top=$('.sub_navigation').offset().top;
287	}
288    if(subHeader)
289	{
290		if(stop < 100)
291		{
292      
293			if($('.sub_navigation').hasClass("fixed") > 0)
294			{
295				sub_menu_hide(); 
296			}	
297		
298		}else if(stop >= top)
299		{
300    
301			if(stop == top)
302			{
303				stop2posi=stop;
304			}
305			//if($('.sub_navigation').hasClass("withGnb") > 0)
306			//{
307            sub_menu_show();
308			//}
309		}
310		
311		if (stop > lastScrollTop){
312		
313		if(scroll_direction == "up")
314		{
315			scroll_direction="down";
316			sub_menu_show();
317			
318		}			
319		scroll_direction="down";
320	   
321		} else {
322			scroll_direction="up";
323		}
324	}
325	
326	
327	
328	
329   
330   lastScrollTop = stop;
331	}
332	
333	scroll_top_icon();
334	 
335});
336
337
338function scroll_top_icon()
339{
340	if($( window ).scrollTop() > 100)
341	{
342		$('.ft_btn').show();
343		
344		if($( window ).scrollTop() > ($('.wrap_footer').offset().top-800) )
345		{
346			if(!$('.ft_btn').hasClass("static"))
347			{
348				$('.ft_btn').addClass("static")
349			}
350		}else{
351			if($('.ft_btn').hasClass("static"))
352			{
353				$('.ft_btn').removeClass("static")
354			}
355		}
356	}else{
357		$('.ft_btn').hide();
358	}
359}
360
361function top_menu_show()
362{
363	$('.gnb').addClass("pcGnbOn");
364    $('.wrap_header').removeClass("trans");
365}
366
367function top_menu_hide()
368{
369
370    $('.gnb').removeClass("pcGnbOn");
371	if(subHeader)
372	{
373		if(mainJudge == false)
374		{
375			if($('.sub_navigation').hasClass("withGnb"))
376			{
377			}else{
378				$('.wrap_header').addClass("trans");
379			}
380		}
381	}
382}
383
384function sub_menu_show()
385{
386	if($(window).width() > 980)
387		{
388	if(scroll_direction == "down")
389	{
390		$('.sub_navigation').removeClass("withGnb");
391		$('.sub_navigation').addClass("fixed");
392		$('.wrap_header').removeClass("fixedShow");
393		$('.wrap_header').addClass("fixedHide");
394		$('.wrap_header').removeClass("trans");        
395		$('.gnb').removeClass("pcGnbOn"); 
396		$('.page_util').hide();
397		//$('.ft_btn').show();
398	}else{
399	
400		$('.sub_navigation').addClass("withGnb");
401		$('.sub_navigation').addClass("fixed");
402		$('.wrap_header').addClass("fixedShow");
403		$('.wrap_header').removeClass("fixedHide");
404		$('.wrap_header').removeClass("trans");        
405		$('.gnb').removeClass("pcGnbOn"); 
406		$('.page_util').hide();
407		
408		//$('.ft_btn').show();
409	}
410}
411
412}
413
414function sub_menu_hide()
415{
416    $('.sub_navigation').removeClass("fixed");
417    $('.sub_navigation').removeClass("withGnb");
418    $('.wrap_header').removeClass("fixedHide");
419    $('.wrap_header').addClass("fixedShow");
420	if(subHeader)
421	{
422		$('.wrap_header').addClass("trans");
423	}
424	$('.page_util').show();
425	if(mainPage == false)
426	{
427		//$('.ft_btn').hide();
428	}
429}
430
431
432function get_data_json(id,page,num,begin,param)
433{
434	var y="";
435	y=y+"mode="+$('#extra_mode_u1').val();
436	y=y+"&hide_tyuijdtw="+$('#extra_tyuijdtw').val();
437	y=y+"&lang="+$('#extra_lang').val();
438	y=y+"&m="+$('#extra_m').val();
439	y=y+"&sm="+$('#extra_sm').val();
440	y=y+"&hide_post="+$('#extra_post_data').val();
441	y=y+"&page="+page;
442	y=y+"&num="+num;
443	y=y+"&begin="+begin;
444	y=y+param;
445	$.ajax({
446		url: $('#extra_url').val(),
447		type : 'POST' ,
448		data :y,
449		success : function (result) {
450			$('#'+id).find('.wrap_moreBtn').remove();	
451			if(page == "1")
452			{
453				$('#'+id).html("");
454			}
455			
456			$('#'+id).append(result);
457			
458			
459		},
460		error: function(e) {
461    		//alert('connect error','ERROR');
462    	}
463	});	
464}
465
466function get_data_bbs(id,page,num,begin,param)
467{
468
469	var y="";
470	y=y+"mode="+$('#extra_mode_u1').val();
471	y=y+"&hide_tyuijdtw="+$('#extra_tyuijdtw').val();
472	y=y+"&lang="+$('#extra_lang').val();
473	y=y+"&m="+$('#extra_m').val();
474	y=y+"&sm="+$('#extra_sm').val();
475	y=y+"&hide_post="+$('#extra_post_data').val();
476	y=y+"&page="+page;
477	y=y+"&num="+num;
478	y=y+"&begin="+begin;
479	y=y+param;
480	$.ajax({
481		url: $('#extra_url').val(),
482		type : 'POST' ,
483		dataType : 'json' ,
484		data :y,
485		success : function (result) {
486
487			if(page == "1")
488			{
489				$('#'+id).html("");
490			}
491			
492			if($('#'+id).parent().parent().find(".wrap_moreBtn").length > 0)
493			{
494				$('#'+id).append(result.data);
495				$('#'+id).parent().parent().find(".wrap_moreBtn").html(result.more);
496			}
497			//검색부분 설정
498			if($('.result.by_keyword').length > 0)
499			{
500				if(result.type == "keyword")
501				{
502					$('.by_keyword .count').find("em").html("("+result.total+")");
503					
504				}else if(result.type == "news")
505				{
506					$('.news .count').find("em").html("("+result.total+")");
507				}
508				
509				totalSearch=totalSearch+result.total;
510				if(location.href.indexOf("/ko") > 0)
511				{
512					$('.searchBox .txt1').find("em").html(totalSearch+"개");
513				}else{
514					$('.searchBox .txt1').find("em").html(totalSearch+" results ");
515				}
516			}
517			
518			
519		},
520		error: function(e) {
521    		alert('connect error','ERROR');
522    	}
523	});	
524
525}
526
527function comma(num){
528    var len, point, str; 
529       
530    num = num + ""; 
531    point = num.length % 3 ;
532    len = num.length; 
533   
534    str = num.substring(0, point); 
535    while (point < len) { 
536        if (str != "") str += ","; 
537        str += num.substring(point, point + 3); 
538        point += 3; 
539    } 
540     
541    return str;
542 
543}
544
545
546function num_animation(id,num,speed)
547{
548
549	var $el = id;
550	$({ val : 0 }).animate({ val : num }, {
551	duration: speed,
552	step: function() {
553		if(num < 0)
554		{
555			$el.text((Math.floor(this.val)));
556		}else{
557			$el.text(comma(Math.floor(this.val)));
558		}
559	}	,
560	complete: function() {
561		if(num < 0)
562		{
563			$el.text((Math.floor(this.val)));
564		}else{
565			$el.text(comma(Math.floor(this.val)));
566		}
567	}
568	});
569}
570
571function bar_animation(id,num,speed)
572{
573	var $el = id;
574	$({ val : 0 }).animate({ val : num }, {
575	duration: parseInt(num)*2+parseInt(speed),
576	step: function() {
577		$el.css("height",Math.floor(this.val)+"%");
578	}	,
579	complete: function() {
580		//$el.text(comma(Math.floor(this.val)));
581	}
582	});
583}
584
585
586function usr_layer_open(id,page)
587{
588	var y="";
589	y="&subd="+page;
590	
591	get_data_json(id,1,1,0,y);
592}
593
594function usr_layer_close(id)
595{
596	$('#'+id).html("");
597}
598function usr_modal_show()
599{
600	if($('body').find('.dim').length <= 0)
601	{
602		$('body').append("<div class='dim'></div>");
603		$('.dim').show();
604	}
605}
606
607function usr_modal_hide()
608{
609	$('.dim').remove();
610}
611
612function url_change(url,title)
613{
614	var state = { 'page_id': 1, 'user_id': 5 };
615	history.pushState(state, title, url);
616}
617
618//snsGroup
619
620
621function sns_facebook(url,title){
622
623  window.open("http://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(url)+"&t="+title,"facebook","width=550,height=500,scrolls=no").focus();
624}
625
626function sns_twitter(url,title){
627
628	var s_url = "http://twitter.com/share?url=" + encodeURIComponent(url) + "&text=" + encodeURIComponent(title);
629    window.open(s_url, "twitter", "width=550,height=500").focus();
630}
631
632function sns_blog(url,title)
633{
634  window.open("http://share.naver.com/web/shareView.nhn?url="+url+"&title="+title,"naverblog","
634width=540,height=520,scrolls=no").focus();
635}
636
637function sns_kakao(url,title,img)
638{
639
640	var detitle;
641	if(location.href.indexOf("/en/") > 0)
642	{
643		detitle="LS";
644	}else{
645		detitle="LS홀딩스";
646	}
647	Kakao.Link.sendDefault({
648	objectType: 'feed',
649	content: {
650    title: detitle,
651    description: title,
652    imageUrl:img,
653    link: {
654	webUrl:url,
655      mobileWebUrl: url,
656    },
657  },
658  buttons: [
659    {
660      title: '자세히 보기',
661      link: {
662		 webUrl:url,
663        mobileWebUrl: url,
664      },
665    },
666  ],
667  success: function(response) {
668    //console.log(response);
669  },
670  fail: function(error) {
671    console.log(error);
672  }
673});
674}
675
676function frame_execDaumPostcode(post,id,id2) {
677	new daum.Postcode({
678            oncomplete: function(data) {
679                var addr = ''; // 주소 변수
680                var extraAddr = ''; // 참고항목 변수
681
682                //사용자가 선택한 주소 타입에 따라 해당 주소 값을 가져온다.
683                if (data.userSelectedType === 'R') { // 사용자가 도로명 주소를 선택했을 경우
684                    addr = data.roadAddress;
685                } else { // 사용자가 지번 주소를 선택했을 경우(J)
686                    addr = data.roadAddress;
687                }
688
689                // 사용자가 선택한 주소가 도로명 타입일때 참고항목을 조합한다.
690                if(data.userSelectedType === 'R'){
691                    // 법정동명이 있을 경우 추가한다. (법정리는 제외)
692                    // 법정동의 경우 마지막 문자가 "동/로/가"로 끝난다.
693                    if(data.bname !== '' && /[동|로|가]$/g.test(data.bname)){
694                        extraAddr += data.bname;
695                    }
696                    // 건물명이 있고, 공동주택일 경우 추가한다.
697                    if(data.buildingName !== '' && data.apartment === 'Y'){
698                        extraAddr += (extraAddr !== '' ? ', ' + data.buildingName : data.buildingName);
699                    }
700                    // 표시할 참고항목이 있을 경우, 괄호까지 추가한 최종 문자열을 만든다.
701                    if(extraAddr !== ''){
702                        extraAddr = ' (' + extraAddr + ')';
703                    }
704                    // 조합된 참고항목을 해당 필드에 넣는다.
705                    document.getElementById(id).value = extraAddr;
706                
707                } else {
708                    document.getElementById(id).value = '';
709                }
710				
711				document.getElementById(post).value = data.zonecode;
712
713                // 우편번호와 주소 정보를 해당 필드에 넣는다.
714                document.getElementById(id).value = addr;
715                // 커서를 상세주소 필드로 이동한다.
716                document.getElementById(id2).focus();
717
718                // iframe을 넣은 element를 안보이게 한다.
719                // (autoClose:false 기능을 이용한다면, 아래 코드를 제거해야 화면에서 사라지지 않는다.)
720                element_layer.style.display = 'none';
721				usr_modal_hide();
722				
723				$("#address").removeClass("error");
724				$("#address").parent().find(".alert_msg").remove();
725            },
726            width : '100%',
727            height : '100%',
728            maxSuggestItems : 5
729        }).embed(element_layer);
730
731        // iframe을 넣은 element를 보이게 한다.
732        element_layer.style.display = 'block';
733
734        // iframe을 넣은 element의 위치를 화면의 가운데로 이동시킨다.
735        initLayerPosition();
736    }
737
738    // 브라우저의 크기 변경에 따라 레이어를 가운데로 이동시키고자 하실때에는
739    // resize이벤트나, orientationchange이벤트를 이용하여 값이 변경될때마ë
739‹¤ 아래 함수를 실행 시켜 주시거나,
740    // 직접 element_layer의 top,left값을 수정해 주시면 됩니다.
741function initLayerPosition(){
742        var width = 500; //우편번호서비스가 들어갈 element의 width
743        var height = 500; //우편번호서비스가 들어갈 element의 height
744        var borderWidth = 5; //샘플에서 사용하는 border의 두께
745		var ttop=0;
746		
747		if($(window).width() < width)
748		{
749			width=$(window).width();
750		}
751
752        // 위에서 선언한 값들을 실제 element에 넣는다.
753        element_layer.style.width = width + 'px';
754        element_layer.style.height = height + 'px';
755        element_layer.style.border = borderWidth + 'px solid';
756        // 실행되는 순간의 화면 너비와 높이 값을 가져와서 중앙에 뜰 수 있도록 위치를 계산한다.
757        element_layer.style.left = (((window.innerWidth || document.documentElement.clientWidth) - width)/2 - borderWidth) + 'px';
758		ttop=(((window.innerHeight || document.documentElement.clientHeight) - height)/2 - borderWidth);
759		if(ttop < $('.header').height())
760		{
761			ttop=$('.header').height();
762		}			
763        element_layer.style.top =ttop+ 'px';
764		
765		if($(window).width() < 500)
766		{
767			element_layer.style.left="2px";
768		}
769}
770
771
772function search_check(f)
773{
774
775	if(location.href.indexOf("/ko") > 0)
776	{
777		if($.trim(f.keyword.value) == "")
778		{
779			alert('검색어를 입력하세요');
780			return false;
781		}
782	}else{
783		if($.trim(f.keyword.value) == "")
784		{
785			alert('Enter the keyword');
786			return false;
787		}
788	}
789	
790	return true;
791}

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.