PageSourceSearch

https://www.kt.com/js/v2/main/ui_new.js?ver=4.1

js kt.com collected 2026-09-24 08:26:37 UTC 22,417 bytes, 526 lines download raw bytes

1/* 
2   KT.com version 1.0
3  
4   Copyright ⓒ 2017 kt corp. All rights reserved.
5   
6   This is a proprietary software of kt corp, and you may not use this file except in 
7   compliance with license agreement with kt corp. Any redistribution or use of this 
8   software, with or without modification shall be strictly prohibited without prior written 
9   approval of kt corp, and the copyright notice above does not evidence any actual or 
10   intended publication of such software. 
11*/
12var ui = {};
13ui.MAIN = function( elem ){
14	var $el = $j(elem);
15
16	this.events = {
17		_init: function(){
18
19		},
20	}
21}
22
23// bxSlider 옵션
24var bxSlider_options = {
25	pager: false, 			//현재 위치 페이징 표시 여부
26	infiniteLoop: true, 	//true-맨마지막 'next' 클릭시 처음으로
27	startSlide: 0, 			//시작 슬라이드 번호
28	randomStart: false, 	//랜덤 슬라이드 사용 여부
29	auto: false,			//자동 실행 여부(?)
30	autoStart: false,		//로드될때 자동 실행 여부
31	autoControls: false, 	//재생, 정지버튼
32	controls: false,		//이전,다음 버튼 노출 여부
33	stopAutoOnClick: true, 	//버튼 클릭시 정지 여부
34	autoHover: false, 		//마우스 오버시 정지 여부(자동롤링시만 적용됨)
35	touchEnabled : false, 	//true-슬라이더가 터치 스와이프 전환을 허용 하는 경우
36	ariaLive : false, 		//스크린리더에서 슬라이딩 배너를 먼저 읽어서 이용자에게 불편을 주는 경우가 있어서 사용
37	useCSS: true			//false-jquery animate(), true-수평 및 수직 슬라이드 애니메이션 사용(?)
38}
39
40// 빅배너
41var top_slider, top_count = 0;
42ui.MAIN.top = function(type){
43	var contsCnt = $j(".top-swiper > li").not('.bx-clone').length;
44	var randomStart = ($j('.top-swiper').data('ranyn') == "Y") ? true : false;
45	var autoStart = ($j('.top-swiper').data('rolling') == "Y") ? true : false;
46
47	var top_slider_startSlide = function(){
48		var ret = 0;
49		$j('.top-swiper > li').not('.bx-clone').each(function(index, item){
50			if($j(this).hasClass('rndCicYn')){
51				ret = index;
52			}
53		});
54	
55		return ret;
56	}
57	
58	var options = $j.extend({}, bxSlider_options, {
59		pager: (contsCnt > 1) ? true : false,
60		pagerType: 'short',//20260804
61		startSlide: top_slider_startSlide(), //시작 슬라이드 번호
62		randomStart: randomStart, //랜덤슬라이드
63		auto: true, //자동 실행 여부
64		autoStart: autoStart, //로드될때 자동 실행 여부
65		autoControls: (contsCnt > 1) ? true : false, //재생, 정지버튼
66		controls: (contsCnt > 1) ? true : false,
67		onSliderLoad: function(currentIndex){
68			//컨트롤 영역을 배너 앞으로 옮김
69			$j(".key-visual .bx-controls" ).insertBefore( $j( ".key-visual .bx-viewport" ) );
70
71			//인디케이터를 정지/재생 앞으로 옮김 
72			$j(".key-visual .bx-pager.bx-default-pager" ).insertBefore( $j( ".key-visual .bx-controls-auto" ) );
73
74			//포커스가 있을 때 멈춤
75			$j('.key-visual').find('a, area, button').not('.bx-stop, .bx-start').on('focus', function () {
76				top_slider.stopAuto();
77				$j(".key-visual").find(".bx-start").removeClass("active").parent(".bx-controls-auto-item").show().siblings(".bx-controls-auto-item").hide().find(".bx-stop").addClass("active");//0812
78			});
79
80			//0709 재생/정지 버튼 클릭시 포커스 이동 
81			$j('.key-visual').find('.bx-stop, .bx-start').click(function() {
82				$j(this).parent(".bx-controls-auto-item").hide().siblings().show().children("a").css("display","inline-block").focus();
83			});
84
85			//마우스 오버시 있을 때 멈춤
86			$j('.key-visual .bx-viewport').find('a, area, button').on('mouseenter', function () {
87				top_slider.stopAuto();
88				$j(".key-visual").find(".bx-start").removeClass("active").parent(".bx-controls-auto-item").show().siblings(".bx-controls-auto-item").hide().find(".bx-stop").addClass("active");//0812
89			});
90
91			//좌측이동
92			$j(".key-visual .bx-prev").on('click', function(e){
93				kt_common.linkInfo('main', 'click', null, {statInfo:'마케팅배너^컨트롤버튼_좌측이동'}); //클릭통계
94			});
95
96			//우측이동
97			$j(".key-visual .bx-next").on('click', function(e){
98				kt_common.linkInfo('main', 'click', null, {statInfo:'마케팅배너^컨트롤버튼_우측이동'}); //클릭통계
99			});
100
101			//play버튼
102			$j(".key-visual .bx-start").on('click', function(e){
103				kt_common.linkInfo('main', 'click', null, {statInfo:'마케팅배너^컨트롤버튼_Play버튼'}); //클릭통계
104			});
105
106			//stop버튼
107			$j(".key-visual .bx-stop").on('click', function(e){
108				kt_common.linkInfo('main', 'click', null, {statInfo:'마케팅배너^컨트롤버튼_Stop버튼'}); //클릭통계
109			});
110
111			// 0723 활성화된 영역 외 다른 영역에 포커스 이동하지 않도록 tabindex=-1 속성 추가
112			//$j('.key-visual .bxslider').find('a, area, button').attr('tabindex', '-1');
113			$j('.key-visual .bxslider').find('a,  button').attr('tabindex', '-1');
114			//$j('.key-visual .bxslider li').eq(currentIndex + 1).find('a, area, button').attr('tabindex', '');
115			$j('.key-visual .bxslider li').eq(currentIndex + 1).find('a, button').attr('tabindex', '');
116
117			// 2022 WAC_ER_케이티닷컴_개인_1st : 배너의 area 속성에 위치값 부여
118			$j(".key-visual .banner-img area").each(function() {
119				var thsTop = $j(this).attr("coords");
120				thsTop = thsTop.split(",")[1];
121				$j(this).css("top", thsTop + "px");
122			});
123
124			// 0818 수정 : 첫번째 배너가 white면 다크모드 적용 20260630 수정. 온마시배너에 banwrap_v2가 없는 경우 예외 추가  
125			let $currentBanwrap = $j('.key-visual .bxslider li').eq(currentIndex + 1).find('.banwrap_v2');	
126			if ($currentBanwrap.length === 0 || $currentBanwrap.hasClass('white')) {
127				$j(".key-visual").removeClass("darkmode");
128			} else {
129				$j(".key-visual").addClass("darkmode");
130			}
131		},
132		onSlideAfter: function($slideElement, oldIndex, newIndex){// 20260630 수정
133			// 0723 활성화된 영역 외 다른 영역에 포커스 이동하지 않도록 tabindex=-1 속성 추가
134			//$j('.key-visual .bxslider').find('a, area, button').attr('tabindex', '-1');
135			$j('.key-visual .bxslider').find('a, button').attr('tabindex', '-1');
136			//$j('.key-visual .bxslider li').eq(newIndex + 1).find('a, area, button').attr('tabindex', '');
137			$j('.key-visual .bxslider li').eq(newIndex + 1).find('a, button').attr('tabindex', '');
138			
139			// 현재 배너가 white면 다크모드 적용 20260630 수정 
140			let thsMode = $slideElement.find('.banwrap_v2').hasClass('white');
141			if (!thsMode) {
142				$j(".key-visual").addClass("darkmode");
143			} else {
144				$j(".key-visual").removeClass("darkmode");
145			}
146		}
147	});
148	
149	if(top_slider != undefined && type == 'reload'){
150		top_slider.destroySlider();
151		top_slider.reloadSlider($j.extend({}, options, {
152			pager: true,
153			startSlide: top_slider_startSlide(), //시작 슬라이드 번호
154		}));
155
156		//정상 로드가 아닌경우
157		if(top_count < 10 && contsCnt > top_slider.getSlideCount()){			
158			top_count += 1;
159			setTimeout(function(){ ui.MAIN.top('reload'); }, 300);
160		}
161	}else{
162		top_slider = $j(".key-visual > ul").bxSlider(options);
163	}
164	//top_slider = $j(".key-visual > ul").bxSlider(options);
165}
166
167// 인기급상승
168var hit_slider;
169ui.MAIN.hit = function(){
170	var contsCnt = $j(".hit-swiper > li").not('.bx-clone').length;
171	var autoStart = ($j('.hit-swiper').data('rolling') == "Y") ? true : false;
172	var options = $j.extend({}, bxSlider_options, {
173		pager: (contsCnt > 1) ? true : false,
174		pagerType: 'short',
175		slideMargin: 16, //20260630 간격부여	
176		auto: true, //자동 실행 여부
177		autoStart: autoStart, //로드될때 자동 실행 여부
178		autoControls: (contsCnt > 1) ? true : false, //재생, 정지버튼
179		controls: (contsCnt > 1) ? true : false,
180		onSliderLoad: function(currentIndex){
181			//컨트롤 영역을 배너 앞으로 옮김
182			$j(".hot-visual-list .bx-controls" ).insertBefore( $j( ".hot-visual-list .bx-viewport" ) );
183
184			//포커스가 있을 때 멈춤
185			$j('.hot-visual-list').find('a, area, button').not('.bx-stop, .bx-start').on('focus', function () {
186				hit_slider.stopAuto();
187			});
188
189			//0709 재생/정지 버튼 클릭시 포커스 이동 
190			$j('.hot-visual-list').find('.bx-stop, .bx-start').click(function() {
191				$j(this).parent(".bx-controls-auto-item").hide().siblings().show().children("a").css("display","inline-block").focus();
192			});
193
194			//마우스 오버시 있을 때 멈춤
195			$j('.hot-visual-list .bx-viewport').find('a, area, button').on('mouseenter', function () {
196				hit_slider.stopAuto();
197			});
198
199			//좌측이동
200			$j(".hot-visual-list .bx-prev").on('click', function(e){
201				kt_common.linkInfo('main', 'click', null, {statInfo:'인기급상승^컨트롤버튼_좌측이동'});
202			});
203
204			//우측이동
205			$j(".hot-visual-list .bx-next").on('click', function(e){
206				kt_common.linkInfo('main', 'click', null, {statInfo:'인기급상승^컨트롤버튼_우측이동'});
207			});
208
209			//play버튼
210			$j(".hot-visual-list .bx-start").on('click', function(e){
211				kt_common.linkInfo('main', 'click', null, {statInfo:'인기급상승^컨트롤버튼_Play버튼'});
212			});
213
214			//stop버튼
215			$j(".hot-visual-list .bx-stop").on('click', function(e){
216				kt_common.linkInfo('main', 'click', null, {statInfo:'인기급상승^컨트롤버튼_Stop버튼'});
217			});
218
219			// 0723 활성화된 영역 외 다른 영역에 포커스 이동하지 않도록 tabindex=-1 속성 추가
220			$j('.hot-visual-list .bxslider').find('a, area, button').attr('tabindex', '-1');
221			$j('.hot-visual-list .bxslider li').eq(currentIndex + 1).find('a, area, button').attr('tabindex', '');
222		},
223		onSlideAfter: function($slideElement, oldIndex, newIndex){
224			// 0723 활성화된 영역 외 다른 영역에 포커스 이동하지 않도록 tabindex=-1 속성 추가
225			$j('.hot-visual-list .bxslider').find('a, area, button').attr('tabindex', '-1');
226			$j('.hot-visual-list .bxslider li').eq(newIndex + 1).find('a, area, button').attr('tabindex', '');
227		}
228	});
229
230	hit_slider = $j(".hot-visual-list .bxslider").bxSlider(options);
231}
232
233// 핫딜
234var hotdeal_slider;
235ui.MAIN.hotdeal = function(){
236	var contsCnt = $j(".hotdeal-swiper > li").not('.bx-clone').length;
237	var options = $j.extend({}, bxSlider_options, {		
238		mode: 'fade',
239		pager: true,
240		pagerCustom: ".hotdeal-swiper-pager",
241		controls: (contsCnt > 3) ? true : false,
242		hideControlOnEnd : true,
243		infiniteLoop: false,
244		onSliderLoad: function(currentIndex){
245			//컨트롤 영역을 배너 앞으로 옮김
246			$j( ".hotdeal-visual .bx-controls" ).insertBefore( $j( ".hotdeal-visual .bx-viewport" ) );
247
248			//포커스가 있을 때 멈춤
249			$j('.hotdeal-visual').find('a, area, button').on('focus', function () {
250				hotdeal_slider.stopAuto();
251				
252			});
253
254			//0611 이전 버튼 비활성화
255			$j('.hotdeal-visual .bx-prev').addClass('disabled');
256
257			var indexLength = $j('.hotdeal-swiper-pager a').length;
258			var wrapWdth = indexLength * 364;//인디케이터와 여백의 크기가 364
259			$j('.hotdeal-swiper-pager .swiper-slide').width(wrapWdth);
260
261			//0611 coming soon 영역 추가 
262			if (indexLength == 1)			{
263				$j('<span class="hotdeal-coming-soon"><em class="hidetxt">coming soon</em></span><span class="hotdeal-coming-soon"><em class="hidetxt">coming soon</em></span>').appendTo('.hotdeal-swiper-pager .swiper-slide');
264			} else if (indexLength == 2)			{
265				$j('<span class="hotdeal-coming-soon"><em class="hidetxt">coming soon</em></span>').appendTo('.hotdeal-swiper-pager .swiper-slide');
266			} else {
267			
268			}
269
270			//선택됨 표시 - 웹접근성
271			$j('.hotdeal-swiper-pager a').eq(0).attr('title','선택됨').addClass('active');
272
273			//좌측이동
274			$j(".hotdeal-visual .bx-prev").on('click', function(e){
275				kt_common.linkInfo('main', 'click', null, {statInfo:'핫딜^컨트롤버튼_좌측이동'});
276			});
277
278			//우측이동
279			$j(".hotdeal-visual .bx-next").on('click', function(e){
280				kt_common.linkInfo('main', 'click', null, {statInfo:'핫딜^컨트롤버튼_우측이동'});
281			});
282		},onSlideAfter: function($slideElement, oldIndex, newIndex){
283			// 선택된 인디케이터에 선택됨 표시
284			$j('.hotdeal-swiper-pager a').attr('title','').removeClass('active');
285			$j('.hotdeal-swiper-pager a').eq(newIndex).attr('title','선택됨').addClass('active');
286
287			//0611 추가
288			if ($j(".hotdeal-visual .bxslider > li").length > 3)			{
289				var indexLength = $j('.hotdeal-swiper-pager a').length;
290				var wrapWdth = indexLength * 368 - 25;//인디케이터와 여백의 크기가 368. 배너 크기는 343 
291				var newScrollLeft = (newIndex - 1) * 368;
292				if (newIndex == 0) {//첫번째 배너 
293					$j('.hotdeal-swiper-pager').animate({scrollLeft: 0}, 400);
294					$j('.hotdeal-visual .bx-prev').addClass('disabled').removeAttr('href');
295				} else if (newIndex == 1) {//두번째 배너 - 선택자만 이동하고 스크롤은 초기값
296					$j('.hotdeal-swiper-pager').animate({scrollLeft: 0}, 400);
297				} else if (newIndex == indexLength-1) {//마지막 배너 - 이전 스크롤에서 이동하지 않음 
298					$j('.hotdeal-swiper-pager').addClass('scrollEnd');
299					$j('.hotdeal-visual .bx-next').addClass('disabled').removeAttr('href');
300				} else {
301					$j('.hotdeal-swiper-pager').animate({scrollLeft: newScrollLeft}, 400).removeClass('scrollEnd');
302					$j('.hotdeal-visual .bx-prev , .hotdeal-visual .bx-next').removeClass('disabled').attr('href','#none');
303				}
304			}
305		}
306	});
307
308	hotdeal_slider = $j(".hotdeal-visual .bxslider").bxSlider(options);
309}
310
311// KT Shop
312var shop_slider;
313ui.MAIN.shop = function(){
314	var contsCnt = $j(".shop-slider > li").not('.bx-clone').length;
315	var autoStart = ($j('.shop-slider').data('rolling') == "Y") ? true : false;
316	var options = $j.extend({}, bxSlider_options, {		
317		pager: (contsCnt > 1) ? true : false,	
318		pagerType: 'short',	
319		auto: true, //자동 실행 여부
320		autoStart: autoStart, //로드될때 자동 실행 여부
321		autoControls: (contsCnt > 1) ? true : false, //재생, 정지버튼
322		controls: (contsCnt > 1) ? true : false,
323		onSliderLoad: function(currentIndex){
324			//컨트롤 영역을 배너 앞으로 옮김
325			$j(".shop-area .bx-controls" ).insertBefore( $j( ".shop-area .bx-viewport" ) );
326
327			//포커스가 있을 때 멈춤
328			$j('.shop-area').find('a, area, button').not('.bx-stop, .bx-start').on('focus', function () {
329				shop_slider.stopAuto();
330				$j(".shop-area").find(".bx-start").removeClass("active").parent(".bx-controls-auto-item").show().siblings(".bx-controls-auto-item").hide().find(".bx-stop").addClass("active");//0812
331			});
332
333			//0709 재생/정지 버튼 클릭시 포커스 이동 
334			$j('.shop-area').find('.bx-stop, .bx-start').click(function() {
335				$j(this).parent(".bx-controls-auto-item").hide().siblings().show().children("a").css("display","inline-block").focus();
336			});
337
338			//마우스 오버시 있을 때 멈춤
339			$j('.shop-area .bx-viewport').find('a, area, button').on('mouseenter', function () {
340				//0720 shop_slider.stopAuto();
341			});
342
343			//좌측이동
344			$j(".shop-area .bx-prev").on('click', function(e){
345				kt_common.linkInfo('main', 'click', null, {statInfo:'Shop^컨트롤버튼_좌측이동'});
346			});
347
348			//우측이동
349			$j(".shop-area .bx-next").on('click', function(e){
350				kt_common.linkInfo('main', 'click', null, {statInfo:'Shop^컨트롤버튼_우측이동'});
351			});
352
353			//play버튼
354			$j(".shop-area .bx-start").on('click', function(e){
355				kt_common.linkInfo('main', 'click', null, {statInfo:'Shop^컨트롤버튼_Play버튼'});
356			});
357
358			//stop버튼
359			$j(".shop-area .bx-stop").on('click', function(e){
360				kt_common.linkInfo('main', 'click', null, {statInfo:'Shop^컨트롤버튼_Stop버튼'});
361			});
362
363			// 0723 활성화된 영역 외 다른 영역에 포커스 이동하지 않도록 tabindex=-1 속성 추가
364			$j('.shop-slider').find('a, area, button').attr('tabindex', '-1');
365			$j('.shop-slider li').eq(currentIndex + 1).find('a, area, button').attr('tabindex', '');
366
367			// 첫번째 배너가 white면 다크모드 적용 20260630 수정 //0820 추가수정
368			let $currentBanwrap = $j('.shop-slider .bxslider li').eq(currentIndex + 1).find('.banwrap_v2');	
369			if ($currentBanwrap.length === 0 || $currentBanwrap.hasClass('white')) {
370				$j(".shop-area").removeClass("darkmode");
371			} else {
372				$j(".shop-area").addClass("darkmode");
373			}
374		},onSlideAfter: function($slideElement, oldIndex, newIndex){
375			// 0723 활성화된 영역 외 다른 영역에 포커스 이동하지 않도록 tabindex=-1 속성 추가
376			$j('.shop-slider').find('a, area, button').attr('tabindex', '-1');
377			$j('.shop-slider li').eq(newIndex + 1).find('a, area, button').attr('tabindex', '');
378
379			// 현재 배너가 white면 다크모드 적용 20260630 수정 //0820 추가수정 			
380			let $thsBanwrap = $slideElement.find('.banwrap_v2');	
381			if ($thsBanwrap.length === 0 || $thsBanwrap.hasClass('white')) {
382				$j(".shop-area").removeClass("darkmode");
383			} else {
384				$j(".shop-area").addClass("darkmode");
385			}
386		}
387	});
388
389	shop_slider = $j(".shop-slider").bxSlider(options);
390}
391
392// 이벤트 
393var event_slider;
394ui.MAIN.event = function(){	
395	var contsCnt = $j(".event-list > li").not('.bx-clone').length;
396	var options = $j.extend({}, bxSlider_options, {		
397		pager: (contsCnt > 4) ? true : false,	//0814
398		pagerType: 'short',	
399		controls: (contsCnt > 4) ? true : false,	//0814	
400		maxSlides: 3,
401		minSlides: 3,
402		moveSlides: 3,
403		slideWidth: 1080,		
404		onSliderLoad: function(currentIndex){
405			//컨트롤 영역을 배너 앞으로 옮김
406			$j( ".event-area .bx-controls" ).insertBefore( $j( ".event-area .bx-viewport" ) );
407
408			//포커스가 있을 때 멈춤
409			$j('.event-area').find('a, area, button').not('.bx-stop, .bx-start').on('focus', function () {
410				event_slider.stopAuto();
411			});
412
413			//좌측이동
414			$j(".event-area .bx-prev").on('click', function(e){
415				kt_common.linkInfo('main', 'click', null, {statInfo:'이벤트^컨트롤버튼_좌측이동'});
416			});
417
418			//우측이동
419			$j(".event-area .bx-next").on('click', function(e){
420				kt_common.linkInfo('main', 'click', null, {statInfo:'이벤트^컨트롤버튼_우측이동'});
421			});
422
423			// 0723 활성화된 영역 외 다른 영역에 포커스 이동하지 않도록 tabindex=-1 속성 추가
424			$j('.event-list li').find('a, area, button').attr('tabindex', '-1');
425			$j('.event-list li:not(".bx-clone"):lt(3)').find('a, area, button').attr('tabindex', '');
426		},
427		onSlideAfter: function($slideElement, oldIndex, newIndex){
428			// 0723 활성화된 영역 외 다른 영역에 포커스 이동하지 않도록 tabindex=-1 속성 추가
429			$j('.event-list li').find('a, area, button').attr('tabindex', '-1');
430			for (i = 3 * newIndex; i < 3 * newIndex + 3; i++)			{
431				$j('.event-list li:not(".bx-clone")').eq(i).find('a, area, button').attr('tabindex', '');
432			}	
433		}
434	});
435
436	event_slider = $j(".event-list").bxSlider(options);
437}
438
439// 고객지원
440ui.MAIN.cs = function(){
441	$j('.mrs-tab').find('a[href*="#trigger"]').on('click', function (e) {
442		e.preventDefault();
443		var self = $j(this);
444		var target = $j($j(this).attr("href"));
445		$j('.mrs-tab').find('li').removeClass('active');
446		$j('.mrs-tab').find('a').removeAttr('title');
447		self.parent('li').addClass('active');
448		self.attr('title', '현재 선택됨');
449		$j('.mrs-contents > li').hide();
450		target.show();
451	});
452}
453
454// 기본영역
455ui.MAIN.base = function(target){
456	var base_slider; 
457	var contsCnt = target.find('.basesection-slider > li').not('.bx-clone').length;
458	var options = $j.extend({}, bxSlider_options, {			
459		pager: (contsCnt > 1) ? true : false,
460		pagerType: 'short',
461		controls: (contsCnt > 1) ? true : false,
462		onSliderLoad: function(currentIndex){
463			//컨트롤 영역을 배너 앞으로 옮김
464			target.find('.bx-controls').insertBefore(target.find('.bx-viewport'));
465
466			//포커스가 있을 때 멈춤
467			target.find('a, area, button').not('.bx-stop, .bx-start').on('focus', function () {
468				base_slider.stopAuto();
469			});
470
471			//클릭통계
472			var data = target.data();				
473			target.find('.bx-prev').on('click', function(e){ //좌측이동
474				kt_common.linkInfo('main', 'click', null, {statInfo: data.areaNm +'^컨트롤버튼_좌측이동'});
475			});				
476			target.find('.bx-next').on('click', function(e){ //우측이동
477				kt_common.linkInfo('main', 'click', null, {statInfo: data.areaNm +'^컨트롤버튼_우측이동'});
478			});
479
480			// 0723 활성화된 영역 외 다른 영역에 포커스 이동하지 않도록 tabindex=-1 속성 추가
481			$j('.basesection-slider').find('a, area, button').attr('tabindex', '-1');
482			$j('.basesection-slider li').eq(currentIndex + 1).find('a, area, button').attr('tabindex', '');
483		},
484		onSlideAfter: function($slideElement, oldIndex, newIndex){
485			// 0723 활성화된 영역 외 다른 영역에 포커스 이동하지 않도록 tabindex=-1 속성 추가
486			$j('.basesection-slider').find('a, area, button').attr('tabindex', '-1');
487			$j('.basesection-slider li').eq(newIndex + 1).find('a, area, button').attr('tabindex', '');
488		}
489	});
490
491	base_slider = target.find(".basesection-slider").bxSlider(options);
492}
493
494// 20260630인기 휴대폰 열기 버튼 : 0813 원복
495var hotprod_stt = true; 
496ui.MAIN.hotprod = function(){
497	$j((".section-hot-product-list")).find(".box-txt.type1, .prod-price-info").hide();//0812 vos 1187200 : 초점 미이동되도록 수정 
498	$j('.hot-product-btn').on('click', function () {
499		var self = $j(this);
500		var target = self.closest(".section-hot-product-list");
501		if (hotprod_stt) {//닫힌 상태 
502			$j((".section-hot-product-list")).find(".box-txt.type1, .prod-price-info").show();//0812 vos 1187200 : 초점 이동되도록 수정 
503			self.find('span').text('단말 정보 닫기');//0812 vos 1187201 
504			$j('.hot-product-btn').find('span').text('단말 정보 닫기');//0812 vos 1187206  	
505			setTimeout(function(){
506				target.addClass("list-open");	
507			}, 200);				
508			hotprod_stt = false; 
509		} else {
510			target.removeClass("list-open");
511			self.find('span').text('단말 정보 열기');//0812 vos 1187201 
512			$j('.hot-product-btn').find('span').text('단말 정보 열기');//0812 vos 1187206  
513			setTimeout(function(){				
514				$j((".section-hot-product-list")).find(".box-txt.type1, .prod-price-info").hide();//0812 vos 1187200 : 초점 미이동되도록 수정 
515			}, 500);				
516			hotprod_stt = true; 
517		}
518	});
519}
520
521// 페이지 로드/리로드될 때 최상단으로 이동
522if ('scrollRestoration' in history) {
523  history.scrollRestoration = 'manual';
524}
525
526window.scrollTo(0, 0);

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.