PageSourceSearch

https://hyeyeo.com/ind-script/optimizer_user.php?filename=bc0xDoAg…c4dd7c53ed5c040de7f9477&t=1582528887&user=T

js hyeyeo.com collected 2026-10-06 12:54:41 UTC 29,450 bytes, 671 lines download raw bytes

1/**
2 * 모바일쇼핑몰 슬라이딩메뉴 */
3var aCategory = [];
4$(document).ready(function(){
5    $('#header').append('<div id="dimmedSlider"></div>');
6    var methods = {
7        aCategory    : [],
8        aSubCategory : {},
9        get: function()
10        {
11            $.ajax({
12                url : '/exec/front/Product/SubCategory',
13                dataType: 'json',
14                success: function(aData) {
15                    if (aData == null || aData == 'undefined') {
16                        methods.checkSub();
17                        return;
18                    }
19                    for (var i=0; i<aData.length; i++)
20                    {
21                        var sParentCateNo = aData[i].parent_cate_no;
22                        var sCateNo = aData[i].cate_no;
23                        if (!methods.aSubCategory[sParentCateNo]) {
24                            methods.aSubCategory[sParentCateNo] = [];
25                        }
26                        if (!aCategory[sCateNo]) {
27                            aCategory[sCateNo] = [];
28                        }
29                        methods.aSubCategory[sParentCateNo].push( aData[i] );
30                        aCategory[sCateNo] = aData[i];
31                    }
32                    methods.checkSub();
33                    methods.getMyCateList();
34                }
35            });
36        },
37        getParam: function(sUrl, sKey) {
38            var aUrl         = sUrl.split('?');
39            var sQueryString = aUrl[1];
40            var aParam       = {};
41            if (sQueryString) {
42                var aFields = sQueryString.split("&");
43                var aField  = [];
44                for (var i=0; i<aFields.length; i++) {
45                    aField = aFields[i].split('=');
46                    aParam[aField[0]] = aField[1];
47                }
48            }
49            return sKey ? aParam[sKey] : aParam;
50        },
51
52        show: function(overNode, iCateNo) {
53            var oParentNode = overNode;
54            var aHtml = [];
55            var sMyCateList = localStorage.getItem("myCateList");
56            if (methods.aSubCategory[iCateNo] != undefined) {
57                aHtml.push('<ul class="slideSubMenu">');
58                $(methods.aSubCategory[iCateNo]).each(function() {
59                    var sNextParentNo = this.cate_no;
60                    var sCateSelected = (checkInArray(sMyCateList, this.cate_no) == true) ? ' selected' : '';
61                    if (methods.aSubCategory[sNextParentNo] == undefined) {
62                        aHtml.push('<li class="noChild" id="cate'+this.cate_no+'">');
63                        var sHref = '/product/list_thumb.html'+this.param;
64                    } else {
65                        aHtml.push('<li id="cate'+this.cate_no+'">');
66                        var sHref = '#none';
67                    }
68                    aHtml.push('<a href="'+sHref+'" class="cate" cate="'+this.param+'" onclick="subMenuEvent(this);">'+this.name+'</a>');
69                    if (methods.aSubCategory[sNextParentNo] != undefined)  aHtml.push('<a href="/product/list_thumb.html'+this.param+'" class="view">상품보기</a>');
70                    aHtml.push('<button type="button" class="icoBookmark'+sCateSelected+'" id="icoBookmark">즐겨찾기 추가</button>');
71
72                    if (methods.aSubCategory[sNextParentNo] != undefined) {
73                        aHtml.push('<ul>');
74                        $(methods.aSubCategory[sNextParentNo]).each(function() {
75                            var sNextParentNo2 = this.cate_no;
76                            var sCateSelected = (checkInArray(sMyCateList, this.cate_no) == true) ? ' selected' : '';
77                            if (methods.aSubCategory[sNextParentNo2] == undefined) {
78                                aHtml.push('<li class="noChild" id="cate'+this.cate_no+'">');
79                                var sHref = '/product/list_thumb.html'+this.param;
80                            } else {
81                                aHtml.push('<li id="cate'+this.cate_no+'">');
82                                var sHref = '#none';
83                            }
84                            aHtml.push('<a href="'+sHref+'" class="cate" cate="'+this.param+'" onclick="subMenuEvent(this);">'+this.name+'</a>');
85                            if (methods.aSubCategory[sNextParentNo] != undefined)  aHtml.push('<a href="/product/list_thumb.html'+this.param+'" class="view">상품보기</a>');
86                            aHtml.push('<button type="button" class="icoBookmark'+sCateSelected+'" id="icoBookmark">즐겨찾기 추가</button>');
87
88                            if (methods.aSubCategory[sNextParentNo2] != undefined) {
89                                aHtml.push('<ul>');
90
91                                $(methods.aSubCategory[sNextParentNo2]).each(function() {
92                                    aHtml.push('<li class="noChild" id="cate'+this.cate_no+'">');
93                                    var sCateSelected = (checkInArray(sMyCateList, this.cate_no) == true) ? ' selected' : '';
94                                    aHtml.push('<a href="/product/list_thumb.html'+this.param+'" class="cate" cate="'+this.param+'" onclick="subMenuEvent(this);">'+this.name+'</a>');
95                                    aHtml.push('<button type="button" class="icoBookmark'+sCateSelected+'" id="icoBookmark">즐겨찾기 추가</button>');
96                                    aHtml.push('</li>');
97                                });
98                                aHtml.push('</ul>');
99                            }
100                            aHtml.push('</li>');
101                        });
102                        aHtml.push('</ul>');
103                    }
104                    aHtml.push('</li>');
105                });
106                aHtml.push('</ul>');
107            }
108            $(oParentNode).append(aHtml.join(''));
109        },
110        close: function() {
111            $('.slideSubMenu').remove();
112        },
113        checkSub: function() {
114            $('.cate').each(function(){
115                var iCateNo = Number(methods.getParam($(this).attr('cate'), 'cate_no'));
116                var result = methods.aSubCategory[iCateNo];
117                if (result == undefined) {
118                    if ($(this).closest('#slideProjectList').length) {
119                        var sHref = '/product/project.html'+$(this).attr('cate');
120                    } else {
121                        var sHref = '/product/list_thumb.html'+$(this).attr('cate');
122                    }
123
124                    $(this).attr('href', sHref);
125                    $(this).parent().attr('class', 'noChild');
126                }
127            });
128        },
129        getMyCateList :function() {
130            var sMyCateList = localStorage.getItem("myCateList");
131            if (sMyCateList != null && sMyCateList != "") {
132                var aTempList = sMyCateList.split("|");
133                var aHtml = [];
134                for (var i = 0; i < aTempList.length; i++) {
135                    if (aTempList[i] != "") {
136                        var iCateNo = aTempList[i];
137                        var sCateName = aCategory[iCateNo].name;
138                        var sCateParam = aCategory[iCateNo].param;
139                        aHtml.push('<li id="bookmark'+iCateNo+'"><a href="/product/list_thumb.html'+sCateParam+'" book_mark="'+iCateNo+'">'+sCateName+'</a><button type="button" class="icoBookmark selected" onclick="setMyCateList('+iCateNo+');">즐겨찾기 삭제</button></li>');
140                        $("#cate"+iCateNo+" #icoBookmark").addClass("selected");
141                    }
142                }
143                $('#bookmartCateArea').append('<ul>'+aHtml.join('')+'</ul>');
144            }
145            chkMyCateList();
146        }
147    };
148
149    var offCover = {
150        init : function() {
151            $(function() {
152                offCover.resize();
153                $(window).resize(function(){
154                    offCover.resize();
155                });
156            });
157        },
158        layout : function(){
159            if ($('html').hasClass('expand')) {
160                $('#aside').css({'visibility':'visible'});
161                $('html, body').css({"overflow-x":""})
162
163            } else {
164                setTimeout(function(){
165                    $('#aside').css({'visibility':''});
166                }, 300);
167            }
168            $('#aside').css({'visibility':'visible'});
169        },
170        resize : function(){
171            var height = $('body').height();
172            $('#container').css({'min-height':height});
173        }
174    };
175    methods.get();
176
177    offCover.init();
178
179    $('#header .fold, #aside .btnClose').click(function(e){
180        e.preventDefault();
181        $('#dimmedSlider').toggle();
182        $('html').toggleClass('expand');
183
184        $('#dimmedSlider').one('click', function(e) {
185            $('html').toggleClass('expand');
186            $('#dimmedSlider').toggle();
187        });
188        offCover.layout();
189    });
190
191    $('#slideCateList li > a.cate').click(function(e) {
192        var iCateNo = Number(methods.getParam($(this).attr('cate'), 'cate_no'));
193        if ($(this).parent().attr('class') == 'xans-record- selected') {
194            methods.close();
195        } else {
196            if (!iCateNo) return;
197            $('#aside #slideCateList li').removeClass('selected');
198            methods.close();
199            methods.show(this.parentNode, iCateNo);
200        }
201    });
202
203    $('#aside ul a.cate').click(function(e){
204        $(this).parent().find('li').removeClass('selected');
205        $(this).parent().toggleClass('selected');
206        if (!$(this).parent('li').hasClass('noChild')){
207            e.preventDefault();
208        }
209    });
210
211    $("#icoBookmark").live('click', function() {
212        var iCateNo = Number(methods.getParam($(this).parent().find('a').attr('cate'), 'cate_no'));
213        setMyCateList(iCateNo, $(this));
214    });
215
216    $('#slideCateList h2').click(function() {
217        var oParentId = $(this).parent().attr('id');
218        if (oParentId == 'slideCateList' || oParentId == 'slideMultishopList' || oParentId == 'slideProjectList') {
219            ($(this).attr('class') == 'selected') ? $(this).next().hide() : $(this).next().show();
220        } else if (oParentId == 'bookmarkCategory') {
221            if ($(this).attr('class') == 'selected') {
222                $(this).parent().find('#bookmarkEmpty').hide();
223                $(this).parent().find('#bookmartCateArea').hide();
224            } else {
225                chkMyCateList();
226                $(this).parent().find('#bookmartCateArea').show();
227            }
228        }
229        $(this).toggleClass('selected');
230    });
231});
232function subMenuEvent(obj) {
233    $(obj).parent().find('li').removeClass('selected');
234    $(obj).parent().toggleClass('selected');
235}
236function setMyCateList(iCateNo, oObj) {
237    $(oObj).toggleClass('selected');
238    var sMyCateList = localStorage.getItem("myCateList");
239    var aCateList = [];
240    if (checkInArray(sMyCateList, iCateNo) == true) {
241        var aTemp = sMyCateList.split("|");
242        for (var i = 0 ; i < aTemp.length ; i++) {
243            if (aTemp[i] != iCateNo) {
244                aCateList.push(aTemp[i]);
245            }
246        }
247        var sCateList = aCateList.join('|');
248        localStorage.setItem("myCateList" , sCateList);
249        $('#bookmartCateArea #bookmark'+iCateNo).remove();
250        if (aCateList.length == 0) {
251            $('#bookmarkCategory #bookmartCateArea').find('ul').remove();
252        }
253        $("#cate"+iCateNo+" > #icoBookmark").removeClass("selected");
254    } else {
255        var sCateName = aCategory[iCateNo].name;
256        var sCateParam = aCategory[iCateNo].param;
257        var sHtml = '';
258        if (sMyCateList == null || sMyCateList == '') {
259            sHtml = '<ul><li id="bookmark'+iCateNo+'"><a href="/product/list_thumb.html'+sCateParam+'" book_mark="'+iCateNo+'">'+sCateName+'</a><button type="button" class="icoBookmark selected" onclick="setMyCateList('+iCateNo+');">즐겨찾기 삭제</button></li></ul>'
260            $('#bookmarkCategory #bookmartCateArea').append(sHtml);
261        } else {
262            sHtml = '<li id="bookmark'+iCateNo+'"><a href="/product/list_thumb.html'+sCateParam+'" book_mark="'+iCateNo+'">'+sCateName+'</a><button type="button" class="icoBookmark selected" onclick="setMyCateList('+iCateNo+');">즐겨찾기 삭제</button></li>'
263            $('#bookmarkCategory #bookmartCateArea ul').append(sHtml);
264        }
265        $(this).addClass('selected');
266        if (sMyCateList == null || sMyCateList == '') {
267            localStorage.setItem('myCateList' , iCateNo);
268        } else {
269            localStorage.setItem('myCateList' , sMyCateList + '|' + iCateNo);
270        }
271    }
272    chkMyCateList();
273}
274function checkInArray(sBookmarkList, iCateNo) {
275    if (sBookmarkList == null) return false;
276    var aBookmarkList = sBookmarkList.split("|");
277    for (var i = 0; i < aBookmarkList.length; i++) {
278        if (aBookmarkList[i] == iCateNo) {
279            return true;
280        }
281    }
282    return false;
283}
284function chkMyCateList() {
285    var sMyCateList = localStorage.getItem("myCateList");
286    if (sMyCateList == null || sMyCateList == '') {
287        $('#bookmarkEmpty').show();
288    } else {
289        $('#bookmarkEmpty').hide();
290    }
291}
292
293$(document).ready(function(){
294    if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") {
295        var sShippingCountryCode4Cookie = 'shippingCountryCode';
296        var bShippingCountryProc = false;
297
298        // 배송국가 선택 설정이 사용안함이면 숨김
299        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) {
300            $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide();
301            $('.xans-layout-multishoplist .countryTitle').hide();
302            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptioncountry').hide();
303        } else { // 배송국가 선택 설정이 사용이면 쿠키값이나 query string으로 넘어온 배송국가 값
303을 사용
304            $('.xans-multishop-listitem').hide();
305            $('.xans-layout-multishoplist > h1').hide();
306            $('.xans-layout-multishoplist .languageTitle').show();
307            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptionlanguage').show();
308            $('.xans-layout-multishoplist .countryTitle').show();
309            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptioncountry').show();
310
311            var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)');
312
313            if (typeof(aShippingCountryCode) != 'undefined' && aShippingCountryCode != null && aShippingCountryCode.length > 2) {
314                var sShippingCountryValue = aShippingCountryCode[2];
315            }
316
317            // query string으로 넘어 온 배송국가 값이 있다면, 그 값을 적용함
318            var aHrefCountryValue = decodeURIComponent(location.href).split("/?country=");
319
320            if (aHrefCountryValue.length == 2) {
321                var sShippingCountryValue = aHrefCountryValue[1];
322            }
323
324            // 메인 페이지에서 국가선택을 안한 경우, 그 외의 페이지에서 셋팅된 값이 안 나오는 현상 처리
325            if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) {
326                $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join(""));
327                if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) {
328                    $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val());
329                }
330            }
331            if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) {
332                sShippingCountryValue = sShippingCountryValue.split("#")[0];
333                var bShippingCountryProc = true;
334
335                $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue);
336                $(".xans-layout-multishoplist .xans-multishop-listitem .countryLink").text($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text());
337
338                var expires = new Date();
339                expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30일간 쿠키 유지
340                document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString();
341
342                if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) {
343                    $("#f_country").val(sShippingCountryValue).change();;
344                }
345            }
346        }
347
348        // 언어선택 설정이 사용안함이면 숨김
349        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) {
350            $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide();
351            $('.xans-layout-multishoplist .languageTitle').hide();
352            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptionlanguage').hide();
353        } else {
354            $('.xans-multishop-listitem').hide();
355            $('.xans-layout-multishoplist > h1').hide();
356            $('.xans-layout-multishoplist .languageTitle').show();
357            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptionlanguage').show();
358            $('.xans-layout-multishoplist .countryTitle').show();
359            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptioncountry').show();
360        }
361
362        // 배송국가 및 언어 설정이 둘 다 사용안함이면 숨김
363        if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) {
364            $(".xans-layout-multishopshipping").hide();
365            $('.xans-layout-multishoplist .countryTitle').hide();
366            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptioncountry').hide();
367            $('.xans-layout-multishoplist .languageTitle').hide();
368            $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptionlanguage').hide();
369        } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // 배송국가 값
369을 처리한 적이 없고, 메인화면일 때만 선택 레이어를 띄움
370            var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val();
371            $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue);
372            $(".xans-layout-multishoplist .xans-multishop-listitem .countryLink").text($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text());
373            // 배송국가 선택을 사용해야 레이어를 보이게 함
374            if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) {
375                $(".xans-layout-multishopshipping").show();
376            }
377        }
378
379        $(".xans-layout-multishopshipping .btnClose").bind("click", function() {
380            $(".xans-layout-multishopshipping").hide();
381        });
382
383        $(".xans-layout-multishopshipping .ec-base-button a").bind("click", function() {
384            var expires = new Date();
385            expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30일간 쿠키 유지
386            document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString();
387
388            // 도메인 문제로 쿠키로 배송국가 설정이 안 되는 경우를 위해 query string으로 배송국가 값을 넘김
389            var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val());
390
391            location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting;
392        });
393        $(".xans-layout-multishoplist .xans-multishop-listitem .countryLink").bind("click", function(e) {
394            $('#dimmedSlider').toggle();
395            $('html').toggleClass('expand');
396            $(".xans-layout-multishopshipping").show();
397            e.preventDefault();
398        });
399        $(".xans-layout-multishoplist .xans-multishop-listitem .languageLink").bind("click", function(e) {
400            $('#dimmedSlider').toggle();
401            $('html').toggleClass('expand');
402            $(".xans-layout-multishopshipping").show();
403            e.preventDefault();
404        });
405    }
406});
407// 썸네일 이미지 엑박일경우 기본값 설정
408$(window).load(function() {
409
410    $(".thumbnail img, img.thumbImage, img.bigImage").each(function($i,$item){
411        var $img = new Image();
412        $img.onerror = function () {
413            $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif";
414        }
415        $img.src = this.src;
416    });
417
418});
419
420$(document).ready(function(){
421    // 토글
422    $('div.eToggle .title').click(function(){
423        var toggle = $(this).parent('.eToggle');
424        if(toggle.hasClass('disable') == false){
425            $(this).parent('.eToggle').toggleClass('selected')
426        }
427    });
428
429    $('dl.eToggle dt').click(function(){
430        $(this).toggleClass('selected');
431        $(this).next('dd').toggleClass('selected');
432    });
433
434    //장바구니 페이지 수량폼 Type 변경
435    $('[id^="quantity"]').each(function() {
436        $(this).get(0).type = 'tel';
437    });
438
439    // 모바일에서 공급사 테이블 th 강제조절
440    $('.xans-mall-supplyinfo, .supplyInfo').find('table > colgroup').find('col').eq(0).width(98);
441    $('.xans-mall-supplyinfo, .supplyInfo').find('th, td').css({padding:'13px 10px 12px'});
442
443    /**
444     *  메인카테고리 toggle
445     */
446    $('.xans-product-listmain h2').toggle(function(){
447        $(this).css('background-image', 'url("//img.echosting.cafe24.com/skin/mobile_ko_KR/layout/bg_title_open.gif")');
448        $(this).siblings().hide();
449        $(this).parent().find('div.ec-base-paginate').hide();
450        $(this).parent().next('div.xans-product-listmore').hide();
451    }, function() {
452        $(this).css('background-image', 'url("//img.echosting.cafe24.com/skin/mobile_ko_KR/layout/bg_title_close.gif")');
453        $(this).siblings().show();
454        $(this).parent().find('div.ec-base-paginate').show();
455        $(this).parent().next('div.xans-product-listmore').show();
456    });
457
458    /* base header 검색 레이어 */
459    $('#layout .header').find('.searchBtn .btnSearch').bind('click', function(){
460        var $baseHeader = $('#layout .header');
461        $baseHeader.addClass('open');
462        $('#dimmedSlider').one('click', function(){
463            $baseHeader.removeClass('open');
464        });
465    });
466
467    /**
468     *  상단탑버튼
469     */
470    var globalTopBtnScrollFunc = function() {
471        // 탑버튼 관련변수
472        var $btnTop = $('#btnTop');
473
474        $(window).scroll(function() {
475            try {
476                var iCurScrollPos = $(this).scrollTop();
477
478                if (iCurScrollPos > ($(this).height() / 2)) {
479                    $btnTop.fadeIn('fast');
480                } else {
481                    $btnTop.fadeOut('fast');
482                }
483            } catch(e) { }
484        });
485    };
486
487    /**
488     *  구매버튼
489     */
490    var globalBuyBtnScrollFunc = function() {
491        // 구매버튼 관련변수
492        var sFixId = $('#orderFixItem').size() > 0  ? 'orderFixItem' : 'fixedActionButton',
493            $area = $('#orderFixArea'),
494            $item = $('#' + sFixId + '').not($area);
495
496        $(window).scroll(function(){
497            try {
498                // 구매버튼 관련변수
499                var iCurrentHeightPos = $(this).scrollTop() + $(this).height(),
500                    iButtonHeightPos = $item.offset().top;
501
502                if (iCurrentHeightPos > iButtonHeightPos || iButtonHeightPos < $(this).scrollTop() + $item.height()) {
503                    if (iButtonHeightPos < $(this).scrollTop() - $item.height()) {
504                        $area.fadeIn('fast');
505                    } else {
506                        $area.hide();
507                    }
508                } else {
509                    $area.fadeIn('fast');
510                }
511            } catch(e) { }
512        });
513    };
514
515    globalTopBtnScrollFunc();
516    globalBuyBtnScrollFunc();
517});
518
519// 공통레이어팝업 오픈
520var globalLayerOpenFunc = function(_this) {
521    this.id = $(_this).data('id');
522    this.param = $(_this).data('param');
523    this.basketType = $('#basket_type').val();
524    this.url = $(_this).data('url');
525    this.layerId = 'ec_temp_mobile_layer';
526    this.layerIframeId = 'ec_temp_mobile_iframe_layer';
527
528    var _this = this;
529
530    function paramSetUrl() {
531        if (this.param) {
532            // if isset param
533        } else {
534            this.url = this.basketType ?  this.url + '?basket_type=' + this.basketType : this.url;
535        }
536    };
537
538    if (this.url) {
539        window.ecScrollTop = $(window).scrollTop();
540        $.ajax({
541            url : this.url,
542            success : function (data) {
543                if (data.indexOf('404 페이지 없음') == -1) {
544                    // 있다면 삭제
545                    try { $(_this).remove(); } catch ( e ) { }
546
547                    var $layer = $('<div>', {
548                        html: $("<iframe>", { src: _this.url, id: _this.layerIframeId, scrolling: 'auto', css: { width: '100%', height: '100%', overflowY: 'auto', border: 0 } } ),
549                        id: _this.layerId,
550                        css : { position: 'absolute', top: 0, left:0, width: '100%', height: $(window).height(), 'z-index': 9999 }
551                    });
552
553                    $('body').append($layer);
554                    $('html, body').css({'overflowY': 'hidden', height: '100%', width: '100%'});
555                    $('#' + this.layerId).show();
556                }
557            }
558        });
559    }
560};
561
562// 공통레이어팝업 닫기
563var globalLayerCloseFunc = function() {
564    this.layerId = 'ec_temp_mobile_layer';
565
566    if (window.parent === window)
567        self.clse();
568    else {
569        parent.$('html, body').css({'overflowY': 'auto', height: 'auto', width: '100%'});
570        parent.$('html, body').scrollTop(parent.window.ecScrollTop);
571        parent.$('#' + this.layerId).remove();
572    }
573};
574
575/**
576 * document.location.href split
577 * return array Param
578 */
579var getQueryString = function(sKey)
580{
581    var sQueryString = document.location.search.substring(1);
582    var aParam = {};
583
584    if (sQueryString) {
585        var aFields = sQueryString.split("&");
586        var aField  = [];
587        for (var i=0; i<aFields.length; i++) {
588            aField = aFields[i].split('=');
589            aParam[aField[0]] = aField[1];
590        }
591    }
592
593    aParam.page = aParam.page ? aParam.page : 1;
594    return sKey ? aParam[sKey] : aParam;
595};
596
597// PC버전 바로 가기
598var isPCver = function() {
599    var sUrl = window.location.hostname;
600    var aTemp = sUrl.split(".");
601
602    var pattern = /^(mobile[\-]{2}shop[0-9]+)$/;
603
604    if (aTemp[0] == 'm' || aTemp[0] == 'skin-mobile' || aTemp[0] == 'mobile') {
605        sUrl = sUrl.replace(aTemp[0]+'.', '');
606    } else if (pattern.test(aTemp[0]) === true) {
607        var aExplode = aTemp[0].split('--');
608        aTemp[0] = aExplode[1];
609        sUrl = aTemp.join('.');
610    }
611    window.location.href = '//'+sUrl+'/?is_pcver=T';
612};
613
614/* 도움말 */
615$('body').delegate('.ec-base-tooltip-area .eTip', 'click', function(e){
616    var findArea = $($(this).parents('.ec-base-tooltip-area'));
617    var findTarget = $($(this).siblings('.ec-base-tooltip'));
618    var findTooltip = $('.ec-base-tooltip');
619    $('.ec-base-tooltip-area').removeClass('show');
620    $(this).parents('.ec-base-tooltip-area:first').addClass('show');
621    findTooltip.hide();
622    findTarget.show();
623    e.preventDefault();
624});
625
626$('body').delegate('.ec-base-tooltip-area .eClose', 'click', function(e){
627    var findTarget = $(this).parents('.ec-base-tooltip:first');
628    $('.ec-base-tooltip-area').removeClass('show');
629    findTarget.hide();
630    e.preventDefault();
631});
632
633$('.ec-base-tooltip-area').find('input').focusout(function() {
634    var findTarget = $(this).parents('.ec-base-tooltip-area').find('.ec-base-tooltip');
635    $('.ec-base-tooltip-area').removeClass('show');
636    findTarget.hide();
637});
638
639/**
640 * 팝업창에 리사이즈 관련
641 */
642
643function setResizePopup() {
644
645    if(!$('#popup').length) return;
646
647    var iWrapWidth    = $('#popup').width();
648    var iWrapHeight   = $('#popup').height();
649
650    var iWindowWidth  = $(window).width();
651    var iWindowHeight = $(window).height();
652
653    window.resizeBy(iWrapWidth - iWindowWidth, iWrapHeight - iWindowHeight);
654}
655setResizePopup();
656
657// 팝업 페이지 로드가 완료된 후에 리사이징 함수를 다시 호출
658$( window ).load(function() {
659    setResizePopup();
660});
661
662
663
664//PC에서만 노출
665$(document).ready(function(){
666    if(EC_MOBILE_DEVICE === false) {
667        $(".editbotPC").removeClass("displaynone");
668    }else {
669        $(".editbotPC").addClass("displaynone");
670    }
671});

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.