PageSourceSearch

https://homemadeclub.co.kr/ind-script/optimizer_user.php?filename=…8f75823ce9265ec59ebeeb5&t=1697592751&user=T

js homemadeclub.co.kr collected 2026-10-06 03:34:33 UTC 29,435 bytes, 864 lines download raw bytes

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

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.