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.