1/** 2 * hasClass 3 */ 4function hasClass(element, className){ 5 return (' ' + element.className + ' ').indexOf(' ' + className+ ' ') > -1; 6}; 7 8/** 9 * toggle 10 */ 11function toggleClassAll(element, handler, className){ 12 var _handler = document.querySelector(handler); 13 document.querySelectorAll(handler).forEach(function(item){ 14 item.addEventListener('click', function(){ 15 var _element = item.parentNode; 16 if ( hasClass( _element, className ) ) { 17 _element.classList.remove( className ); 18 } else { 19 _element.classList.add( className ); 20 } 21 }) 22 }) 23}; 24 25/** 26 * findElements 27 */ 28function findElements(element, findElement){ 29 var resultElements = []; 30 document.querySelectorAll(element).forEach(function(item){ 31 var findElementList = item.querySelectorAll(findElement); 32 findElementList = Array.prototype.slice.call(findElementList); 33 resultElements = resultElements.concat(findElementList); 34 }) 35 return resultElements; 36}; 37 38/** 39 * setAttributeAl 40 */ 41function setAttributeAll(elements, name, value){ 42 elements.forEach(function(item){ 43 item.setAttribute(name, value); 44 }) 45}; 46 47/** 48 * tooltip 49 */ 50function setTooltipEvent(){ 51 var input = findElements('.eTooltip', 'input'); 52 input.forEach(function(item){ 53 item.addEventListener('focusin', function(event){ 54 var targetName = returnTargetName(event.target); 55 targetName.nextElementSibling.style.display = 'block' 56 }); 57 item.addEventListener('focusout', function(event){ 58 var targetName = returnTargetName(event.target); 59 targetName.nextElementSibling.style.display = 'none' 60 }); 61 }); 62} 63 64/** 65 * tooltip input focus 66 */ 67function returnTargetName(_this){ 68 var ePlacename = _this.parentElement.getAttribute("class"); 69 var targetName; 70 if(ePlacename == "ePlaceholder"){ //ePlaceholder supported 71 targetName = _this.parentElement; 72 }else{ 73 targetName = _this; 74 } 75 return targetName; 76} 77 78/** 79 * window load 80 */ 81window.addEventListener('load', function(){ 82 if (document.querySelector('.eTooltip')){ 83 setAttributeAll(findElements('.eTooltip', '.btnClose'),'tabIndex','-1'); 84 setTooltipEvent(); 85 } 86 if (document.querySelector('div.eToggle')){ 87 toggleClassAll(false, 'div.eToggle .title', 'selected'); 88 } 89}); 90function toggleClass(element, handler, className){ 91 var _handler = document.querySelector(handler); 92 var _element = document.querySelector(element); 93 94 _handler.addEventListener('click', function(){ 95 if ( _element.classList.contains(className) ) { 96 _element.classList.remove( className ); 97 } else { 98 _element.classList.add( className ); 99 } 100 }); 101} 102 103 104function searchLayer() { 105 var btnSearchs = document.querySelectorAll('.eSearch'); 106 var btnClose = document.querySelector('.xans-layout-searchheader .btnClose'); 107 btnSearchs.forEach( function(btnSearch) { 108 btnSearch.addEventListener('click', function(){ 109 document.body.classList.add('searchExpand'); 110 var input = document.querySelector('#keyword'); 111 input.focus(); 112 }); 113 }); 114 btnClose.addEventListener('click', function(){ 115 document.body.classList.remove('searchExpand'); 116 }); 117 var dimmed = document.querySelector('#layoutDimmed'); 118 handleDimmed(dimmed, document.body, 'searchExpand'); 119} 120 121function handleDimmed(target, element, className){ 122 target.addEventListener('click', function(){ 123 element.classList.remove(className); 124 }); 125} 126 127function bottomScroll(){ 128 var lastScrollTop = 0; 129 var delta = 5; 130 var fixBox = document.querySelector('.bottom-nav__top'); 131 var fixBoxHeight = fixBox.offsetHeight; 132 var didScroll; 133 134 window.onscroll = function(e) { 135 didScroll = true; 136 }; 137 138 setInterval(function(){ 139 if(didScroll){ 140 hasScrolled(); 141 didScroll = false; 142 } 143 }, 250); 144 145 function hasScrolled(){ 146 var nowScrollTop = window.scrollY; 147 if(Math.abs(lastScrollTop - nowScrollTop) <= delta){ 148 return; 149 } 150 if(nowScrollTop > lastScrollTop && nowScrollTop > fixBoxHeight){ 151 //Scroll down 152 var scrollTop = window.scrollTop(); 153 var innerHeight = window.innerHeight(); 154 var scrollHeight = $('body').prop('scrollHeight');
155 if (scrollTop + innerHeight >= scrollHeight) { 156 fixBox.classList.add('bottom-nav--hide'); 157 return true; 158 } 159 }else{ 160 if(nowScrollTop + window.innerHeight < document.body.offsetHeight){ 161 //Scroll up 162 fixBox.classList.remove('bottom-nav--hide'); 163 } 164 } 165 lastScrollTop = nowScrollTop; 166 } 167} 168 169function getOffset(element){ 170 if (!element.getClientRects().length) 171 { 172 return { top: 0, left: 0 }; 173 } 174 175 var rect = element.getBoundingClientRect(); 176 var win = element.ownerDocument.defaultView; 177 return ( 178 { 179 top: rect.top + win.pageYOffset, 180 left: rect.left + win.pageXOffset 181 }); 182} 183 184function getQuickPosition(){ 185 var role = document.querySelector("meta[name='path_role']").getAttribute('content'); 186 if (role === "MAIN") { 187 return getMainQuickPosition(); 188 } else { 189 return getSubQuickPosition(); 190 } 191} 192 193function getMainQuickPosition(){ 194 var quickMenu = document.querySelector('#quick'); 195 var collection = document.querySelector('.collection'); 196 var snsItem = document.querySelector('.snsItem'); 197 198 var mainTopSpace = 115; 199 var mainFooterSpace = 34; 200 201 var top = collection.offsetTop + collection.clientHeight + mainTopSpace; 202 var footTop = getOffset(snsItem).top + mainFooterSpace; 203 var maxY = footTop - quickMenu.offsetHeight; 204 205 return [top, maxY] 206} 207 208function getSubQuickPosition(){ 209 var quickMenu = document.querySelector('#quick'); 210 var footer = document.querySelector("#footer"); 211 212 var footerSpace = 60; 213 var top = 284; 214 var footTop = getOffset(footer).top; 215 var maxY = footTop - quickMenu.offsetHeight - footerSpace; 216 217 return [top, maxY] 218} 219 220function setQuickScrollEvent(y, quick){ 221 var header = document.querySelector('#header'); 222 var position = getQuickPosition(); 223 var scrollY = y; 224 if (scrollY >= position[0] - header.offsetHeight){ 225 if (scrollY < position[1]) { 226 quick.classList.add('fixed'); 227 quick.removeAttribute('style'); 228 } else { 229 quick.classList.remove('fixed'); 230 quick.style.position = 'absolute'; 231 quick.style.top = position[1] + 'px'; 232 } 233 } else { 234 quick.style.top = position[0] + 'px'; 235 quick.classList.remove('fixed'); 236 } 237} 238 239function quickGoTop(){ 240 var btnTop = document.querySelector('#quick .pageTop'); 241 btnTop.addEventListener('click', function(){ 242 window.scrollTo({ 243 top: 0, 244 behavior: 'smooth' 245 }); 246 }); 247} 248 249function topBanner(){ 250 var banner = document.querySelector('#topBanner'); 251 if(!banner) return; 252 var btnClose = banner.querySelector('.btnClose'); 253 btnClose.addEventListener('click', function(){ 254 banner.classList.add("hidden"); 255 }); 256} 257 258 259function getCurrentScrollPercentage(){ 260 return (window.scrollY + window.innerHeight) / document.body.clientHeight * 100 261} 262 263 264jQuery(document).ready(function() { 265 266 /* ìµìë¨ë°°ë í루ëì ë«ê¸° - ìì í */ 267 jQuery(".main_top_banner .top_banner_box_inner .top_banner_close .icon").bind("click", function() { 268 if(jQuery("#top_banner_box_cloase").is(":checked")){ 269 jQuery(".main_top_banner").slideUp("fast"); 270 setCookiem("top_banner_cookie", "top_banner_cookie", 1); 271 } else { 272 jQuery(".main_top_banner").slideUp("fast"); 273 } 274 }); 275 276 var main_top_banner_diplay = jQuery(".main_top_banner").attr("data-ez-display"); 277 if (!getCookiem("top_banner_cookie") && (main_top_banner_diplay == 'visible')) { 278 jQuery(".main_top_banner").slideDown("fast"); 279 } 280 281 /* ìµìë¨ë°°ë ë«ê¸°ë²í¼ ììì ëì´ ìì */ 282 if(jQuery(".top_banner_close").css("display") == "none"){ 283 jQuery(".main_top_banner").addClass('close_none'); 284 if (main_top_banner_diplay == 'visible') { 285 jQuery(".main_top_banner").slideDown("fast"); 286 } 287 } 288 289 /* ìë¨ ê³ ê°ì¼í° - ìì í */ 290 jQuery("#header .inner .toparea .toparea_state .toparea_state_board").click(function() { 291 var theme_cl = jQuery(this).attr('class'); 292 jQuery(this).toggleClass('on'); 293 }); 294 295 /* ìë¨ê²ì íì - ìì í */ 296 jQuery('#header .inner .top_nav_box .top_mypage .eSearch, .bottom-nav__tabBar li .eSearch').bind("click", function() { 297 jQuery(".xans-layout-searchheader").css('display', 'block'); 298 jQuery('body').addClass('not_scroll').bind('scroll touchmove mousewheel', function(e){ // ë¸ë¼ì°ì ì¤í¬ë¡¤ë§ê¸° 299 e.preventDefault(); 300 e.stopPropagation(); 301 return false;
302 }); 303 }) 304 jQuery('.xans-layout-searchheader fieldset .top_search_box .btnClose').bind("click", function() { 305 jQuery(".xans-layout-searchheader").css('display', 'none'); 306 jQuery('body').removeClass('not_scroll').unbind('scroll touchmove mousewheel'); // ë¸ë¼ì°ì ì¤í¬ë¡¤í기 307 }) 308 309 /* ë¡ê·¸ì¸í¼ placeholder ì¶ê° - ìì í */ 310 if (jQuery('.xans-member-login').val() != undefined) { 311 jQuery('#member_passwd').attr('placeholder', 'ë¹ë°ë²í¸'); 312 } 313 314 /* ë¹íì 주문조ííì´ì§ placeholder ì¶ê° - ìì í */ 315 setTimeout(function(){ 316 if (jQuery('.xans-myshop-orderhistorynologin').val() != undefined) { 317 jQuery('#order_name').attr('placeholder', '주문ìëª '); 318 jQuery('#order_id').attr('placeholder', '주문ë²í¸(íì´í(-) í¬í¨)'); 319 jQuery('#order_password').attr('placeholder', 'ë¹íì주문 ë¹ë°ë²í¸'); 320 } 321 }, 100); 322 323 /* ê²ìíì´ì§ ì¸íë°ì¤ìì í ì¤í¸ ìì - ìì í */ 324 jQuery('#ec-product-searchdata-searchkeyword_form').find('button.btnDelete').bind('click', function() { 325 jQuery('#ec-product-searchdata-keyword').val('').focus(); 326 }); 327 328 /* ê²ìíì´ì§ ì ë ¬ í ì¤í¸ ë³ê²½ */ 329 jQuery("#order_by").each(function(){ 330 jQuery('option:first-child', this).text('- ì ë ¬ë°©ì -'); 331 }); 332 333 /* ë©í°ìµ ììê²½ì° ì¨ê¹ */ 334 jQuery(".xans-layout-multishoplist").each(function(){ 335 var multishoplist_count = jQuery('li', this).length; 336 if ( multishoplist_count == 1 ) { 337 jQuery(this).hide(); 338 } 339 }); 340 341 /* íë¨ ìì¤í¬ë¡ ì¬ì©íë©´ ì¶ë ¥ */ 342 jQuery("#footer .inner .bt_escrow").each(function(){ 343 var bt_escrow = jQuery(this).attr("data-ez-escrow"); 344 if ( !bt_escrow == '' ) { 345 var bt_escrow_name = jQuery("a img[data-ez-escrow-id="+ bt_escrow +"]", this).addClass('on'); 346 jQuery(this).css('display','flex'); 347 } 348 }); 349 350 /* ë¡ê·¸ì¸íì´ì§ SNS ì¬ì©íë©´ ì¶ë ¥ */ 351 jQuery(".xans-member-login .login__sns .wrap_sns_log a").each(function(){ 352 var wrap_sns_log = jQuery(this).hasClass('displaynone'); 353 if( wrap_sns_log == false){ 354 jQuery(".xans-member-login .login__sns").css('display','block'); 355 } 356 }); 357 358 /* 기íì ë ì´ììë³ê²½ì ë°ë¥¸ íê²ê³ ì ìì¹ ë³ê²½ */ 359 var header_height = document.getElementById("header").scrollHeight; 360 jQuery('.xans-project-list h3 span').css('top',-header_height+40); 361 362 /* 모ë°ì¼ìì ì¼ííë ì´ì */ 363 jQuery('#shoppQbtn').click(function(){ 364 if (jQuery("#searchContent.xans-product-searchdata").is(":hidden")) { 365 jQuery('#searchContent.xans-product-searchdata').slideDown('normal'); 366 jQuery(this).text('ìì¸ê²ì ë«ê¸°'); 367 jQuery(this).css('margin-top','0'); 368 } else { 369 jQuery('#searchContent.xans-product-searchdata').slideUp('normal'); 370 jQuery(this).text('ìì¸ê²ì'); 371 } 372 }); 373 374 /* 모ë°ì¼ìì ì¼ííë ì´ì ììì ë²í¼ ì¨ê¹ */ 375 jQuery("#searchContent").each(function(){
376 var prdCount_count = jQuery("#ec-searchdata-area", this).length; 377 if ( prdCount_count == '0' ) { 378 jQuery('#shoppQbtn').hide(); 379 } 380 }); 381 382 /* ë§ì´íì´ì§ ëìê²ìê¸ ììë ë©ìì§ íì */ 383 jQuery(".xans-myshop-boardpackage").each(function(){ 384 var boardlist = jQuery(".xans-myshop-boardlist table", this).length; 385 if ( boardlist == '0' ) { 386 jQuery('.myshop_boardlist_empty').css('display','flex'); 387 } 388 }); 389 390 /* ë보기 í´ë¦ì */ 391 jQuery('.btnMore').click(function(){ 392 setTimeout(function(){ 393 ifmore(); 394 },600) 395 }); 396 setTimeout(function(){ 397 ifmore(); 398 },300) 399 400 /* ìë¨ ì¹´í ê³ ë¦¬ ë³ê²½ ê°ì§ */ 401 top_category(); // ìë¨ì¹´í ê³ ë¦¬ 402 jQuery('#header .xans-layout-category > ul').on('DOMSubtreeModified', function() { 403 top_category(); 404 }); 405}); 406 407/* ìë¨ ì¹´í ê³ ë¦¬ */ 408function top_category(){ 409 /* ìë¨ì¹´í ê³ ë¦¬ */ 410 jQuery('#header .top_category li').mouseenter(function(e) { 411 var $this = jQuery(this).addClass('on') 412 }).mouseleave(function(e) { 413 jQuery(this).removeClass('on'); 414 }); 415 416 /* ìë¨ì¹´í ê³ ë¦¬ ì¤ë¶ë¥ì²´í¬ */ 417 jQuery('#header .top_category ul.sub_cate01 li').each(function() { 418 if (jQuery(this).children('ul').length == 0) { 419 jQuery(this).addClass('noChild'); 420 } 421 }); 422} 423 424/* ìµìë¨ë°°ë ì¿ í¤ ì¤í¬ë¦½í¸ - ìì í */ 425function setCookiem(cookie_name, cookie_value, expire_date) { 426 var today = new Date(); 427 var expire = new Date(); 428 expire.setTime(today.getTime() + 3600000 * 24 * expire_date); 429 cookies = cookie_name + '=' + cookie_value + '; path=/;'; 430 if (expire_date != 0) cookies += 'expires=' + expire.toGMTString(); 431 document.cookie = cookies; 432} 433 434function delCookiem(cookie_name) { 435 var _today = new Date(); 436 var value = ''; 437 _today.setDate(_today.getDate() - 1); 438 document.cookie = cookie_name + "=" + value + '; path=/;' + "; expires=" + _today.toGMTString(); 439} 440 441function getCookiem(name) { 442 lims = document.cookie; 443 var index = lims.indexOf(name + "="); 444 if (index == -1) { 445 return null; 446 } 447 index = lims.indexOf("=", index) + 1; // first character 448 var endstr = lims.indexOf(';', index); 449 if (endstr == -1) { 450 endstr = lims.length; // last character 451 } 452 return unescape(lims.substring(index, endstr)); 453} 454 455/* ë보기 í´ë¦ì */ 456function ifmore(){ 457 /* ìí ì¸ë¤ì¼ ê´ì¬ìí ì¶ë ¥ & ì¨ê¹ */ 458 setTimeout(function(){ 459 jQuery('.ec-base-product .prdList .icon__box .wish').each(function(){ 460 var isstatus = jQuery(this).children('img').attr('icon_status'); 461 if ( isstatus == 'on' ) { 462 jQuery(this).addClass('on'); 463 } 464 }); 465 jQuery('.ec-base-product .prdList .icon__box .wish').click(function(){ 466 var isstatus = jQuery(this).children('img').attr('icon_status'); 467 if ( isstatus == 'off' ) { 468 jQuery(this).addClass('on'); 469 } else { 470 jQuery(this).removeClass('on'); 471 } 472 }); 473 },200) 474 jQuery('.ec-base-product .prdList > li').each(function(){ 475 /* ìíì§ì´ ì¥ë°êµ¬ë ì¬ì©ìí ì ì¨ê¹ */ 476 if (jQuery(".icon__box .cart > .ec-admin-icon", this).length == 1) { 477 } else { 478 jQuery('.icon__box .cart', this).hide(); 479 } 480 /* ìíì§ì´ ìµì 미리보기 ì¬ì©ìí ì ì¨ê¹ */ 481 if (jQuery(".icon__box .option > a", this).length == 1) { 482 } else { 483 jQuery('.icon__box .option', this).hide(); 484 } 485 /* ìíì§ì´ ê´ì¬ìí ì¬ì©ìí ì ì¨ê¹ */ 486 if (jQuery(".icon__box .wish > .ec-product-listwishicon", this).length == 1) { 487 } else { 488 jQuery('.icon__box .wish', this).hide(); 489 } 490 }); 491} 492//window popup script 493function winPop(url) { 494 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 495} 496/** 497 * document.location.href split 498 * return array Param 499 */ 500function getQueryString(sKey) 501{ 502 var sQueryString = document.location.search.substring(1); 503 var aParam = {}; 504 505 if (sQueryString) { 506 var aFields = sQueryString.split("&"); 507 var aField = []; 508 for(var i=0; i<aFields.length; i++){ 509 aField = aFields[i].split('='); 510 aParam[aField[0]] = aField[1]; 511 } 512 } 513 514 aParam.page = aParam.page ? aParam.page : 1; 515 return sKey ? aParam[sKey] : aParam; 516}; 517 518/** 519 * 구매ë²í¼ 520*/ 521var globalBuyBtnScrollFunc = function() { 522 // 구매ë²í¼ ê´ë ¨ë³ì 523 var sFixId = $('#orderFixItem').length > 0 ? 'orderFixItem' : 'fixedActionButton', 524 $area = $('#orderFixArea'), 525 $item = $('#' + sFixId + '').not($area); 526 $btnTalk = $('#btn_talk'), 527 $btnTalk2 = $('#btn_talk2'), 528 $scrollTop = $('#scrollTop') 529 530 $(window).scroll(function(){ 531 try { 532 // 구매ë²í¼ ê´ë ¨ë³ì
533 var iCurrentHeightPos = $(this).scrollTop() + $(this).height(), 534 iButtonHeightPos = $item.offset().top; 535 536 if (iCurrentHeightPos > iButtonHeightPos || iButtonHeightPos < $(this).scrollTop() + $item.height()) { 537 if (iButtonHeightPos < $(this).scrollTop() - $item.height()) { 538 $area.fadeIn('fast'); 539 $btnTalk.addClass('pb'); 540 $btnTalk2.addClass('pb'); 541 $scrollTop.addClass('pb'); 542 543 } else { 544 $area.hide(); 545 $btnTalk.removeClass('pb'); 546 $btnTalk2.removeClass('pb'); 547 $scrollTop.removeClass('pb'); 548 549 } 550 } else { 551 $area.fadeIn('fast'); 552 $btnTalk.addClass('pb'); 553 $btnTalk2.addClass('pb'); 554 $scrollTop.addClass('pb'); 555 556 } 557 } catch(e) { } 558 }); 559}; 560 561$(function(){ 562 // tab 563 $.eTab = function(ul) { 564 $(ul).find('a').on('click', function() { 565 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 566 _target = $(this).attr('href'), 567 _siblings = '.' + $(_target).attr('class'); 568 $(_target).show().siblings(_siblings).hide(); 569 return false 570 }); 571 } 572 if ( window.call_eTab ) { 573 call_eTab(); 574 }; 575 globalBuyBtnScrollFunc(); 576}); 577 578 579 580$(function(){ 581 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 582 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 583 var bShippingCountryProc = false; 584 585 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 586 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 587 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 588 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 589 } else { 590 $('.thumb .xans-layout-multishoplistitem').hide(); 591 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 592 if (typeof(aShippingCountryCode) != 'undefined' && aS
592hippingCountryCode != null && aShippingCountryCode.length > 2) { 593 var sShippingCountryValue = aShippingCountryCode[2]; 594 } 595 596 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 597 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 598 599 if (aHrefCountryValue.length == 2) { 600 var sShippingCountryValue = aHrefCountryValue[1]; 601 } 602 603 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 604 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 605 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 606 607 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 608 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 609 } 610 } 611 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 612 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 613 var bShippingCountryProc = true; 614 615 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 616 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 617 var expires = new Date(); 618 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 619 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 620 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 621 $("#f_country").val(sShippingCountryValue).change(); 622 } 623 } 624 } 625 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 626 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 627 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 628 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 629 } else { 630 $('.thumb .xans-layout-multishoplistitem').hide(); 631 } 632 633 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 634 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 635 $(".xans-layout-multishopshipping").hide(); 636 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 637 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 638 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 639 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 640 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 641 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 642 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 643 $(".xans-layout-multishopshipping").show(); 644 } 645 } 646 647 $(".xans-layout-multishopshipping .btnClose").on("click", function() { 648 $(".xans-layout-multishopshipping").hide(); 649 }); 650 651 $(".xans-layout-multishopshipping .ec-base-button a").on("click", function() { 652 var expires = new Date(); 653 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 654 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 655 656 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°
656ì ëê¹ 657 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 658 659 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 660 }); 661 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").on("click", function() { 662 $(".xans-layout-multishopshipping").show(); 663 }); 664 } 665});
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.