1$(function(){ 2 if($(".menuCategory > li").length==0){ 3 $(".menuCategory").hide(); 4 }; 5}); 6/** 7 * ì¡°ê±´ë³ ê²ì ê¸°ë¥ ì¤í¬ë¦½í¸ 8 */ 9$(function() 10{ 11 var sParentElement = 'select.SecondSelect'; 12 $('select.FirstSelect').on('change', function() 13 { 14 var iGroupNo = $(this).find('option:selected').val(); 15 if (iGroupNo > 0) { 16 $.ajax({ 17 url : '/product/provider/selectsearch.xml?GroupNo=' + iGroupNo, 18 dataType : 'text', 19 success : function(data){ 20 if ( window.DOMParser ) { 21 tmp = new DOMParser(); 22 xml = tmp.parseFromString( data , "text/xml" ); 23 } else { 24 xml = new ActiveXObject( "Microsoft.XMLDOM" ); 25 xml.async = "false"; 26 xml.loadXML( data ); 27 } 28 29 $(sParentElement).html(''); 30 getOptionElement('','-ì¸ë¶í목ì í-').appendTo(sParentElement); 31 var nodes = $(xml).find('searchkey'); 32 for ( var x = 0 ; x < nodes.length ; x++) { 33 getOptionElement($(nodes[x]).find('search_value').text(),$(nodes[x]).find('search_value').text()).appendTo(sParentElement); 34 } 35 } 36 }); 37 } 38 }); 39 $('a.SelectSearch').on('click', function() 40 { 41 var sGroup = $('select.FirstSelect').val(); 42 var sItem = $('select.SecondSelect').val(); 43 if (!sGroup) { 44 alert('ì¡°ê±´ì ì íí´ ì£¼ì¸ì.'); 45 return false; 46 } 47 if (!sItem) { 48 alert('ì¸ë¶ í목ì ì íí´ ì£¼ì¸ì.'); 49 return false; 50 } 51 location.href = document.location.href.split('?')[0].split(document.domain)[1] + '?' + sSSUrl + '&sGroup=' + sGroup + '&sItem=' + sItem; 52 }); 53 54 function getOptionElement(sVal, sTitle) 55 { 56 return $("<option value='" + sVal + "'>" + sTitle + "</option>"); 57 } 58}); 59EC$(function($) { 60 //í ì¸ì¨í기 61 discount(); 62 function discount(){ 63 //ìíëª©ë¡ 64 $('.prdList').each(function(){ 65 $(this).find('> li').each(function(){ 66 var price1 = String($(this).find('.description').attr('ec-data-custom')).replace(/\,/g, '').replace('ì', ''); //ìë¹ìê° 67 var price2 = String($(this).find('.description').attr('ec-data-price')).replace(/\,/g, '').replace('ì', ''); //íë§¤ê° 68 var price2 = price2.split(' '); //í매ê°ì°¸ì¡°íí êµ¬ë¶ 69 if (!isNaN(price1) && !isNaN(price2[0])) { 70 discountRate = Math.round((price1 - price2[0]) / price1 * 100); 71 if(discountRate > 0 && discountRate != 100 && ($(this).find('.ec-sale-rate').length < 1)){ 72 $(this).find('.displayí매ê°').append('<div class="ec-sale-rate">'+discountRate+'%</div>'); 73 } 74 } 75 }); 76 }); 77 } 78 79 if($('.xans-product-detaildesign').length){ 80 discount2(); 81 function discount2(){ 82 //ìíìì¸,íë보기(íì ) 83 var price1 = String($('.xans-product-detail #span_product_price_custom').text()).replace(/\,/g, '').replace('ì', ''); //ìë¹ìê° 84 var price2 = String($('.xans-product-detail #span_product_price_text').text()).replace(/\,/g, '').replace('ì', ''); //íë§¤ê° 85 var price2 = price2.split(' '); //í매ê°ì°¸ì¡°íí êµ¬ë¶ 86 if (!isNaN(price1) && !isNaN(price2[0])) { 87 discountRate = Math.round((price1 - price2[0]) / price1 * 100); 88 if(discountRate > 0 && discountRate != 100 && ($(this).find('.ec-sale-rate').length < 1)){ 89 $('.xans-product-detail #span_product_price_text').append('<span class="ec-sale-rate">'+discountRate+'%</span>'); 90 } 91 } 92 } 93 } 94}); 95/* ê°ë¡ ì¹´í ê³ ë¦¬ ì¤í¬ë¡¤ ê³ ì */ 96$(document).ready(function(){ 97 var top_btn = $("#menuFix").offset().top; 98 $(window).scroll(function(){ 99 if($(window).scrollTop() > top_btn+50) { 100 $('#menuFix').addClass('menuFix_fixed'); 101 } 102 else { 103 $('#menuFix').removeClass('menuFix_fixed'); 104 } 105 }); 106}); 107 108/* ì¹´í ê³ ë¦¬ */ 109$(document).ready(function(){ 110 //console.log('allcate'); 111 112 //category 113 var aCategory = {}; 114 function get() { 115 $.ajax({ 116 url : '/exec/front/Product/SubCategory', 117 dataType: 'json', 118 success: function(_aCategory) { 119 $(_aCategory).each(function() { 120 if (!aCategory[this.parent_cate_no]) { 121 aCategory[this.parent_cate_no] = []; 122 } 123 aCategory[this.parent_cate_no].push(this); 124 }); 125 draw(); 126 } 127 }); 128 } 129 function draw() { 130 var _iCateNo = 0; 131 var _aTmp = []; 132 $('#categoryMenu .menu-dp1 > li > a').each(function() { 133 _aTmp = $(this).attr('href').split('?cate_no='); 134 _iCateNo = _aTmp[1]; 135 if(!aCategory[_iCateNo]) { 136 return; 137 } 138 var aHtml = []; 139 aHtml.push('<ul class="menu-dp2">'); 140 for(var i=0; i<aCategory[_iCateNo].length; i++) { 141 aHtml.push('<li><a href="/product/list.html'+aCategory[_iCateNo][i].param+'">'+aCategory[_iCateNo][i].name+'</a></li>'); 142 } 143 aHtml.push('</ul>'); 144 $(this).parent('.menu-dp1 > li').append(aHtml.join('')); 145 146 $(this).siblings('.menu-dp2').find(' > li > a').each(function() { 147 _aTmp = $(this).attr('href').split('?cate_no='); 148 _iCateNo = _aTmp[1]; 149 if(!aCategory[_iCateNo]) { 150 return; 151 } 152 var aHtml = []; 153 aHtml.push('<ul class="menu-dp3">'); 154 for(var i=0; i<aCategory[_iCateNo].length; i++) { 155 aHtml.push('<li><a href="/product/list.html'+aCategory[_iCateNo][i].param+'">'+aCategory[_iCateNo][i].name+'</a></li>'); 156 } 157 aHtml.push('</ul>'); 158 $(this).parent('li').append(aHtml.join('')); 159 160 $(this).siblings('.menu-dp3').find(' > li > a').each(function() { 161 _aTmp = $(this).attr('href').split('?cate_no='); 162 _iCateNo = _aTmp[1]; 163 if(!aCategory[_iCateNo]) { 164 return; 165 } 166 var aHtml = []; 167 aHtml.push('<ul class="menu-dp4">'); 168 for(var i=0; i<aCategory[_iCateNo].length; i++) { 169 aHtml.push('<li><a href="/product/list.html'+aCategory[_iCateNo][i].param+'">'+aCategory[_iCateNo][i].name+'</a></li>'); 170 } 171 aHtml.push('</ul>'); 172 $(this).parent('li').append(aHtml.join('')); 173 }); 174 }); 175 }); 176 } 177 get(); 178}); 179 180/* ë©ì¸ì¬ë¼ì´ë ì¬ì,ì ì§ */ 181$(document).ready(function(){ 182 var slide = 0; 183 184 $('.btns').click(function(){ 185 if(slide == 0) { 186 $('.btns').addClass('active'); 187 main_swiper.autoplay.stop(); 188 slide = 1; 189 } else { 190 $('.btns').removeClass('active'); 191 main_swiper.autoplay.start(); 192 slide = 0; 193 } 194 }); 195}); 196 197/* ì¤í¬ë¡¤ì ëíëë ì°ì¸¡ íë¨ë²í¼ */ 198$(document).ready(function(){ 199 $(window).scroll(function () { 200 if ($(this).scrollTop() > 10) { 201 $('.fixed_btn').fadeIn(); 202 } else { 203 $('.fixed_btn').fadeOut(); 204 } 205 }); 206 207 $(".btn.up").click(function(){ 208 return $("html, body").animate({scrollTop:0},1200,"easeInOutExpo"),!1}); 209 210 $(".btn.down").click(function(){ 211 return $("html, body").animate({scrollTop:$(document).height()},1200,"easeInOutExpo"),!1}); 212}); 213 214jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}}); 215/*! Respond.js v1.4.2: min/max-width media query polyfill 216 * Copyright 2014 Scott Jehl 217 * Licensed under MIT 218 * http://j.mp/respondjs */ 219/** 220 * ìì§ì´ë ë°°ë Jquery Plug-in 221 * @author cafe24 222 */ 223 224(function($){ 225 226 $.fn.floatBanner = function(options) { 227 options = $.extend({}, $.fn.floatBanner.defaults , options); 228 229 return this.each(function() { 230 var aPosition = $(this).position(); 231 var jbOffset = $(this).offset(); 232 var node = this; 233 234 $(window).on('scroll', function() { 235 var _top = $(document).scrollTop() + 120; 236 _top = (aPosition.top < _top) ? _top : aPosition.top; 237 238 setTimeout(function () { 239 var newinit = $(document).scrollTop(); 240 241 if ( newinit >
241 jbOffset.top ) { 242 _top -= jbOffset.top; 243 var container_height = $("#wrap").height(); 244 var quick_height = $(node).height(); 245 var cul = container_height - quick_height; 246 if(_top > cul){ 247 _top = cul; 248 } 249 } else { 250 _top = 0; 251 } 252 253 $(node).stop().animate({top: _top}, options.animate); 254 }, options.delay); 255 }); 256 }); 257 }; 258 259 $.fn.floatBanner.defaults = { 260 'animate' : 500, 261 'delay' : 500 262 }; 263 264})(jQuery); 265 266/** 267 * 문ì 구ëí ìì 268 */ 269$(function(){ 270 $('#banner:visible, #quick:visible').floatBanner(); 271 272 //placeholder 273 $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){ 274 var placeholderName = $(this).parents().attr('title'); 275 $(this).attr("placeholder", placeholderName); 276 }); 277 /* placeholder ie8, ie9 */ 278 $.fn.extend({ 279 placeholder : function() { 280 //IE 8 ë²ì ìë hasPlaceholderSupport() ê°ì´ false를 ë¦¬í´ 281 if (hasPlaceholderSupport() === true) { 282 return this; 283 } 284 //hasPlaceholderSupport() ê°ì´ false ì¼ ê²½ì° ìë ì½ë를 ì¤í 285 return this.each(function(){ 286 var findThis = $(this); 287 var sPlaceholder = findThis.attr('placeholder'); 288 if ( ! sPlaceholder) { 289 return; 290 } 291 findThis.wrap('<label class="ePlaceholder" />'); 292 var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : ''; 293 findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>'); 294 this.onpropertychange = function(e){ 295 e = event || e; 296 if (e.propertyName == 'value') { 297 $(this).trigger('focusout'); 298 } 299 }; 300 //ê³µíµ class 301 var agent = navigator.userAgent.toLowerCase(); 302 if (agent.indexOf("msie") != -1) { 303 $(".ePlaceholder").css({"position":"relative"}); 304 $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"}); 305 $(".ePlaceholder label").css({"padding":"0"}); 306 } 307 }); 308 } 309 }); 310 311 $(':input[placeholder]').placeholder(); //placeholder() í¨ì를 í¸ì¶ 312 313 //í´ë¦íë©´ placeholder ì¨ê¹ 314 $('body').on('click', '.ePlaceholder span', function(){ 315 $(this).hide(); 316 }); 317 318 //inputì°½ í¬ì»¤ì¤ ì¸ ì¼ë placeholder ì¨ê¹ 319 $('body').on('focusin', '.ePlaceholder :input', function(){ 320 $(this).prev('span').hide(); 321 }); 322 323 //inputì°½ í¬ì»¤ì¤ ìì ì¼ë value ê° true ì´ë©´ ì¨ê¹, false ì´ë©´ ë³´ì¬ì§ 324 $('body').on('focusout', '.ePlaceholder :input', function(){ 325 if (this.value) { 326 $(this).prev('span').hide(); 327 } else { 328 $(this).prev('span').show(); 329 } 330 }); 331 332 //inputì placeholderê° ì§ìì´ ëë©´ true를 ìëë©´ false를 리í´ê°ì¼ë¡ ëì ¸ì¤ 333 function hasPlaceholderSupport() { 334 if ('placeholder' in document.createElement('input')) { 335 return true; 336 } else { 337 return false; 338 } 339 } 340}); 341 342/** 343 * ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 344 */ 345$(window).on('load', function() { 346 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 347 var $img = new Image(); 348 $img.onerror = function () { 349 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 350 } 351 $img.src = this.src; 352 }); 353}); 354 355/** 356 * tooltip 357 */ 358$('.eTooltip').each(function(i){ 359 $(this).find('.btnClose').attr('tabIndex','-1'); 360}); 361//tooltip input focus 362$('.eTooltip').find('input').on('focus', function() { 363 var targetName = returnTagetName(this); 364 targetName.siblings('.ec-base-tooltip').show(); 365}); 366$('.eTooltip').find('input').on('focusout', function() { 367 var targetName = returnTagetName(this); 368 targetName.siblings('.ec-base-tooltip').hide(); 369}); 370function returnTagetName(_this){ 371 var ePlacename = $(_this).parent().attr("class"); 372 var targetName; 373 if(ePlacename == "ePlaceholder"){ //ePlaceholder ëì 374 targetName = $(_this).parents(); 375 }else{ 376 targetName = $(_this); 377 } 378 return targetName; 379} 380
381/** 382 * eTab 383 */ 384$("body").on("click", ".eTab a", function(e){ 385 // í´ë¦í li ì selected í´ëì¤ ì¶ê°, 기존 liì ìë selected í´ëì¤ë ìì . 386 var _li = $(this).parent("li").addClass("selected").siblings().removeClass("selected"), 387 _target = $(this).attr("href"), 388 _siblings = $(_target).attr("class"), 389 _arr = _siblings.split(" "), 390 _classSiblings = "."+_arr[0]; 391 392 //í´ë¦í íì í´ë¹íë ììë íì±í, 기존 ììë ë¹íì±í í¨. 393 $(_target).show().siblings(_classSiblings).hide(); 394 395 396 //preventDefault ë a íê·¸ ì²ë¼ í´ë¦ ì´ë²¤í¸ ì¸ì ë³ëì ë¸ë¼ì°ì íëì ë§ê¸° ìí´ ì¬ì©ë¨. 397 e.preventDefault(); 398}); 399 400 401 402//window popup script 403function winPop(url) { 404 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 405} 406/** 407 * document.location.href split 408 * return array Param 409 */ 410function getQueryString(sKey) 411{ 412 var sQueryString = document.location.search.substring(1); 413 var aParam = {}; 414 415 if (sQueryString) { 416 var aFields = sQueryString.split("&"); 417 var aField = []; 418 for (var i=0; i<aFields.length; i++) { 419 aField = aFields[i].split('='); 420 aParam[aField[0]] = aField[1]; 421 } 422 } 423 424 aParam.page = aParam.page ? aParam.page : 1; 425 return sKey ? aParam[sKey] : aParam; 426}; 427 428$(function(){ 429 // tab 430 $.eTab = function(ul){ 431 $(ul).find('a').on('click', function(){ 432 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 433 _target = $(this).attr('href'), 434 _siblings = '.' + $(_target).attr('class'); 435 $(_target).show().siblings(_siblings).hide(); 436 return false 437 }); 438 } 439 if ( window.call_eTab ) { 440 call_eTab(); 441 }; 442}); 443(function($){ 444 $.fn.extend({ 445 center: function() { 446 this.each(function() { 447 var 448 $this = $(this), 449 $w = $(window); 450 $this.css({ 451 position: "absolute", 452 top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px", 453 left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px" 454 }); 455 }); 456 return this; 457 } 458 }); 459 $(function() { 460 var $container = function(){/* 461 <div id="modalContainer"> 462 <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe> 463 </div>'); 464 */}.toString().slice(14,-3); 465 $('body') 466 .append($('<div id="modalBackpanel"></div>')) 467 .append($($container)); 468 function closeModal () { 469 $('#modalContainer').hide(); 470 $('#modalBackpanel').hide(); 471 } 472 $('#modalBackpanel').on('click',closeModal); 473 zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) { 474 var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup; 475 $('#modalContent').attr('src', $url); 476 $('#modalContent').on("load",function(){ 477 $(".header .close",this.contentWindow.document.body).on("click", closeModal); 478 }); 479 $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show(); 480 $('#modalContainer').center().show(); 481 } 482 }); 483})(jQuery); 484$(function(){ 485 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 486 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 487 var bShippingCountryProc = false; 488 489 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 490 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 491 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 492 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 493 } else { 494 $('.thumb .xans-layout-multishoplistitem').hide(); 495 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 496 if (typeof(aShippingCountryCode) != 'undefined' && aS
496hippingCountryCode != null && aShippingCountryCode.length > 2) { 497 var sShippingCountryValue = aShippingCountryCode[2]; 498 } 499 500 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 501 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 502 503 if (aHrefCountryValue.length == 2) { 504 var sShippingCountryValue = aHrefCountryValue[1]; 505 } 506 507 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 508 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 509 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 510 511 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 512 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 513 } 514 } 515 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 516 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 517 var bShippingCountryProc = true; 518 519 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 520 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 521 var expires = new Date(); 522 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 523 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 524 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 525 $("#f_country").val(sShippingCountryValue).change(); 526 } 527 } 528 } 529 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 530 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 531 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 532 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 533 } else { 534 $('.thumb .xans-layout-multishoplistitem').hide(); 535 } 536 537 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 538 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 539 $(".xans-layout-multishopshipping").hide(); 540 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 541 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 542 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 543 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 544 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 545 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 546 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 547 $(".xans-layout-multishopshipping").show(); 548 } 549 } 550 551 $(".xans-layout-multishopshipping .close").on("click", function() { 552 $(".xans-layout-multishopshipping").hide(); 553 }); 554 555 $(".xans-layout-multishopshipping .ec-base-button a").on("click", function() { 556 var expires = new Date(); 557 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 558 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 559 560 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°
560ì ëê¹ 561 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 562 563 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 564 }); 565 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").on("click", function() { 566 $(".xans-layout-multishopshipping").show(); 567 }); 568 } 569}); 570; 571(function(c) { 572 c.fn.DB_topFloating = function(d) { 573 var a = { 574 checkbox_id: "", 575 layer: "off", 576 openType: "slide", 577 openDelayTime: 500, 578 closeType: "slide", 579 //autoCloseTime: 9999999, 580 slideSpeed: 800, 581 day: 1, 582 bugHeight: 0 583 }; 584 c.extend(a, d); 585 return this.each(function() { 586 function d() { 587 b.slideDown(a.slideSpeed) 588 } 589 590 function e() { 591 0 == a.bugHeight ? b.slideUp(a.slideSpeed) : b.animate({ 592 "margin-top": -a.bugHeight 593 }, a.slideSpeed) 594 } 595 596 function f() { 597 g.bind("click", function() { 598 "slide" == a.closeType ? e() : b.hide(); 599 1 == h.checked && c.cookie("topBanner", "hide", { 600 path: "/", 601 expires: a.day 602 }) 603 }) 604 } 605 var b = c(this), 606 g = b.find(".top_closeBtn"), 607 h = a.checkbox_id; 608 "on" == a.layer ? b.css({ 609 position: "absolute" 610 }) : b.css({ 611 position: "relative" 612 }); 613 "none" == a.openType && b.show(); 614 "hide" == c.cookie("topBanner") ? b.hide() : ("slide" == a.openType && (b.hide(), setTimeout(d, a.openDelayTime)), setTimeout(e/*, a.autoCloseTime*/ + a.openDelayTime), f()) 615 }) 616 } 617})(jQuery); 618 619$('.topBanner').DB_topFloating({ 620 //checkbox_id:document.getElementById('topBanner_check'), 621 layer:"off", 622 openType:"none", 623 openDelayTime:300, 624 closeType:"slide", 625 //autoCloseTime: 9999999, 626 slideSpeed:500, 627 day:1, 628 bugHeight:0 629}); 630 631var navi_swiper = new Swiper('.swiperMenu', { 632 speed: 600, 633 slidesPerView: 'auto', 634 spaceBetween: 0, 635 freeMode: true, 636 centeredSlides: false, 637 watchOverflow: true, 638 navigation: { 639 nextEl: '.swiper-button-next-menu', 640 }, 641});
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.