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