1(function($){ 2 3 $.fn.scrollBanner = function(options) { 4 options = $.extend({}, $.fn.scrollBanner.defaults , options); 5 6 return this.each(function() { 7 var aPosition = $(this).position(); 8 var jbOffset = $(this).offset(); 9 var node = this; 10 11 $(window).on('scroll', function() { 12 var _top = $(document).scrollTop(); 13 var headerFix = $("#header.fixed"); /* ê³ ì í¤ë ìì¹ */ 14 if ( headerFix.length ) { 15 var headerFixH = headerFix.height()*2; 16 } else { 17 var headerFixH = 0; 18 } 19 _top = (aPosition.top < _top) ? _top : aPosition.top; 20 21 setTimeout(function () { 22 var newinit = $(document).scrollTop(); 23 24 if ( newinit > jbOffset.top ) { 25 _top -= jbOffset.top - aPosition.top - headerFixH; 26 var container_height = $("#wrap").height(); 27 var quick_height = $(node).height(); 28 var cul = container_height - quick_height; 29 if(_top > cul){ 30 _top = cul; 31 } 32 }else { 33 _top = aPosition.top; 34 } 35 36 $(node).stop().animate({top: _top}, options.animate); 37 }, options.delay); 38 }); 39 }); 40 }; 41 42 $.fn.scrollBanner.defaults = { 43 'animate' : 500, 44 'delay' : 500 45 }; 46 47})(jQuery); 48 49 50$(function(){ 51 $('.scroll-left:visible, .scroll-right:visible').scrollBanner(); 52}); 53 54/** 55 * ìì§ì´ë ë°°ë Jquery Plug-in 56 * @author cafe24 57 */ 58 59(function($){ 60 61 $.fn.floatBanner = function(options) { 62 options = $.extend({}, $.fn.floatBanner.defaults , options); 63 64 return this.each(function() { 65 var aPosition = $(this).position(); 66 var jbOffset = $(this).offset(); 67 var node = this; 68 69 $(window).on('scroll', function() { 70 var _top = $(document).scrollTop(); 71 _top = (aPosition.top < _top) ? _top : aPosition.top; 72 73 setTimeout(function () { 74 var newinit = $(document).scrollTop(); 75 76 if ( newinit > jbOffset.top ) { 77 _top -= jbOffset.top; 78 var container_height = $("#wrap").height(); 79 var quick_height = $(node).height(); 80 var cul = container_height - quick_height; 81 if(_top > cul){ 82 _top = cul; 83 } 84 } else { 85 _top = 0; 86 } 87 88 $(node).stop().animate({top: _top}, options.animate); 89 }, options.delay); 90 }); 91 }); 92 }; 93 94 $.fn.floatBanner.defaults = { 95 'animate' : 500, 96 'delay' : 500 97 }; 98 99})(jQuery); 100 101/** 102 * 문ì 구ëí ìì 103 */ 104$(function(){ 105 //$('#banner:visible, #quick:visible').floatBanner(); 106 107 //placeholder 108 $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){ 109 var placeholderName = $(this).parents().attr('title'); 110 $(this).attr("placeholder", placeholderName); 111 }); 112 /* placeholder ie8, ie9 */ 113 $.fn.extend({ 114 placeholder : function() { 115 //IE 8 ë²ì ìë hasPlaceholderSupport() ê°ì´ false를 ë¦¬í´ 116 if (hasPlaceholderSupport() === true) { 117 return this; 118 } 119 //hasPlaceholderSupport() ê°ì´ false ì¼ ê²½ì° ìë ì½ë를 ì¤í 120 return this.each(function(){ 121 var findThis = $(this); 122 var sPlaceholder = findThis.attr('placeholder'); 123 if ( ! sPlaceholder) { 124 return; 125 } 126 findThis.wrap('<label class="ePlaceholder" />'); 127 var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : ''; 128 findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>'); 129 this.onpropertychange = function(e){ 130 e = event || e; 131 if (e.propertyName == 'value') { 132 $(this).trigger('focusout'); 133 } 134 }; 135 //ê³µíµ class 136 var agent = navigator.userAgent.toLowerCase(); 137 if (agent.indexOf("msie") != -1) { 138 $(".ePlaceholder").css({"position":"relative"}); 139 $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"}); 140 $(".ePlaceholder label").css({"padding":"0"}); 141 } 142 }); 143 } 144 }); 145 146 $(':input[placeholder]').placeholder(); //placeholder() í¨ì를 í¸ì¶ 147 148 //í´ë¦íë©´ placeholder ì¨ê¹ 149 $('body').on('click', '.ePlaceholder span', function(){ 150 $(this).hide(); 151 }); 152 153 //inputì°½ í¬ì»¤ì¤ ì¸ ì¼ë placeholder ì¨ê¹ 154 $('body').on('focusin', '.ePlaceholder :input', function(){ 155 $(this).prev('span').hide(); 156 }); 157 158 //inputì°½ í¬ì»¤ì¤ ìì ì¼ë value ê° true ì´ë©´ ì¨ê¹, false ì´ë©´ ë³´ì¬ì§ 159 $('body').on('focusout', '.ePlaceholder :input', function(){ 160 if (this.value) { 161 $(this).prev('span').hide(); 162 } else { 163 $(this).prev('span').show(); 164 } 165 }); 166 167 //inputì placeholderê° ì§ìì´ ëë©´ true를 ìëë©´ false를 리í´ê°ì¼ë¡ ëì ¸ì¤ 168 function hasPlaceholderSupport() { 169 if ('placeholder' in document.createElement('input')) { 170 return true; 171 } else { 172 return false;
173 } 174 } 175}); 176 177/** 178 * ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 179 */ 180$(window).on('load', function() { 181 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 182 var $img = new Image(); 183 $img.onerror = function () { 184 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 185 } 186 $img.src = this.src; 187 }); 188}); 189 190/** 191 * tooltip 192 */ 193$('.eTooltip').each(function(i){ 194 $(this).find('.btnClose').attr('tabIndex','-1'); 195}); 196//tooltip input focus 197$('.eTooltip').find('input').on('focus', function() { 198 var targetName = returnTagetName(this); 199 targetName.siblings('.ec-base-tooltip').show(); 200}); 201$('.eTooltip').find('input').on('focusout', function() { 202 var targetName = returnTagetName(this); 203 targetName.siblings('.ec-base-tooltip').hide(); 204}); 205function returnTagetName(_this){ 206 var ePlacename = $(_this).parent().attr("class"); 207 var targetName; 208 if(ePlacename == "ePlaceholder"){ //ePlaceholder ëì 209 targetName = $(_this).parents(); 210 }else{ 211 targetName = $(_this); 212 } 213 return targetName; 214} 215 216/** 217 * eTab 218 */ 219$("body").on("click", ".eTab a", function(e){ 220 // í´ë¦í li ì selected í´ëì¤ ì¶ê°, 기존 liì ìë selected í´ëì¤ë ìì . 221 var _li = $(this).parent("li").addClass("selected").siblings().removeClass("selected"), 222 _target = $(this).attr("href"), 223 _siblings = $(_target).attr("class"), 224 _arr = _siblings.split(" "), 225 _classSiblings = "."+_arr[0]; 226 227 //í´ë¦í íì í´ë¹íë ììë íì±í, 기존 ììë ë¹íì±í í¨. 228 $(_target).show().siblings(_classSiblings).hide(); 229 230 231 //preventDefault ë a íê·¸ ì²ë¼ í´ë¦ ì´ë²¤í¸ ì¸ì ë³ëì ë¸ë¼ì°ì íëì ë§ê¸° ìí´ ì¬ì©ë¨. 232 e.preventDefault(); 233}); 234 235 236 237//window popup script 238function winPop(url) { 239 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 240} 241/** 242 * document.location.href split 243 * return array Param 244 */ 245function getQueryString(sKey) 246{ 247 var sQueryString = document.location.search.substring(1); 248 var aParam = {}; 249 250 if (sQueryString) { 251 var aFields = sQueryString.split("&"); 252 var aField = []; 253 for (var i=0; i<aFields.length; i++) { 254 aField = aFields[i].split('='); 255 aParam[aField[0]] = aField[1]; 256 } 257 } 258 259 aParam.page = aParam.page ? aParam.page : 1; 260 return sKey ? aParam[sKey] : aParam; 261}; 262 263$(function(){ 264 // tab 265 $.eTab = function(ul){ 266 $(ul).find('a').on('click', function(){ 267 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 268 _target = $(this).attr('href'), 269 _siblings = '.' + $(_target).attr('class'); 270 $(_target).show().siblings(_siblings).hide(); 271 return false 272 }); 273 } 274 if ( window.call_eTab ) { 275 call_eTab(); 276 }; 277}); 278(function($){ 279 $.fn.extend({ 280 center: function() { 281 this.each(function() { 282 var 283 $this = $(this), 284 $w = $(window); 285 $this.css({ 286 position: "absolute", 287 top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px", 288 left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px" 289 }); 290 }); 291 return this; 292 } 293 }); 294 $(function() { 295 var $container = function(){/* 296 <div id="modalContainer"> 297 <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe> 298 </div>'); 299 */}.toString().slice(14,-3); 300 $('body') 301 .append($('<div id="modalBackpanel"></div>')) 302 .append($($container)); 303 function closeModal () { 304 $('#modalContainer').hide(); 305 $('#modalBackpanel').hide(); 306 } 307 $('#modalBackpanel').on('click',closeModal); 308 zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) { 309 var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup; 310 $('#modalContent').attr('src', $url); 311 $('#modalContent').on("load",function(){ 312 $(".header .close",this.contentWindow.document.body).on("click", closeModal); 313 }); 314 $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show(); 315 $('#modalContainer').center().show(); 316 } 317 }); 318})(jQuery); 319var frmPath = location.pathname; 320var frmSearch = location.search; 321var frmPathSearch = location.pathname + location.search; 322 323$(document).ready(function(){ 324 /* ì ì²´ ì¹´í ê³ ë¦¬ */ 325 $(".all-cate, .allcate-wrap .btn-close").click(function(){ 326 if($(".allcate-wrap").css('display')=='none'){ 327 $(".allcate-wrap").show(); 328 }else{ 329 $(".allcate-wrap").hide(); 330 } 331 }); 332 333 334 /* ìë¨ë©ë´ */ 335 $(".header-util .drop").mouseenter(function(){ 336 $(this).addClass('on').siblings('li').removeClass('on'); 337 }).mouseleave(function(){ 338 $(this).removeClass('on'); 339 }); 340 341 //í ì¸ì¨ íì 342 calculate_sale_rate(); 343 344 brand_tab() 345}); 346 347/* í ì¸ì¨ íì */ 348function calculate_sale_rate() { 349 $('.sale_rate').each(function() { 350 351 var custom = $(this).attr('data-custom'); 352 var price = $(this).attr('data-price'); 353 354 var rate = 0;
355 if (!isNaN(custom) && !isNaN(price) && 0 < custom) { 356 rate = Math.round((custom - price) / custom * 100); 357 } 358 if(rate>0) { 359 $(this).html(rate + '<span>%</span>').css('background','#333333'); 360 } 361 362 $(this).removeAttr('data-custom'); 363 $(this).removeAttr('data-price'); 364 }); 365} 366 367 368/* ë¸ëëíì´ì§ íë©ë´ */ 369function brand_tab() { 370 $('#brand').each(function() { 371 var $tabMenu=$('.tab-menu li') 372 var $panel=$('.tab-cont > div') 373 374 $panel.hide() 375 $panel.eq(0).show() 376 $tabMenu.eq(0).addClass('on') 377 378 $tabMenu.click(clickTabMenu) 379 e.preventDefault() 380 381 function clickTabMenu(){ 382 var clickIndex=$tabMenu.index($(this)) 383 activateTabMenu(clickIndex) 384 activatePanel(clickIndex) 385 } 386 387 function activatePanel(index){ 388 $panel.hide() 389 $panel.eq(index).show() 390 } 391 function activateTabMenu(index){ 392 $tabMenu.removeClass('on') 393 $tabMenu.eq(index).addClass('on') 394 } 395 }); 396} 397/** 398 * ì¹´í ê³ ë¦¬ ë§ì°ì¤ ì¤ë² ì´ë¯¸ì§ 399 * ì¹´í ê³ ë¦¬ ìë¸ ë©ë´ ì¶ë ¥ 400 */ 401 402$(document).ready(function(){ 403 404 var methods = { 405 aCategory : [], 406 aSubCategory : {}, 407 408 get: function() 409 { 410 $.ajax({ 411 url : '/exec/front/Product/SubCategory', 412 dataType: 'json', 413 success: function(aData) { 414 415 if (aData == null || aData == 'undefined') return; 416 for (var i=0; i<aData.length; i++) 417 { 418 var sParentCateNo = aData[i].parent_cate_no; 419 420 if (!methods.aSubCategory[sParentCateNo]) { 421 methods.aSubCategory[sParentCateNo] = []; 422 } 423 424 methods.aSubCategory[sParentCateNo].push( aData[i] ); 425 } 426 } 427 }); 428 }, 429 430 getParam: function(sUrl, sKey) { 431 432 var aUrl = sUrl.split('?'); 433 var sQueryString = aUrl[1]; 434 var aParam = {}; 435 436 if (sQueryString) { 437 var aFields = sQueryString.split("&"); 438 var aField = []; 439 for (var i=0; i<aFields.length; i++) { 440 aField = aFields[i].split('='); 441 aParam[aField[0]] = aField[1]; 442 } 443 } 444 return sKey ? aParam[sKey] : aParam; 445 }, 446 447 getParamSeo: function(sUrl) { 448 var aUrl = sUrl.split('/'); 449 return aUrl[3] ? aUrl[3] : null; 450 }, 451 452 show: function(overNode, iCateNo) { 453 454 if (methods.aSubCategory[iCateNo].length == 0) { 455 return; 456 } 457 458 var aHtml = []; 459 aHtml.push('<ul>'); 460 $(methods.aSubCategory[iCateNo]).each(function() { 461 aHtml.push('<li><a href="'+this.link_product_list+'">'+this.name+'</a></li>'); 462 }); 463 aHtml.push('</ul>'); 464 465 466 var offset = $(overNode).offset(); 467 $('<div class="sub-category"></div>') 468 .appendTo(overNode) 469 .html(aHtml.join('')) 470 .find('li').mouseover(function(e) { 471 $(this).addClass('over'); 472 }).mouseout(function(e) { 473 $(this).removeClass('over'); 474 }); 475 }, 476 477 close: function() { 478 $('.sub-category').remove(); 479 } 480 }; 481 482 methods.get(); 483 484 485 $('.xans-layout-category li').mouseenter(function(e) { 486 var $this = $(this).addClass('on'), 487 iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no')); 488 489 if (!iCateNo) { 490 iCateNo = Number(methods.getParamSeo($this.find('a').attr('href'))); 491 } 492 493 if (!iCateNo) { 494 return; 495 } 496 497 methods.show($this, iCateNo); 498 }).mouseleave(function(e) { 499 $(this).removeClass('on'); 500 501 methods.close(); 502 }); 503}); 504/** 505 * ì¹´í ê³ ë¦¬ ìë¸ ë©ë´ ì¶ë ¥ 506 */ 507 508$(document).ready(function(){ 509 510 var methods = { 511 aCategory : [], 512 aSubCategory2 : {}, 513 514 get2: function() 515 { 516 $.ajax({ 517 url : '/exec/front/Product/SubCategory', 518 dataType: 'json', 519 success: function(aData) { 520 521 if (aData == null || aData == 'undefined') return; 522 for (var i=0; i<aData.length; i++) 523 { 524 var sParentCateNo = aData[i].parent_cate_no; 525 526 if (!methods.aSubCategory2[sParentCateNo]) { 527 methods.aSubCategory2[sParentCateNo] = []; 528 } 529 530 methods.aSubCategory2[sParentCateNo].push( aData[i] ); 531 } 532 methods.allshow(); 533 } 534 }); 535 }, 536 537 getParam: function(sUrl, sKey) { 538 539 var aUrl = sUrl.split('?'); 540 var sQueryString = aUrl[1]; 541 var aParam = {}; 542
543 if (sQueryString) { 544 var aFields = sQueryString.split("&"); 545 var aField = []; 546 for (var i=0; i<aFields.length; i++) { 547 aField = aFields[i].split('='); 548 aParam[aField[0]] = aField[1]; 549 } 550 } 551 return sKey ? aParam[sKey] : aParam; 552 }, 553 554 555 show2: function(overNode, iCateNo) { 556 557 /*if (methods.aSubCategory2[iCateNo].length == 0) { 558 return; 559 }*/ 560 561 var aHtml = []; 562 aHtml.push('<ul class="child_ul">'); 563 $(methods.aSubCategory2[iCateNo]).each(function() { 564 aHtml.push('<li class="child_category"><a href="/'+this.design_page_url+this.param+'">'+this.name+'</a></li>'); 565 }); 566 aHtml.push('</ul>'); 567 568 569 var offset = $(overNode).offset(); 570 $('<div class="sub-category2 test"></div>') 571 .appendTo(overNode) 572 .html(aHtml.join('')) 573 .find('li').mouseover(function(e) { 574 $(this).addClass('over'); 575 }).mouseout(function(e) { 576 $(this).removeClass('over'); 577 }); 578 }, 579 580 /*close: function() { 581 $('.sub-category').remove(); 582 },*/ 583 584 allshow: function() { 585 $('.allcate-wrap .xans-layout-category-2 li').each(function (idx, objthis) { 586 var $this = $(objthis).addClass('on'), 587 iCateNo = Number(methods.getParam($this.find('a').attr('data-param'), 'cate_no')); 588 589 if (!iCateNo) { 590 return; 591 } 592 593 methods.show2($this, iCateNo); 594 }); 595 } 596 }; 597 598 methods.get2(); 599 600 601 /* $('.xans-layout-category li').mouseenter(function(e) { 602 var $this = $(this).addClass('on'), 603 iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no')); 604 605 if (!iCateNo) { 606 return; 607 } 608 609 methods.show2($this, iCateNo); 610 }).mouseleave(function(e) { 611 $(this).removeClass('on'); 612 613 methods.close(); 614 }); */ 615}); 616 617function calculate_sale_rate() { 618 $(".ec-sale-rate").each(function(){ 619 var sEmploy = "y", // y:ì¬ì©, n:ìí¨ 620 iCustomPrice = $(this).attr("ec-data-custom"), 621 iPrice = $(this).attr("ec-data-price"), 622 iSalePrice = $(this).attr("ec-data-sale"), 623 iOfftoFixed = 0, // í ì¸ì¨ ììì ì릿ì 624 sDisplayAmount = "p", // p:í ì¸ì¨, w:í ì¸ê¸ì¡ 625 regexp = /\B(?=(\d{3})+(?!\d))/g, 626 iSaleRate = ""; 627 628 // ì²ë¨ì ì½¤ë§ ììë 629 if (iCustomPrice.match(/,/g)) iCustomPrice = iCustomPrice.replace(/,/g, ""); 630 if (iPrice.match(/,/g)) iPrice = iPrice.replace(/,/g, ""); 631 if (iSalePrice.match(/,/g)) iSalePrice = parseInt(iSalePrice.replace(/,/g, "")); 632 633 /* í ì¸ì¨ ê³ì°ì */ 634 if ( !isNaN(iCustomPrice) && !isNaN(iPrice) ) { 635 if (sDisplayAmount == "p") { 636 iSaleRate = (((iCustomPrice - iPrice) / iCustomPrice) * 100).toFixed(iOfftoFixed); 637 var $ds = $(this).html(iSaleRate + "<em>%</em>") ; 638 } else if (sDisplayAmount == "w") { 639 iSaleRate = parseInt(iCustomPrice - iPrice).toString(); 640 var $ds = $(this).html(iSaleRate.replace(regexp, ",") + "<em>ì</em>"); 641 } 642 } 643 644 // ì¤ìë¡ ë³í 645 var iCustomPrice = parseFloat(iCustomPrice); 646 647 /* í ì¸ì¨ ì¶ë ¥ ìì¹ */ 648 if ( $(".ec-base-product").length ) { 649 // (ë©ì¸, 목ë¡, ê²ì)ìë¹ìê° í매ê°ë³´ë¤ ìê±°ë ê°ìë 650 if ( iCustomPrice <= iPrice || iCustomPrice <= 0 ) { 651 if ( !isNaN(iSalePrice) ) { 652 $(this).parent().find(".spec li.product_custom").hide(); 653 } 654 } 655 if ( sEmploy == "y" ) { 656 $(this).parent().find(".thumbnail").each(function(){ //ì¶ë ¥ìì¹ 657 $(this).append($ds); 658 }); 659 } 660 } else if ( $(".xans-product-detail").length ) { 661 // (ìì¸)ìë¹ìê° í매ê°ë³´ë¤ ìê±°ë ê°ìë 662 if ( iCustomPrice <= iPrice || iCustomPrice <= 0 ) { 663 if ( !isNaN(iSalePrice) ) { 664 $(".prd-tb tr.product_custom_css").hide(); 665 } 666 } 667 if ( sEmploy == "y" ) { 668 $(this).parents().find(".prd-tb tr.product_price_css > td").append($ds); //ìì¸ ì¶ë ¥ìì¹ 669 } 670 } 671 672 // íë§¤ê° ë체문구 ì¼ë ìë¹ìê° ê°ì¶¤ 673 if ( isNaN(iPrice) ) { 674 if ( $(".ec-base-product").length ) { 675 $(this).parent().find(".spec li.product_custom").hide(); 676 } else if ( $(".xans-product-detail").length ) { 677 $(".prd-tb tr.product_custom_css").hide(); 678 } 679 } 680 // í ì¸ ê°ì´ 0, ìì, ì«ìê° ìë ê²½ì° 681 if ( iSaleRate <= 0 || isNaN(iSaleRate) ){ 682 $(this).hide(); 683 } 684 if ( sEmploy == "n" ) { 685 $(this).remove(); 686 } 687
688 $(this).removeAttr("ec-data-custom").removeAttr("ec-data-price").removeAttr("ec-data-sale"); 689 }); 690} 691$(function(){ 692 calculate_sale_rate(); 693}); 694$(function(){ 695 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 696 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 697 var bShippingCountryProc = false; 698 699 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 700 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 701 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 702 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 703 } else { 704 $('.thumb .xans-layout-multishoplistitem').hide(); 705 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 706 if (typeof(aShippingCountryCode) != 'undefined' && aShippingCountryCode != null && aShippingCountryCode.length > 2) { 707 var sShippingCountryValue = aShippingCountryCode[2]; 708 } 709 710 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 711 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 712 713 if (aHrefCountryValue.length == 2) { 714 var sShippingCountryValue = aHrefCountryValue[1]; 715 } 716 717 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 718 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 719 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 720 721 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 722 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 723 } 724 } 725 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 726 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 727 var bShippingCountryProc = true; 728 729 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 730 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 731 var expires = new Date(); 732 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 733 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 734 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 735 $("#f_country").val(sShippingCountryValue).change(); 736 } 737 } 738 } 739 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 740 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 741 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 742 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 743 } else { 744 $('.thumb .xans-layout-multishoplistitem').hide(); 745 } 746 747 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 748 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 749 $(".xans-layout-multishopshipping").hide(); 750 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 751 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°
751ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 752 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 753 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 754 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 755 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 756 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 757 $(".xans-layout-multishopshipping").show(); 758 } 759 } 760 761 $(".xans-layout-multishopshipping .close").on("click", function() { 762 $(".xans-layout-multishopshipping").hide(); 763 }); 764 765 $(".xans-layout-multishopshipping .ec-base-button a").on("click", function() { 766 var expires = new Date(); 767 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 768 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 769 770 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°ì ëê¹ 771 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 772 773 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 774 }); 775 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").on("click", function() { 776 $(".xans-layout-multishopshipping").show(); 777 }); 778 } 779});
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.