PageSourceSearch

https://mydoll-shop.com/ind-script/optimizer_user.php?filename=jY1…aac8f4deab80140be731fe8&t=1576148633&user=T

js mydoll-shop.com collected 2026-10-06 03:41:39 UTC 16,686 bytes, 416 lines download raw bytes

1/**
2 * 카테고리 마우스 오버 이미지
3 * 카테고리 서브 메뉴 출력
4 */
5
6$(document).ready(function(){
7
8    var methods = {
9        aCategory    : [],
10        aSubCategory : {},
11
12        get: function()
13        {
14             $.ajax({
15                url : '/exec/front/Product/SubCategory',
16                dataType: 'json',
17                success: function(aData) {
18
19                    if (aData == null || aData == 'undefined') return;
20                    for (var i=0; i<aData.length; i++)
21                    {
22                        var sParentCateNo = aData[i].parent_cate_no;
23
24                        if (!methods.aSubCategory[sParentCateNo]) {
25                            methods.aSubCategory[sParentCateNo] = [];
26                        }
27
28                        methods.aSubCategory[sParentCateNo].push( aData[i] );
29                    }
30                }
31            });
32        },
33
34        getParam: function(sUrl, sKey) {
35
36            var aUrl         = sUrl.split('?');
37            var sQueryString = aUrl[1];
38            var aParam       = {};
39
40            if (sQueryString) {
41                var aFields = sQueryString.split("&");
42                var aField  = [];
43                for (var i=0; i<aFields.length; i++) {
44                    aField = aFields[i].split('=');
45                    aParam[aField[0]] = aField[1];
46                }
47            }
48            return sKey ? aParam[sKey] : aParam;
49        },
50
51        getParamSeo: function(sUrl) {
52            var aUrl         = sUrl.split('/');
53            return aUrl[3] ? aUrl[3] : null;
54        },
55
56        show: function(overNode, iCateNo) {
57
58            if (methods.aSubCategory[iCateNo].length == 0) {
59                return;
60            }
61
62            var aHtml = [];
63            aHtml.push('<ul>');
64            $(methods.aSubCategory[iCateNo]).each(function() {
65                //aHtml.push('<li><a href="'+this.link_product_list+'">'+this.name+'</a></li>');
66                aHtml.push('<li><a href="/'+this.design_page_url+this.param+'">'+this.name+'</a></li>');
67            });
68            aHtml.push('</ul>');
69
70
71            var offset = $(overNode).offset();
72            $('<div class="sub-category"></div>')
73                .appendTo(overNode)
74                .html(aHtml.join(''))
75                .find('li').mouseover(function(e) {
76                    $(this).addClass('over');
77                }).mouseout(function(e) {
78                    $(this).removeClass('over');
79                });
80        },
81
82        close: function() {
83            $('.sub-category').remove();
84        }
85    };
86
87    methods.get();
88
89
90    $('.xans-layout-category li').mouseenter(function(e) {
91        var $this = $(this).addClass('on'),
92        iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no'));
93
94        if (!iCateNo) {
95            iCateNo = Number(methods.getParamSeo($this.find('a').attr('href')));
96        }
97
98        if (!iCateNo) {
99           return;
100        }
101
102        methods.show($this, iCateNo);
103     }).mouseleave(function(e) {
104        $(this).removeClass('on');
105
106          methods.close();
107     });
108});
109$(function(){ 
110    if($(".menuCategory > li").length==0){
111         $(".menuCategory").hide();
112    };
113});
114/**
115 * 움직이는 배너 Jquery Plug-in
116 * @author  cafe24
117 */
118
119(function($){
120
121    $.fn.floatBanner = function(options) {
122        options = $.extend({}, $.fn.floatBanner.defaults , options);
123
124        return this.each(function() {
125            var aPosition = $(this).position();
126            var jbOffset = $(this).offset();
127            var node = this;
128
129            $(window).scroll(function() {
130                var _top = $(document).scrollTop();
131                _top = (aPosition.top < _top) ? _top : aPosition.top;
132
133                setTimeout(function () {
134                    var newinit = $(document).scrollTop();
135
136                    if ( newinit > jbOffset.top ) {
137                        _top -= jbOffset.top;
138                        var container_height = $("#wrap").height();
139                        var quick_height = $(node).height();
140                        var cul = container_height - quick_height;
141                        if(_top > cul){
142                            _top = cul;
143                        }
144                    }else {
145                        _top = 0;
146                    }
147
148                    $(node).stop().animate({top: _top}, options.animate);
149                }, options.delay);
150            });
151        });
152    };
153
154    $.fn.floatBanner.defaults = {
155        'animate'  : 500,
156        'delay'    : 500
157    };
158
159})(jQuery);
160
161/**
162 * 문서 구동후 시작
163 */
164$(document).ready(function(){
165    $('#banner:visible, #quick:visible').floatBanner();
166
167    //placeholder
168    $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){
169        var placeholderName = $(this).parents().attr('title');
170        $(this).attr("placeholder", placeholderName);
171    });
172    /* placeholder ie8, ie9 */
173    $.fn.extend({
174        placeholder : function() {
175            //IE 8 버전에는 hasPlaceholderSupport() 값이 false를 리턴
176           if (hasPlaceholderSupport() === true) {
177                return this;
178            }
179            //hasPlaceholderSupport() 값이 false 일 경우 아래 코드를 실행
180            return this.each(function(){
181                var findThis = $(this);
182                var sPlaceholder = findThis.attr('placeholder');
183                if ( ! sPlaceholder) {
184                   return;
185                }
186                findThis.wrap('<label class="ePlaceholder" />');
187                var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : '';
188                findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>');
189                this.onpropertychange = function(e){
190                    e = event || e;
191                    if (e.propertyName == 'value') {
192                        $(this).trigger('focusout');
193                    }
194                };
195                //공통 class
196                var agent = navigator.userAgent.toLowerCase();
197                if (agent.indexOf("msie") != -1) {
198                    $(".ePlaceholder").css({"position":"relative"});
199                    $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"});
200                    $(".ePlaceholder label").css({"padding":"0"});
201                }
202            });
203        }
204    });
205
206    $(':input[placeholder]').placeholder(); //placeholder() 함수를 호출
207
208    //클릭하면 placeholder 숨김
209    $('body').delegate('.ePlaceholder span', 'click', function(){
210        $(this).hide();
211    });
212
213    //input창 포커스 인 일때 placeholder 숨김
214    $('body').delegate('.ePlaceholder :input', 'focusin', function(){
215        $(this).prev('span').hide();
216    });
217
218    //input창 포커스 아웃 일때 value 가 true 이면 숨김, false 이면 보여짐
219    $('body').delegate('.ePlaceholder :input', 'focusout', function(){
220        if (this.value) {
221            $(this).prev('span').hide();
222        } else {
223            $(this).prev('span').show();
224        }
225    });
226
227    //input에 placeholder가 지원이 되면 true를 안되면 false를 리턴값으로 던져줌
228    function hasPlaceholderSupport() {
229        if ('placeholder' in document.createElement('input')) {
230            return true;
231        } else {
232            return false;
233        }
234    }
235});
236
237/**
238 *  썸네일 이미지 엑박일경우 기본값 설정
239 */
240$(window).load(function() {
241    $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){
242        var $img = new Image();
243        $img.onerror = function () {
244                $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif";
245        }
246        $img.src = this.src;
247    });
248});
249//window popup script
250function winPop(url) {
251    window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no");
252}
253/**
254 * document.location.href split
255 * return array Param
256 */
257function getQueryString(sKey)
258{
259    var sQueryString = document.location.search.substring(1);
260    var aParam       = {};
261
262    if (sQueryString) {
263        var aFields = sQueryString.split("&");
264        var aField  = [];
265        for (var i=0; i<aFields.length; i++) {
266            aField = aFields[i].split('=');
267            aParam[aField[0]] = aField[1];
268        }
269    }
270
271    aParam.page = aParam.page ? aParam.page : 1;
272    return sKey ? aParam[sKey] : aParam;
273};
274
275$(document).ready(function(){
276    // tab
277    $.eTab = function(ul){
278        $(ul).find('a').click(function(){
279            var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'),
280                _target = $(this).attr('href'),
281                _siblings = '.' + $(_target).attr('class');
282            $(_target).show().siblings(_siblings).hide();
283            return false
284        });
285    }
286    if ( window.call_eTab ) {
287        call_eTab();
288    };
289});
290(function($){
291$.fn.extend({
292    center: function() {
293        this.each(function() {
294            var
295                $this = $(this),
296                $w = $(window);
297            $this.css({
298                position: "absolute",
299                top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px",
300                left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px"
301            });
302        });
303        return this;
304    }
305});
306$(function() {
307    var $container = function(){/*
308<div id="modalContainer">
309    <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe>
310</div>');
311*/}.toString().slice(14,-3);
312    $('body')
313    .append($('<div id="modalBackpanel"></div>'))
314    .append($($container));
315    function closeModal () {
316        $('#modalContainer').hide();
317        $('#modalBackpanel').hide();
318    }
319    $('#modalBackpanel').click(closeModal);
320    zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) {
321        var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup;
322        $('#modalContent').attr('src', $url);
323        $('#modalContent').bind("load",function(){
324            $(".header .close",this.contentWindow.document.body).bind("click", closeModal);
325        });
326        $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show();
327        $('#modalContainer').center().show();
328    }
329});
330})(jQuery);
331$(document).ready(function(){
332    if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") {
333        var sShippingCountryCode4Cookie = 'shippingCountryCode';
334        var bShippingCountryProc = false;
335
336        // 배송국가 선택 설정이 사용안함이면 숨김
337        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) {
338            $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide();
339            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide();
340        } else {
341            $('.thumb .xans-layout-multishoplistitem').hide();
342            var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)');
343            if (typeof(aShippingCountryCode) != 'undefined' && aS
343hippingCountryCode != null && aShippingCountryCode.length > 2) {
344                var sShippingCountryValue = aShippingCountryCode[2];
345            }
346
347            // query string으로 넘어 온 배송국가 값이 있다면, 그 값을 적용함
348            var aHrefCountryValue = decodeURIComponent(location.href).split("/?country=");
349
350            if (aHrefCountryValue.length == 2) {
351                var sShippingCountryValue = aHrefCountryValue[1];
352            }
353
354            // 메인 페이지에서 국가선택을 안한 경우, 그 외의 페이지에서 셋팅된 값이 안 나오는 현상 처리
355            if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) {
356                $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
357
358                if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) {
359                    $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val());
360                }
361            }
362            if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) {
363                sShippingCountryValue = sShippingCountryValue.split("#")[0];
364                var bShippingCountryProc = true;
365
366                $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue);
367                $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
368                var expires = new Date();
369                expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30일간 쿠키 유지
370                document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString();
371                if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) {
372                    $("#f_country").val(sShippingCountryValue).change();;
373                }
374            }
375        }
376        // 언어선택 설정이 사용안함이면 숨김
377        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) {
378            $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide();
379            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide();
380        } else {
381            $('.thumb .xans-layout-multishoplistitem').hide();
382        }
383
384        // 배송국가 및 언어 설정이 둘 다 사용안함이면 숨김
385        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) {
386            $(".xans-layout-multishopshipping").hide();
387            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide();
388        } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // 배송국가 값을 처리한 적이 없고, 메인화면일 때만 선택 레이어를 띄움
389            var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val();
390            $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue);
391            $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
392            // 배송국가 선택을 사용해야 레이어를 보이게 함
393            if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) {
394                $(".xans-layout-multishopshipping").show();
395            }
396        }
397
398        $(".xans-layout-multishopshipping .close").bind("click", function() {
399            $(".xans-layout-multishopshipping").hide();
400        });
401
402        $(".xans-layout-multishopshipping .ec-base-button a").bind("click", function() {
403            var expires = new Date();
404            expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30일간 쿠키 유지
405            document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString();
406
407            // 도메인 문제로 쿠키로 배송국가 설정이 안 되는 경우를 위해 query string으로 배송국가 값
407을 넘김
408            var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val());
409
410            location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting;
411        });
412        $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").bind("click", function() {
413            $(".xans-layout-multishopshipping").show();
414        });
415    }
416});

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.