1$(function(){ 2 if($(".menuCategory > li").length==0){ 3 $(".menuCategory").hide(); 4 }; 5}); 6/** 7 * ì¡°ê±´ë³ ê²ì ê¸°ë¥ ì¤í¬ë¦½í¸ 8 */ 9$(document).ready(function() 10{ 11 var sParentElement = 'select.SecondSelect'; 12 $('select.FirstSelect').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').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}); 59$(document).ready(function(){ 60 $(".description .prd_time > li span").each(function(){ 61 if($(this).text() == "í ì¸ ê¸°ê°"){ 62 $(this).parent().parent("li").addClass('on'); 63 } 64 }); 65}); 66 67$(document).ready(function(){ 68 $(".description .spec li span").each(function(){ 69 if($(this).text() == "í ì¸ ê¸°ê°"){ 70 $(this).parent().parent("li").hide(); 71 } 72 }); 73}); 74 75 76//window popup script 77function winPop(url) { 78 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 79} 80/** 81 * document.location.href split 82 * return array Param 83 */ 84function getQueryString(sKey) 85{ 86 var sQueryString = document.location.search.substring(1); 87 var aParam = {}; 88 89 if (sQueryString) { 90 var aFields = sQueryString.split("&"); 91 var aField = []; 92 for (var i=0; i<aFields.length; i++) { 93 aField = aFields[i].split('='); 94 aParam[aField[0]] = aField[1]; 95 } 96 } 97 98 aParam.page = aParam.page ? aParam.page : 1; 99 return sKey ? aParam[sKey] : aParam; 100}; 101 102$(document).ready(function(){ 103 // tab 104 $.eTab = function(ul){ 105 $(ul).find('a').click(function(){ 106 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 107 _target = $(this).attr('href'), 108 _siblings = '.' + $(_target).attr('class'); 109 $(_target).show().siblings(_siblings).hide(); 110 return false 111 }); 112 } 113 if ( window.call_eTab ) { 114 call_eTab(); 115 }; 116}); 117 118 119/*í ì¸ì¨í기*/ 120function calculate_discount() { 121 $('.discount_rate').each(function() { 122 123 var custom = $(this).attr('data-custom'); 124 var price = $(this).attr('data-price'); 125 126 custom = parseInt(custom.replace(/,/g, '')); 127 price = parseInt(price.replace(/,/g, '')); 128 129 var rate = 0; 130 if (!isNaN(custom) && !isNaN(price) && 0 < custom) { 131 rate = Math.round((custom - price) / custom * 100); 132 } 133 if(rate>0) { 134 $(this).html('(' + rate + '<span>%</span>' + ')'); 135 $(this).html('(' + rate + '<span>%</span>' + ')'); 136 $(this).html('(' + rate + '<span>%</span>' + ')'); 137 } 138 $(this).removeAttr('data-custom'); 139 $(this).removeAttr('data-price'); 140 }); 141} 142 143$(document).ready(function() { 144 calculate_discount(); 145}); 146(function($){ 147$.fn.extend({ 148 center: function() { 149 this.each(function() { 150 var 151 $this = $(this), 152 $w = $(window); 153 $this.css({ 154 position: "absolute", 155 top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px", 156 left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px" 157 }); 158 }); 159 return this; 160 } 161}); 162$(function() { 163 var $container = function(){/* 164<div id="modalContainer"> 165 <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe> 166</div>'); 167*/}.toString().slice(14,-3); 168 $('body') 169 .append($('<div id="modalBackpanel"></div>')) 170 .append($($container)); 171 function closeModal () { 172 $('#modalContainer').hide(); 173 $('#modalBackpanel').hide(); 174 } 175 $('#modalBackpanel').click(closeModal); 176 zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) { 177 var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup; 178 $('#modalContent').attr('src', $url); 179 $('#modalContent').bind("load",function(){ 180 $(".header .close",this.contentWindow.document.body).bind("click", closeModal); 181 }); 182 $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show(); 183 $('#modalContainer').center().show(); 184 } 185}); 186})(jQuery); 187//ì½ê´í´ë¦ 188$('.xans-member-join .agreeArea h3').click(function(){ 189 $(this).find('.cate_b span').toggleClass('trans'); 190}); 191 192 193 194//ë¡ê·¸ì¸ ë ì´ìì ëì´ì¡°ì 195$(document).ready(function(){ 196 var h_level = $('.login_wrap').height(); 197 $('.join_wrap').height(h_level); 198}); 199 200 201 202//리뷰 ììë ëì²´ í ì¤í¸ 203 204$(window).load(function(){ 205 $('.normalprdList li').each(function(){ 206 if($(this).find('.review_area .review_count').text() == "0"){ 207 $(this).find('.review_area').hide(); 208 /*$(this).find('.review_area').text('X');*/ 209 }; 210 }); 211}); 212 213 214 215/* ë©ì¸ìí 리ì¤í¸ ë보기 ê¸°ë¥ */ 216 217$(function(){ 218 var lastpro = $('.item01_1:last').index() + 1; 219 console.log(lastpro); 220 var col = 30; //ë³´ì¬ì§ ê°¯ì 221 var clicknum = Math.floor(lastpro/col); //í´ë¦ í ì´ íì 222 for(var i = col; i <= lastpro ; i++){ 223 $('.item01_1').eq(i).hide(); 224 } 225 226 var cnt = 0; 227 $('.listMoreBtn01_1 a span').html('('+(lastpro - col) +')'); 228 $('.listMoreBtn01_1 a').click(function(){ 229 cnt++; 230 for(i = col*cnt; i < col*(cnt+1) ; i++){ 231 $('.item01_1').eq(i).show(); 232 } 233 var viewspan = lastpro - col*(cnt+1); 234 if(viewspan < 0 ){ 235 viewspan = 0; 236 } 237 $(this).children('span').html('('+viewspan+')'); 238 if(cnt == clicknum){ 239 $(this).hide(); 240 } 241 }); 242}); 243 244$(function(){ 245 var itemss = $('.item01_1:last').index() + 1; 246 console.log(itemss); 247 if(itemss < 30){ 248 $('.more').hide(); 249 }else { 250 251 } 252}); 253 254 255 256/* íì¬íì´ì§ url ë³µì¬ë²í¼ */ 257$(document).ready(function() { 258 var newURL = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search 259 $('#urlAddress').val(newURL); 260 }); 261$('.copy_url').click(function(){ 262 263 var urlAddress= $('#urlAddress'); 264 265 urlAddress.css('display','block').select(); 266 267 document.execCommand("Copy"); 268 269 urlAddress.css('display','none'); 270 271 272 273 alert('URL 주ìê° ë³µì¬ ëììµëë¤'); 274 275 return false;
276 277}); 278 279 280/*íìê°ì í*/ 281 282$('.xans-member-join .agreeArea h3.h123').click(function(){ 283 $('.c123').slideToggle(); 284}); 285 286$('.xans-member-join .agreeArea h3.h456').click(function(){ 287 $('.c456').slideToggle(); 288}); 289 290$('.xans-member-join .agreeArea h3.h789').click(function(){ 291 $('.c789').slideToggle(); 292}); 293 294// ì¬ì´í¸ê°ì´ë - 기ë¥ì± í 295$('.guide_wrap .menu li').click(function(){ 296 var tab = $(this).index(); 297 $('.guide_list .cont').eq(tab).show().siblings().hide(); 298 $(this).addClass('tabSel').siblings().removeClass('tabSel'); 299}); 300 301 302$('.sitemapBt').click(function(){ 303 $('.sitemap_wrap').slideToggle(); 304 $('.sitemapBt').toggleClass('on'); 305}); 306 307 308// ë¡ê·¸ì¸ í ë¶ë¶ 309 310var event = document.location.href; 311var event2 = event.split("member/"); 312 313console.log(event2); 314 315if( event2[1] == "login.html" ){ 316 $(".login_tab li").eq(0).addClass("light").siblings().removeClass('light'); 317}else if ( event2[1] == "login.html?noMemberOrder&returnUrl=%2Fmyshop%2Forder%2Flist.html" ){ 318 $(".login_tab li").eq(1).addClass("light").siblings().removeClass('light'); 319 $(".xans-member-login .login fieldset").css('display','none'); 320 $('.ec-base-box.typeThin').css('border-bottom','none'); 321} 322 323 324 325//í¤ë íµë©ë´ 326 327$(window).scroll(function() { 328 var quick_Top = document.documentElement.scrollTop + document.body.scrollTop ; 329 if(quick_Top >625){ 330 $("#header").css('position','fixed'); 331 $('.quickMenu').stop(true,true).fadeIn(); 332 }else{ 333 $("#header").css('position','relative'); 334 $('.quickMenu').fadeOut(); 335 } 336}); 337 338$(".quickMenu .fix_top").click(function() { 339 $('html').animate({scrollTop : 0}, 600); 340}); 341 342$(".quickMenu .fix_bottom").click(function() { 343 $('html').animate({scrollTop : ($('#footer').offset().top)}, 600); 344}); 345 346/* header category */ 347$('#header .gnb>li').mouseover(function(){ 348 $('#header .cateWrap').stop(true,true).fadeIn(); 349 $('.background').stop(true,true).fadeIn(); 350 $('#header .cateWrap').mouseover(function(){ 351 $('#header .cateWrap, .background').stop(true,true).fadeIn(); 352 $('#header').mouseleave(function(){ 353 $('#header .cateWrap, .background').stop(true,true).fadeOut(); 354 }); 355 }); 356 $('#header .gnbWrap').mouseleave(function(){ 357 $('#header .cateWrap').stop(true,true).fadeOut(); 358 $('.background').stop(true,true).fadeOut(); 359 }); 360}); 361 362$('#header .gnb>li').mouseover(function(){ 363 var cate = $(this).index(); 364 $('#header .cateWrap .cateIn > div').eq(cate).show().siblings().hide(); 365}); 366 367 368/* header event_close */ 369$('.event_close').click(function(){ 370 $('.top_event').slideUp(); 371}); 372 373 374/* ê²ìê¸ ë²í¸ íì리ìì¼ë ìì 0 ë¶ì´ê¸° */ 375$(document).ready(function(){ 376 var num = $('.board_no').text(); 377 numleng = num.length; 378 if(numleng >= 1){ 379 $('.board_no').prepend('0'); 380 }; 381}); 382 383/*header_search 384 385$("#header .search_icon").click(function(){ 386 $(".xans-layout-searchheader").toggle(); 387}); 388*/ 389 390// ë² ì¤í¸ - 기ë¥ì± í 391$('.tabWrap .tabCate ul a').mouseover(function(){ 392 var tab = $(this).index(); 393 $('.tabCon > div').eq(tab).show().siblings().hide(); 394 $(this).addClass('tabSel').siblings().removeClass('tabSel'); 395}); 396 397 398 399 400// 롤ë§ìì¤ ì¶ê° 401 402 403//ì¸ë±ì¤ ë²í¸ ì§ì ìì¤ 404// 405$(".hotkeyword .hotkeyword_list .hotkeyword_list_in a").each(function(){ 406 407 $(this).attr("data-num",$(this).index()); 408 409}); 410 411 412 413 414 415var countnum = 0; 416 417var time = 3000; // ìëì¤í ë°ë³µìê° 418 419//ìë ì¬ë¼ì´ë ì¤í ì½ë 420 421function start(){ 422 start = setInterval(function auto(){ 423 countnum++; 424 if(countnum == 8){countnum = 0} 425 426 $(".hotkeyword .hotkeyword_list .hotkeyword_list_in a").removeClass("show"); 427 428 $(".tabCon>div").hide(); 429 430 $(".hotkeyword .hotkeyword_list .hotkeyword_list_in a").eq(countnum).addClass("show"); 431 432 $(".tabCon>div").eq(countnum).show(); 433 434 435 },time); 436 437} 438 439//ë§ì°ì¤ ì¤ë²ì ì¬ë¼ì´ë ë©ì¶¤ ì½ë 440 441function stop(){ 442 clearInterval(start); 443} 444 445$(".hotkeyword .hotkeyword_list .hotkeyword_list_in a").mouseover(function(){ 446 447 countnum = $(this).attr("data-num"); 448 449 $(this).siblings(".hotkeyword .hotkeyword_list .hotkeyword_list_in a").removeClass("show"); 450 451 $(this).addClass("show"); 452 453 454}) 455 456 457 458//ìëì¤í ì½ë í¸ì¶ 459$(".tabCon>div").bind('mouseenter',stop).bind('mouseleave',start); 460start(); 461 462 463 464 465 466 467 468 469// ìê° - 기ë¥ì± í 470$('.tabWrap2 .tabCate2 ul li').mouseover(function(){ 471 var tab = $(this).index(); 472 $('.tabWrap2 .tabCon > div').eq(tab).show().siblings().hide(); 473 $(this).addClass('tabSel').siblings().removeClass('tabSel'); 474}); 475 476 477 478 479 480 481 482 483// íë¡ëª¨ì - 기ë¥ì± í 484$('.promotionWrap .promotiontab>div').click(function(){ 485 var tab = $(this).index(); 486 console.log(tab); 487 $('.promotionlist>div').eq(tab).show().siblings().hide(); 488}); 489 490 491/** 492 * ìì§ì´ë ë°°ë Jquery Plug-in 493 * @author cafe24 494 */ 495 496(function($){ 497 498 $.fn.floatBanner = function(options) { 499 options = $.extend({}, $.fn.floatBanner.defaults , options); 500 501 return this.each(function() { 502 var aPosition = $(this).position(); 503 var jbOffset = $(this).offset(); 504 var node = this; 505 506 $(window).scroll(function() { 507 var _top = $(document).scrollTop(); 508 _top = (aPosition.top < _top) ? _top : aPosition.top; 509 510 setTimeout(function () { 511 var newinit = $(document).scrollTop(); 512 513 if ( newinit >
513 jbOffset.top ) { 514 _top -= jbOffset.top; 515 var container_height = $("#wrap").height(); 516 var quick_height = $(node).height(); 517 var cul = container_height - quick_height; 518 if(_top > cul){ 519 _top = cul; 520 } 521 }else { 522 _top = 0; 523 } 524 525 $(node).stop().animate({top: _top}, options.animate); 526 }, options.delay); 527 }); 528 }); 529 }; 530 531 $.fn.floatBanner.defaults = { 532 'animate' : 500, 533 'delay' : 500 534 }; 535 536})(jQuery); 537 538/** 539 * 문ì 구ëí ìì 540 */ 541$(document).ready(function(){ 542 $('#banner:visible, #quick:visible').floatBanner(); 543 544 //placeholder 545 $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){ 546 var placeholderName = $(this).parents().attr('title'); 547 $(this).attr("placeholder", placeholderName); 548 }); 549 /* placeholder ie8, ie9 */ 550 $.fn.extend({ 551 placeholder : function() { 552 //IE 8 ë²ì ìë hasPlaceholderSupport() ê°ì´ false를 ë¦¬í´ 553 if (hasPlaceholderSupport() === true) { 554 return this; 555 } 556 //hasPlaceholderSupport() ê°ì´ false ì¼ ê²½ì° ìë ì½ë를 ì¤í 557 return this.each(function(){ 558 var findThis = $(this); 559 var sPlaceholder = findThis.attr('placeholder'); 560 if ( ! sPlaceholder) { 561 return; 562 } 563 findThis.wrap('<label class="ePlaceholder" />'); 564 var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : ''; 565 findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>'); 566 this.onpropertychange = function(e){ 567 e = event || e; 568 if (e.propertyName == 'value') { 569 $(this).trigger('focusout'); 570 } 571 }; 572 //ê³µíµ class 573 var agent = navigator.userAgent.toLowerCase(); 574 if (agent.indexOf("msie") != -1) { 575 $(".ePlaceholder").css({"position":"relative"}); 576 $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"}); 577 $(".ePlaceholder label").css({"padding":"0"}); 578 } 579 }); 580 } 581 }); 582 583 $(':input[placeholder]').placeholder(); //placeholder() í¨ì를 í¸ì¶ 584 585 //í´ë¦íë©´ placeholder ì¨ê¹ 586 $('body').delegate('.ePlaceholder span', 'click', function(){ 587 $(this).hide(); 588 }); 589 590 //inputì°½ í¬ì»¤ì¤ ì¸ ì¼ë placeholder ì¨ê¹ 591 $('body').delegate('.ePlaceholder :input', 'focusin', function(){ 592 $(this).prev('span').hide(); 593 }); 594 595 //inputì°½ í¬ì»¤ì¤ ìì ì¼ë value ê° true ì´ë©´ ì¨ê¹, false ì´ë©´ ë³´ì¬ì§ 596 $('body').delegate('.ePlaceholder :input', 'focusout', function(){ 597 if (this.value) { 598 $(this).prev('span').hide(); 599 } else { 600 $(this).prev('span').show(); 601 } 602 }); 603 604 //inputì placeholderê° ì§ìì´ ëë©´ true를 ìëë©´ false를 리í´ê°ì¼ë¡ ëì ¸ì¤ 605 function hasPlaceholderSupport() { 606 if ('placeholder' in document.createElement('input')) { 607 return true; 608 } else { 609 return false; 610 } 611 } 612}); 613 614/** 615 * ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 616 */ 617$(window).load(function() { 618 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 619 var $img = new Image(); 620 $img.onerror = function () { 621 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 622 } 623 $img.src = this.src; 624 }); 625}); 626 627/** 628 * tooltip 629 */ 630$('.eTooltip').each(function(i){ 631 $(this).find('.btnClose').attr('tabIndex','-1'); 632}); 633//tooltip input focus 634$('.eTooltip').find('input').focus(function() { 635 var targetName = returnTagetName(this); 636 targetName.siblings('.ec-base-tooltip').show(); 637}); 638$('.eTooltip').find('input').focusout(function() { 639 var targetName = returnTagetName(this); 640 targetName.siblings('.ec-base-tooltip').hide(); 641}); 642function returnTagetName(_this){ 643 var ePlacename = $(_this).parent().attr("class"); 644 var targetName; 645 if(ePlacename == "ePlaceholder"){ //ePlaceholder ëì 646 targetName = $(_this).parents(); 647 }else{ 648 targetName = $(_this); 649 } 650 return targetName; 651} 652
653/** 654 * eTab 655 */ 656 $("body").delegate(".eTab a", "click", function(e){ 657 // í´ë¦í li ì selected í´ëì¤ ì¶ê°, 기존 liì ìë selected í´ëì¤ë ìì . 658 var _li = $(this).parent("li").addClass("selected").siblings().removeClass("selected"), 659 _target = $(this).attr("href"), 660 _siblings = $(_target).attr("class"), 661 _arr = _siblings.split(" "), 662 _classSiblings = "."+_arr[0]; 663 664 //í´ë¦í íì í´ë¹íë ììë íì±í, 기존 ììë ë¹íì±í í¨. 665 $(_target).show().siblings(_classSiblings).hide(); 666 667 668 //preventDefault ë a íê·¸ ì²ë¼ í´ë¦ ì´ë²¤í¸ ì¸ì ë³ëì ë¸ë¼ì°ì íëì ë§ê¸° ìí´ ì¬ì©ë¨. 669 e.preventDefault(); 670 }); 671 672$(document).ready(function(){ 673 setTimeout(function(){ 674 var height_area = $(".xans-product-detail .detailArea").height(); 675 $(".xans-product-detail .detailArea").height(height_area); 676 /*ìíìì¸_ìµì ì°½*/ 677 $(window).scroll(function(){ 678 if($(window).scrollTop() > $(".xans-product-additional").offset().top) { 679 $('.fix2option').addClass('fix2'); 680 $('.option_btn').fadeIn(); 681 $(".xans-product-detail .detailArea").height(height_area); 682 }else { 683 $('.fix2option').removeClass('fix2'); 684 $('.option_btn').fadeOut(); 685 } 686 }); 687 688 var btn_Index = 0; 689 $('.option_btn').click(function(){ 690 if (btn_Index == 0) { 691 $('.xans-product-detail .infoArea.fix').addClass('click'); 692 $('.fix2option').addClass('click'); 693 btn_Index = 1; 694 }else if ( btn_Index == 1 ) { 695 $('.xans-product-detail .infoArea.fix').addClass('noclick'); 696 $('.fix2option').removeClass('click'); 697 btn_Index = 0; 698 } 699 }); 700 },2000); 701}); 702$('.quickMenu .clock_fix').click(function(){ 703 $('.viewproduct > h2, .viewproduct > ul, .viewproduct > p').fadeToggle(); 704}); 705 706 707window.dispatchEvent(new Event('resize')); 708$(document).ready(function(){ 709 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 710 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 711 var bShippingCountryProc = false; 712 713 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 714 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 715 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 716 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 717 } else { 718 $('.thumb .xans-layout-multishoplistitem').hide(); 719 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 720 if (typeof(aShippingCountryCode) != 'undefined' && aS
720hippingCountryCode != null && aShippingCountryCode.length > 2) { 721 var sShippingCountryValue = aShippingCountryCode[2]; 722 } 723 724 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 725 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 726 727 if (aHrefCountryValue.length == 2) { 728 var sShippingCountryValue = aHrefCountryValue[1]; 729 } 730 731 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 732 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 733 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 734 735 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 736 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 737 } 738 } 739 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 740 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 741 var bShippingCountryProc = true; 742 743 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 744 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 745 var expires = new Date(); 746 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 747 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 748 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 749 $("#f_country").val(sShippingCountryValue).change();; 750 } 751 } 752 } 753 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 754 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 755 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 756 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 757 } else { 758 $('.thumb .xans-layout-multishoplistitem').hide(); 759 } 760 761 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 762 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 763 $(".xans-layout-multishopshipping").hide(); 764 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 765 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 766 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 767 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 768 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 769 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 770 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 771 $(".xans-layout-multishopshipping").show(); 772 } 773 } 774 775 $(".xans-layout-multishopshipping .close").bind("click", function() { 776 $(".xans-layout-multishopshipping").hide(); 777 }); 778 779 $(".xans-layout-multishopshipping .ec-base-button a").bind("click", function() { 780 var expires = new Date(); 781 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 782 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 783 784 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°
784ì ëê¹ 785 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 786 787 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 788 }); 789 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").bind("click", function() { 790 $(".xans-layout-multishopshipping").show(); 791 }); 792 } 793});
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.