PageSourceSearch

https://eidous.com/ind-script/optimizer_user.php?filename=jcxBEsIg…881841925e2d0fea1ddd6dd&t=1760505272&user=T

js eidous.com collected 2026-10-07 17:53:38 UTC 26,612 bytes, 793 lines download raw bytes

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.