PageSourceSearch

https://sjpork.co.kr/ind-script/optimizer_user.php?filename=jc9RCs…176772855d39001aac8b803&t=1727242448&user=T

js sjpork.co.kr collected 2026-10-06 14:03:36 UTC 27,235 bytes, 779 lines download raw bytes

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

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.