PageSourceSearch

https://dain-mall.com/ind-script/optimizer_user.php?filename=K05J5…b6d1f59691df0c60e610c48&t=1790930976&user=T

js dain-mall.com collected 2026-10-06 14:03:53 UTC 24,062 bytes, 665 lines download raw bytes

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.