PageSourceSearch

https://skoolooks.com/data/skin/skoolooks/common/skls/common.js?dummy=20261007133135

js skoolooks.com collected 2026-10-07 04:32:06 UTC 10,203 bytes, 318 lines download raw bytes

1$(function(){
2    if(typeof sklsPageName !== "undefined"){
3        if(sklsPageName == "index"){
4            $("header").css({"background-color":"#ffffff"});
5
6            $("header .header_top").hide();
7            $("header .header_main").show();
8        }
9        if(sklsPageName == "brand")     $("header").css({"background-color":"#f89828"});
10        if(sklsPageName == "lineup")    $("header").css({"background-color":"#ff8448"});
11        if(sklsPageName == "customer")  $("header").css({"background-color":"#f63461"});
12        if(sklsPageName == "mypage")    $("header").css({"background-color":"#f89828"});
13        if(sklsPageName == "goods")     $("header").css({"background-color":"#ff7062"});
14        if(sklsPageName == "order")     $("header").css({"background-color":"#6c6c6c"});
15        if(sklsPageName == "event")     $("header").css({"background-color":"#22cfe4"});
16        if(sklsPageName == "etc")       $("header").css({"background-color":"#19c96d"});
17    }else{
18        $("header").css({"background-color":"#f89828"});
19    }
20
21    // nav 메뉴 on
22    $(".btn_nav").click(function(){
23        $(".bg_nav").show();
24
25        $(".menu").animate({"left":"0"},200);
26        return false;
27    });
28
29    // nav 메뉴 off
30    $(".btn_nav_close, .bg_nav").click(function(){
31        $(".menu").animate({"left":"-480px"},200,function(){
32            $(".bg_nav").hide();
33        });
34        return false;
35    });
36
37    // nav 메뉴 depth
38    $(".nav_dep_1 a").click(function(){
39        var nav_cate = $(this).attr("class").split("btn_nav_");
40        nav_cate = nav_cate[1];
41        if(!$(this).hasClass("active")){
42            $(".nav_dep_1 a").removeClass("active");
43            $(this).addClass("active");
44
45            $(".nav_dep_2").stop(true,false).animate({"right":"-76px","opacity":"0"},200,function(){
46                $(".nav_dep_2 .nav_dep_2_list").hide();
47                $(".nav_dep_2").hide();
48
49                $(".nav_dep_2").attr("class","nav_dep_2");
50                $(".nav_dep_2").addClass(nav_cate);
51                $(".nav_dep_2 .nav_dep_2_list." + nav_cate).show();
52
53                $(".nav_dep_2").show();
54                $(".nav_dep_2").stop(true,false).animate({"right":"-1px","opacity":"1"},200);
55            });
56        }else{
57            $(this).removeClass("active");
58
59            $(".nav_dep_2").stop(true,false).animate({"right":"-76px","opacity":"0"},200,function(){
60                $(".nav_dep_2 .nav_dep_2_list").hide();
61                $(".nav_dep_2").hide();
62
63                $(".nav_dep_2").attr("class","nav_dep_2");
64            });
65        }
66
67        return false;
68    });
69
70    // tab 버튼
71    $(".tab_box a").click(function(){
72        if(!$(this).hasClass("active")){
73            $(".tab_box a").removeClass("active");
74            $(this).addClass("active");
75        }
76
77        return false;
78    });
79
80    // 공통 아코디언 버튼
81    $(".btn_agree_comm").click(function(){
82        if(!$(this).hasClass("active")){
83            $(this).parents(".agree_comm_box").find(".agree_comm_tx").slideUp(300);
84            $(this).next(".agree_comm_tx").slideDown(300);
85
86            $(this).parents(".agree_comm_box").find(".btn_agree_comm").removeClass("active");
87            $(this).addClass("active");
88        }else{
89            $(this).next(".agree_comm_tx").slideUp(300);
90
91            $(this).removeClass("active");
92        }
93
94        return false;
95    });
96
97    // 자주 묻는 질문 아코디언 버튼
98    $(".btn_question").click(function(){
99        if(!$(this).hasClass("active")){
100            $('.answer').slideUp(300);
101            $(this).next('.answer').slideDown(300);
102
103            $(".btn_question").removeClass("active");
104            $(this).addClass("active");
105        }else{
106            $(this).next('.answer').slideUp(300);
107
108            $(this).removeClass("active");
109        }
110
111        return false;
112    });
113
114    // 회원가입 아코디언 버튼
115    $(".btn_agree_tx").click(function(){
116        if(!$(this).hasClass("active")){
117            $(".agree_tx").slideUp(300);
118            $(this).parent(".agree_btn_box").next(".agree_tx").slideDown(300);
119
120            $(".btn_agree_tx").removeClass("active");
121            $(this).addClass("active");
122        }else{
123            $(this).parent(".agree_btn_box").next(".agree_tx").slide
123Up(300);
124
125            $(this).removeClass("active");
126        }
127
128        return false;
129    });
130
131    // 첨부파일 버튼
132    $(".input_file").change(function(){
133        var upload_fileSize = 0;
134
135        // 브라우저 확인
136        var upload_browser=navigator.appName;
137
138        // 익스플로러일 경우
139        if (upload_browser=="Microsoft Internet Explorer"){
140            var oas = new ActiveXObject("Scripting.FileSystemObject");
141            upload_fileSize = oas.getFile($(this)[0].value).size;
142        }
143        // 익스플로러가 아닐경우
144        else{
145            upload_fileSize = $(this)[0].files[0].size;
146        }
147
148        if(upload_fileSize > 10 * 1024 * 1024){
149            alert("첨부파일 용량을 초과했습니다. 10mb 이하로 첨부해주세요.");
150            return;
151        }
152
153        var upload_filename = $(".input_file").val();
154            upload_filename = upload_filename.split("\\");
155            upload_filename = upload_filename[upload_filename.length -1];
156
157        $('.input_file_tx').val(upload_filename);
158    });
159
160    // 약관 더보기 버튼
161    $(".term_comm .btn_more").click(function(){
162        $(this).parents(".term_comm").find(".term_comm_inner").css({"height":"auto"});
163        $(this).hide();
164
165        return false;
166    });
167
168    // 뒤로가기 버튼
169    $(".btn_back").click(function(){
170        window.history.back();
171        return false;
172    });
173
174    // 이커머스 아코디언 공통 버튼
175    $(".btn_toggle_comm").click(function(){
176        if(!$(this).hasClass("active")){
177            $(this).parent(".prod_btn_box").next(".prod_comm_toggle_box").slideDown(300);
178
179            $(this).addClass("active");
180        }else{
181            $(this).parent(".prod_btn_box").next(".prod_comm_toggle_box").slideUp(300);
182
183            $(this).removeClass("active");
184        }
185
186        return false;
187    });
188});
189
190function maxLengthCheck(object) {
191    if( object.value.indexOf('-') > -1 || object.value.indexOf('+') > -1 ){
192        object.value = object.value.slice(0,0);
193    }
194
195    if (object.value.length > object.maxLength) {
196        object.value = object.value.slice(0, object.maxLength);
197    }
198}
199
200function maxLengthAlert(thiz,maxLeng){
201    var $this = $(thiz);
202    if($this.val().length > (maxLeng - 1)){
203        alert(maxLeng + '자를 초과했습니다. 초과된 글자 수는 자동으로 삭제됩니다.');
204        $this.val($this.val().substr(0,maxLeng - 1));
205    }
206}
207
208function onlyNumber(obj) {
209    $(obj).keyup(function(){
210        $(this).val($(this).val().replace(/[^0-9]/g,""));
211    });
212}
213
214function pagination(){
215    var $paging = $(".paging_navigation");
216    var $targ = $paging;
217
218    if($(".paging_navigation p").length != 0) $targ = $paging.find("p:eq(0)");
219    else $targ = $paging;
220
221    $targ.find("span.first").parent().remove();
222    $targ.find("span.end").parent().remove();
223
224    if($targ.find("a[rel='prev']").length == 0){
225        $targ.prepend('<a href="javascript:void(0);" rel="prev"><span class="prev">◀ 이전</span></a>');
226    }
227
228    if($targ.find("a[rel='next']").length == 0){
229        $targ.append('<a href="javascript:void(0);" rel="next"><span class="next">다음 ▶</span></a>');
230    }
231}
232
233function setCookieEx(c_name,value,exdays,path){
234    var exdate = new Date();
235        exdate.setDate(exdate.getDate() + exdays);
236        exdate.setHours(0);
237        exdate.setMinutes(0);
238        exdate.setSeconds(0);
239    var c_value = escape(value) + ((exdays==null) ? "" : "; expires=" + exdate.toUTCString()) + ((path==null) ? "" : "; path=" + path);
240    document.cookie = c_name + "=" + c_value;
241}
242
243function delCookieEx(c_name,path){
244	var date = new Date();
245	document.cookie = c_name + "= " + "; expires=" + date.toUTCString() + ((path==null) ? "" : "; path=" + path);
246}
247
248function getNowdate(){
249    let today = new Date();
250    var year = today.getFullYear();
251    var month = ('0' + (today.getMonth() + 1)).slice(-2);
252    var day = ('0' + today.getDate()).slice(-2);
253    var hours = ('0' + today.getHours()).slice(-2);
254    var minutes = ('0' + today.getMinutes()).slice(-2);
255    var nowdate = year + "" + month + "" + day + "" + hours + "" + minutes;
256
257    return nowdate;
258}
259
260/* 스쿨룩스 속 ZB1을 찾아라 플로팅 배너 */
261$(function(){
262    findzb1Event();
263});
264function findzb1Event(){
265    var pathPage = ["index","lineup","brand","goods"];
266    // var pathUrl = [];
267    var pathName = location.pathname;
268    var randomNo = Math.floor((Math.random() * 100) + 1);
269    var photoNo = Math.floor((Math.random() * 10) + 1);
270    // var isPageCheck = false;
271    var isEvent = false;
272
273    if(typeof sklsPageName !== "undefined"){
274        $.each(pathPage, function(i){
275            if(sklsPageName == pathPage[i]){
276                if(randomNo <= 50) isEvent = true;
277                // isPageCheck = true;
278            }
279        });
280    }
281
282    // if(isPageCheck == false){
283    //     $.each(pathUrl, function(i){
284    //         if(pathName.includes(pathUrl[i]) == true){
285    //             if(randomNo <= 50) isEvent = true;
286    //         }
287    //     });
288    // }
289
290    if("/skls_event/view/16" != pathName && "/member/login" != pathName){
291        delCookieEx("evt_16","/");
292    }
293
294    var nowdate = getNowdate();
295
296    if(nowdate >= 202312280000){
297        isEvent = false;
298        return false;
299    }
300
301    if(isEvent == true){
302        $("#layout_wrap").append('<div id="findZb1-Floating">'
303            + '<div data-photo="' + photoNo + '" class="photoCard"></div>'
304            + '<a href="/skls_event/view/16" data-photo="' + photoNo + '" class="btn_findzb1_floating"><span class="alt">응모하기</span></a>'
305            + '</div>');
306
307        $("#findZb1-Floating a").click(function(){
308            var url = $(this).attr("href");
309
310            setCookieEx("evt_16","WMMtFigx5uSHPs",null,"/");
311            setTimeout(function(){
312                location.href = url;
313            },100);
314
315            return false;
316        });
317    }
318}

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.