PageSourceSearch

https://ambientlounge.kr/ind-script/optimizer_user.php?filename=jY…f2fb50ea27fae3f09e7495a&t=1540194130&user=T

js ambientlounge.kr collected 2026-10-06 14:04:57 UTC 11,373 bytes, 381 lines download raw bytes

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

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.