PageSourceSearch

https://hlholdings.co.kr/web/js/common.js

js hlholdings.co.kr collected 2026-10-05 17:59:21 UTC 19,192 bytes, 524 lines download raw bytes

1$(document).ready(function(){
2
3
4	$('.gnb_navi > li').on('mouseenter focusin', function(){
5		$('.gnb_navi > li').removeClass('hover');
6		$(this).addClass('hover');
7		$('.gnb_depth2').removeClass('on');
8		$(this).find('.gnb_depth2').addClass('on');
9		$('.gnb-depth2-bg').addClass('on');
10	});
11	$('.gnb_navi > li').on('mouseleave   ', function(){
12		$('.gnb_navi > li').removeClass('hover');
13		$('.gnb_depth2').removeClass('on');
14		$('.gnb-depth2-bg').removeClass('on');
15		
16		
17	});
18
19	
20	$('.gnb_depth2 > li').on('mouseenter focusin', function(){
21		$('.gnb_depth2 > li').removeClass('on');
22			$(this).addClass('on');
23		if($(this).find('.gnb_depth3').length){
24			
25			$('.gnb-depth3-bg').addClass('on');
26			$('.gnb_depth3').removeClass('on');
27			$(this).find('.gnb_depth3').addClass('on');
28
29		}else{			
30			$('.gnb-depth3-bg').removeClass('on');
31			$('.gnb_depth3').removeClass('on');
32		}
33	});
34
35	$('.gnb_depth2 > li').on('mouseleave   ', function(){
36		//$('.gnb-depth3-bg').stop().slideUp();
37		$('.gnb_depth2 > li').removeClass('on');
38		$('.gnb_depth3').removeClass('on');
39		$('.gnb-depth3-bg').removeClass('on');
40	});
41	$('.lang, .header h1').on('focusin',function(){
42		$('.gnb_navi > li').removeClass('hover');
43		$('.gnb_depth2 > li').removeClass('on');
44		$('.gnb_depth2').removeClass('on');
45		$('.gnb_depth3').removeClass('on');
46		$('.gnb-depth2-bg').removeClass('on');
47		$('.gnb-depth3-bg').removeClass('on');
48	});
49	
50
51
52
53	/*$('.allmenu_box h2 > a').on('click', function(){
54		var thisbox = $(this).parents('.allmenu_box');
55		if(!thisbox.hasClass('on')){
56			$('.allmenu_box').removeClass('on');
57			$('.all_depthbox').stop().slideUp();
58			thisbox.addClass('on');
59			thisbox.find('.all_depthbox').stop().slideDown();
60		}else{
61			thisbox.removeClass('on');
62			thisbox.find('.all_depthbox').stop().slideUp();
63		}
64	});*/
65
66	$('.all_menu h2 > a').on('click',function(){
67		var thisBox = $(this).parents('.allmenu_box'),
68			thisDepth2 = thisBox.find('.all_depthbox');
69		if(!thisBox.hasClass('on')){
70			$('.allmenu_box').removeClass('on');
71			//$('.all_depthbox').stop().slideUp();
72			thisBox.addClass('on');
73			//thisDepth2.stop().slideDown();
74		}else{
75			$('.allmenu_box').removeClass('on');
76			//$('.all_depthbox').stop().slideUp();
77		}
78
79	});
80
81	$('.all_m').on('click',function(){
82		$('.allmenu_wrap').fadeIn();
83		setTimeout(function() { $('.all_menu').fadeIn(200); },300);
84		setTimeout(function() { $('.all_close').fadeIn(200); },300);
85		$('body').addClass('hidden');
86	});
87	$('.all_close').on('click',function(){
88		$('.all_menu').fadeOut();
89		$('.allmenu_wrap').fadeOut(200);
90		//setTimeout(function() {  },200);
91		$('body').removeClass('hidden');
92	});
93
94	/*$('.lang').on('click', function(){
95		var langBox = $(this).find('.lang_depth');
96		if(!$(this).hasClass('on')){
97			$(this).addClass('on');
98			langBox.stop().slideDown();
99		}else{
100			$(this).removeClass('on');
101			langBox.stop().slideUp();
102		}
103	});*/
104
105	
106
107	$('.lang').on('mouseenter hover focusin', function(){
108		//$(this).find('.lang_depth').stop().slideDown(300);
109		$(this).find('.lang_depth').addClass('on');
110		
111	});
112	$('.lang').on('mouseleave blur focusout', function(){
113		//$(this).find('.lang_depth').stop().slideUp(300);
114		$(this).find('.lang_depth').removeClass('on');
115	});
116
117	$('.footer_selectbox').on('click', function(){
118		$('.family_box').addClass('on');
119	});
120	$('.family_close').on('click', function(){
121		$('.family_box').removeClass('on');
122	});
123
124	$('.top').on('click', function(){
125		$('html, body').animate({scrollTop : 0}, 500);
126	});
127
128	$('.sub_tab a').on('click', function(){
129		//e.preventDefault();
130		if(!$(this).parents('.sub_tab').hasClass('none_func')){
131			var thisTab = $(this).parent('li');
132			var thisIdx = thisTab.index();
133			var parentsTab = $(this).parents('.sub_tab');
134			parentsTab.find('li').removeClass('on');
135			thisTab.addClass('on');
136			$('.tab_cont').hide();
137			$('.tab_cont').eq(thisIdx).show();
138		}
139	});
140
141	$('.sub_tab a').on('click', function(){
142		var state = $(this).parent('li').index();
143		var thisIndex = $(this).parent('li').index() + 1;
144		var parentsTab = $(this).parents('.sub_tab');
145		parentsTab.find('li').removeClass('on');
146		$(this).parent('li').addClass('on');
147		$('.tab_cont').hide();
148		$('.tab_cont').eq(state).show();
149		$('.m_sub_tab option').prop('selected',false);
150		$('.m_sub_tab option:eq(' + state + ')').prop('selected',true);
151		//console.log(state)
152	});
153
154	$('.m_sub_tab').on('change',function(){
155		var state = $('.m_sub_tab option:selected').index() + 1;
156		var thisIndex = $('.m_sub_tab option:selected').index();
157		var parentsTab = $(this).parents('.sub_tab');
158		parentsTab.find('li').removeClass('on');
159		$('.sub_tab li').eq(thisIndex).addClass('on');
160		$('.tab_cont').hide();
161		$('.tab_cont').eq(thisIndex).show();
162		$('.m_sub_tab option').prop('selected',false);
163		$('.m_sub_tab option:eq(' + thisIndex + ')').prop('selected',true);
164	});
165
166	$('.inner_tab a').on('click', function(){
167		var thisTab = $(this).parent('li');
168		var thisIdx = thisTab.index();
169		var parentsTab = $(this).parents('.inner_tab');
170		parentsTab.find('li').removeClass('on');
171		thisTab.addClass('on');
172		$('.tab_cont').hide();
173		$('.tab_cont').eq(thisIdx).show();
174	});
175
176	$('.img_btn').on('click', function(){
177		var name = $(this).attr('data-pop');
178		$('#' + name).show();
179		$('body').addClass('hidden');
180		console.log(name);
181	});
182	$('.zoom_cls').on('click', function(){
183		$('.img_zoom').hide();
184		$('body').removeClass('hidden');
185	});
186
187	$('.down_btn2').on('mouseenter hover focusin', function(){
188		var hoverimg = '/web/images/sub/down_btn_hover.pdf';
189		var thisBtn = $(this).find('img');
190		thisBtn.attr('src',hoverimg);
191	});
192	$('.down_btn2').on('mouseleave blur focusout', function(){
193		var hoverimg = '/web/images/sub/down_btn.pdf';
194		var thisBtn = $(this).find('img');
195		thisBtn.attr('src',hoverimg);
196	});	
197
198
199	$('.down_btn').on('mouseenter hover focusin', function(){
200		var hoverimg = '/web/images/sub/down_btn_hover.png';
201		var thisBtn = $(this).find('img');
202		thisBtn.attr('src',hoverimg);
203	});
204	$('.down_btn').on('mouseleave blur focusout', function(){
205		var hoverimg = '/web/images/sub/down_btn.png';
206		var thisBtn = $(this).find('img');
207		thisBtn.attr('src',hoverimg);
208	});
209
210	$('.short_btn').on('mouseenter hover focusin', function(){
211		var hoverimg = '/web/images/sub/shortcut_ico_15_hover.png';
212		var thisBtn = $(this).find('img');
213		thisBtn.attr('src',hoverimg);
214	});
215	$('.short_btn').on('mouseleave blur focusout', function(){
216		var hoverimg = '/web/images/sub/shortcut_ico_15.png';
217		var thisBtn = $(this).find('img');
218		thisBtn.attr('src',hoverimg);
219	});
220
221	$('.arrow_btn').on('mouseenter hover focusin', function(){
222		var hoverimg = '/web/images/sub/btn_arrow_hover.png';
223		var thisBtn = $(this).find('img');
224		thisBtn.attr('src',hoverimg);
225	});
226	$('.arrow_btn').on('mouseleave blur focusout', function(){
227		var hoverimg = '/web/images/sub/btn_arrow.png';
228		var thisBtn = $(this).find('img');
229		thisBtn.attr('src',hoverimg);
230	});
231
232	/*220307     */
233	$('.service_wrap_220307 .mobility_intro .intro_box').on('mouseenter hover focusin', function(){
234		$(this).find('.imgbox').find('span').css({'transform':'scale(1.1)'});
235
236		var hoverimg = '/web/images/sub/btn_arrow_11_hover.png';
237		var thisBtn = $(this).next('.txtbox .arrow_btn_11').find('img');
238		thisBtn.attr('src',hoverimg);
239
240		
241	});
242	$('.service_wrap_220307 .mobility_intro .intro_box').on('mouseleave blur focusout', function(){
243		$(this).find('.imgbox').find('span').css({'transform':'scale(1)'});
244
245		var hoverimg = '/web/images/sub/btn_arrow_11.png';
246		var thisBtn = $(this.next('.txtbox .arrow_btn_11')).find('img');
247		thisBtn.attr('src',hoverimg);
248
249		
250	});
251	/*//220307     */
252
253	$('.arrow_btn_13').on('mouseenter hover focusin', function(){
254		var hoverimg = '/web/images/sub/btn_arrow_13_hover.png';
255		var thisBtn = $(this).find('img');
256		thisBtn.attr('src',hoverimg);
257	});
258	$('.arrow_btn_13').on('mouseleave blur focusout', function(){
259		var hoverimg = '/web/images/sub/btn_arrow_13.png';
260		var thisBtn = $(this).find('img');
261		thisBtn.attr('src',hoverimg);
262	});
263
264	$('.list_btn').on('mouseenter hover focusin', function(){
265		var hoverimg = '/web/images/sub/list_ico_hover.png';
266		var thisBtn = $(this).find('img');
267		thisBtn.attr('src',hoverimg);
268	});
269	$('.list_btn').on('mouseleave blur focusout', function(){
270		var hoverimg = '/web/images/sub/list_ico.png';
271		var thisBtn = $(this).find('img');
272		thisBtn.attr('src',hoverimg);
273	});
274
275	$('.sns_btn').on('click', function(){
276		var $thisbox = $(this).parent('.sns_share');
277		if(!$thisbox.hasClass('on')){
278			$thisbox.addClass('on');
279		}else{
280			$thisbox.removeClass('on');
281		}
282	});
283
284
285
286
287
288
289
290
291
292
293var yearSelect = document.getElementById("yearSelect");
294if (yearSelect) {
295  yearSelect.addEventListener("change", function() {
296    var selectedYear = this.value;
297
298    if (selectedYear === "2023") {
299      document.getElementById("table_first1").style.display = "block";
300      document.getElementById("table_first").style.display = "block";
301      document.getElementById("table_second").style.display = "none";
302      document.getElementById("table_third").style.display = "none";
303      document.getElementById("table_fourth").style.display = "none";
304      document.getElementById("table_Fifth").style.display = "none";
305      document.getElementById("table_first_0").style.display = "none";
306      document.getElementById("table_first_2025").style.display = "none";
307      document.getElementById("table_first_2026").style.display = "none";
308
309    } else if (selectedYear === "2022") {
310      document.getElementById("table_first1").style.display = "none";
311      document.getElementById("table_first").style.display = "none";
312      document.getElementById("table_second").style.display = "block";
313      document.getElementById("table_third").style.display = "none";
314      document.getElementById("table_fourth").style.display = "none";
315      document.getElementById("table_Fifth").style.display = "none";
316      document.getElementById("table_first_0").style.display = "none";
317      document.getElementById("table_first_2025").style.display = "none";
318      document.getElementById("table_first_2026").style.display = "none";
319
320    } else if (selectedYear === "2021") {
321      document.getElementById("table_first1").style.display = "none";
322      document.getElementById("table_first").style.display = "none";
323      document.getElementById("table_second").style.display = "none";
324      document.getElementById("table_third").style.display = "block";
325      document.getElementById("table_fourth").style.display = "none";
326      document.getElementById("table_Fifth").style.display = "none";
327      document.getElementById("table_first_0").style.display = "none";
328      document.getElementById("table_first_2025").style.display = "none";
329      document.getElementById("table_first_2026").style.display = "none";
330
331    } else if (selectedYear === "2020") {
332      document.getElementById("table_first1").style.display = "none";
333      document.getElementById("table_first").style.display = "none";
334      document.getElementById("table_second").style.display = "none";
335      document.getElementById("table_third").style.display = "none";
336      document.getElementById("table_fourth").style.display = "block";
337      document.getElementById("table_Fifth").style.display = "none";
338      document.getElementById("table_first_0").style.display = "none";
339      document.getElementById("table_first_2025").style.display = "none";
340      document.getElementById("table_first_2026").style.display = "none";
341	
342    } else if (selectedYear === "2019") {
343      document.getElementById("table_first1").style.display = "none";
344      document.getElementById("table_first").style.display = "none";
345      document.getElementById("table_second").style.display = "none";
346      document.getElementById("table_third").style.display = "none";
347      document.getElementById("table_fourth").style.display = "none";
348      document.getElementById("table_Fifth").style.display = "block";
349      document.getElementById("table_first_0").style.display = "none";
350      document.getElementById("table_first_2025").style.display = "none";
351      document.getElementById("table_first_2026").style.display = "none";
352
353    } else if (selectedYear === "2024") {
354      document.getElementById("table_first_0").style.display = "block";
355      document.getElementById("table_first1").style.display = "none";
356      document.getElementById("table_first").style.display = "none";
357      document.getElementById("table_second").style.display = "none";
358      document.getElementById("table_third").style.display = "none";
359      document.getElementById("table_fourth").style.display = "none";
360      document.getElementById("table_Fifth").style.display = "none";
361      document.getElementById("table_first_2025").style.display = "none";
362      document.getElementById("table_first_2026").style.display = "none";
363
364    } else if (selectedYear === "2025") {
365      document.getElementById("table_first_2025").style.display = "block";
366      document.getElementById("table_first_0").style.display = "none";
367      document.getElementById("table_first1").style.display = "none";
368      document.getElementById("table_first").style.display = "none";
369      document.getElementById("table_second").style.display = "none";
370      document.getElementById("table_third").style.display = "none";
371      document.getElementById("table_fourth").style.display = "none";
372      document.getElementById("table_Fifth").style.display = "none";
373      document.getElementById("table_first_2026").style.display = "none";
374    } else if (selectedYear === "2026") {
375      document.getElementById("table_first_2025").style.display = "none";
376      document.getElementById("table_first_0").style.display = "none";
377      document.getElementById("table_first1").style.display = "none";
378      document.getElementById("table_first").style.display = "none";
379      document.getElementById("table_second").style.display = "none";
380      document.getElementById("table_third").style.display = "none";
381      document.getElementById("table_fourth").style.display = "none";
382      document.getElementById("table_Fifth").style.display = "none";
383      document.getElementById("table_first_2026").style.display = "block";
384    }
385  });
386}
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402function safeDisplay(id, value) {
403  var el = document.getElementById(id);
404  if (el) el.style.display = value;
405}
406
407var yearSelect2 = document.getElementById("yearSelect2");
408if (yearSelect2) {
409  yearSelect2.addEventListener("change", function() {
410    var selectedYear = this.value;
411
412    if (selectedYear === "2022") {
413      safeDisplay("table_first3", "none");
414      safeDisplay("table_first2", "none");
415      safeDisplay("table_first", "block");
416      safeDisplay("table_first1", "none");
417      safeDisplay("table_second", "none");
418      safeDisplay("table_third", "none");
419      safeDisplay("table_fourth", "none");
420      safeDisplay("table_Fifth", "none");
421    } else if (selectedYear === "2021") {
422      safeDisplay("table_first3", "none");
423      safeDisplay("table_first2", "none");
424      safeDisplay("table_first1", "none");
425      safeDisplay("table_first", "none");
426      safeDisplay("table_second", "block");
427      safeDisplay("table_third", "none");
428      safeDisplay("table_fourth", "none");
429      safeDisplay("table_Fifth", "none");
430    } else if (selectedYear === "2020") {
431      safeDisplay("table_first3", "none");
432      safeDisplay("table_first2", "none");
433      safeDisplay("table_first1", "none");
434      safeDisplay("table_first", "none");
435      safeDisplay("table_second", "none");
436      safeDisplay("table_third", "block");
437      safeDisplay("table_fourth", "none");
438      safeDisplay("table_Fifth", "none");
439    } else if (selectedYear === "2019") {
440      safeDisplay("table_first3", "none");
441      safeDisplay("table_first2", "none");
442      safeDisplay("table_first1", "none");
443      safeDisplay("table_first", "none");
444      safeDisplay("table_second", "none");
445      safeDisplay("table_third", "none");
446      safeDisplay("table_fourth", "block");
447      safeDisplay("table_Fifth", "none");
448    } else if (selectedYear === "2018") {
449      safeDisplay("table_first3", "none");
450      safeDisplay("table_first2", "none");
451      safeDisplay("table_first1", "none");
452      safeDisplay("table_first", "none");
453      safeDisplay("table_second", "none");
454      safeDisplay("table_third", "none");
455      safeDisplay("table_fourth", "none");
456      safeDisplay("table_Fifth", "block");
457    } else if (selectedYear === "2023") {
458      safeDisplay("table_first3", "none");
459      safeDisplay("table_first2", "none");
460      safeDisplay("table_first1", "block");
461      safeDisplay("table_first", "none");
462      safeDisplay("table_second", "none");
463      safeDisplay("table_third", "none");
464      safeDisplay("table_fourth", "none");
465      safeDisplay("table_Fifth", "none");
466    } else if (selectedYear === "2024") {
467      safeDisplay("table_first3", "none");
468      safeDisplay("table_first2", "block");
469      safeDisplay("table_first1", "none");
470      safeDisplay("table_first", "none");
471      safeDisplay("table_second", "none");
472      safeDisplay("table_third", "none");
473      safeDisplay("table_fourth", "none");
474      safeDisplay("table_Fifth", "none");
475    } else if (selectedYear === "2025") {
476      safeDisplay("table_first3", "block");
477      safeDisplay("table_first2", "none");
478      safeDisplay("table_first1", "none");
479      safeDisplay("table_first", "none");
480      safeDisplay("table_second", "none");
481      safeDisplay("table_third", "none");
482      safeDisplay("table_fourth", "none");
483      safeDisplay("table_Fifth", "none");
484    }
485
486  });
487}
488	
489});
490
491//           Æ®
492function printDiv(divName) {
493    var data=document.getElementById(divName).innerHTML;
494    var myWindow = window.open('', 'my div', 'height=400,width=600');
495    var userLang = document.documentElement.lang;
496    var currLang = "";
497
498    if (userLang == 'ko') {
499      currLang == ' Ѷ Ȧ    ';
500    } else if (userLang == 'en') {
501      currLang = 'hallaholdings';
502    } else if (userLang == 'cn') {
503      currLang = 'hallaholdings';
504    }
505
506    myWindow.document.write('<html><head><title>'+currLang+'</title>');
507	myWindow.document.write('<link rel="stylesheet" href="/web/css/reset.css" type="text/css" />');
508	myWindow.document.write('<link rel="stylesheet" href="/web/css/common.css" type="text/css" />');
509    myWindow.document.write('<link rel="stylesheet" href="/web/css/style.css" type="text/css" />');
510    myWindow.document.write('</head><body>');
511    myWindow.document.write(data);
512    myWindow.document.write('</body></html>');
513    myWindow.document.close();
514    myWindow.onload=function(){
515        myWindow.focus();
516        myWindow.print();
517        myWindow.close();
518    };
519
520}
521
522
523
524

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.