PageSourceSearch

https://skoolooks.com/data/skin/skoolooks/common/script.js

js skoolooks.com collected 2026-10-07 04:31:55 UTC 5,111 bytes, 146 lines download raw bytes

1/* 전체 카테고리 버튼 스크립트 */
2function setCategoryAllBtnEvent(categoryNavigationKey,url,target){
3	target = (target != undefined && target != "") ? target : categoryNavigationKey;
4	$("#"+categoryNavigationKey+" .categoryAllBtn").live('click',function(){
5		if($("#"+target+" .categoryAllContainer").html()==""){
6			$(".categoryAll").hide();
7			$("#"+target+" .categoryAllContainer").load(url,function(){
8				$("#"+target+" .categoryAll").stop(true,true).slideDown('fastest');
9			});
10		}else{
11			if($("#"+target+" .categoryAll").stop(true,true).is(":visible")){
12				$("#"+target+" .categoryAll").slideUp('fastest');
13			}else{
14				$(".categoryAll").hide();
15				$("#"+target+" .categoryAll").slideDown('fastest');
16			}
17		}
18		return false;
19	});
20	$("#"+target+" .categoryAllClose").live('click',function(){
21		$("#"+target+" .categoryAll").stop(true,true).slideUp('fastest');
22	});
23}
24
25/* 전체 브랜드 버튼 스크립트 */
26function setBrandAllBtnEvent(categoryNavigationKey,url,target){
27	target = (target != undefined && target != "") ? target : categoryNavigationKey;
28	$("#"+categoryNavigationKey+" .categoryAllBtn").live('click',function(){
29		if($("#"+target+" .categoryAllContainer").html()==""){
30			$(".categoryAll").hide();
31			$("#"+target+" .categoryAllContainer").load(url,function(){
32				$("#"+target+" .categoryAll").stop(true,true).slideDown('fastest');
33
34				$("#"+target+" .categoryAllBrandListGroup").each(function(){
35					if($(".categoryAllBrandListGroupItem",this).length){
36						$(this).show();
37					}else{
38						$(this).hide();
39					}
40				});
41			});
42		}else{
43			if($("#"+target+" .categoryAll").stop(true,true).is(":visible")){
44				$("#"+target+" .categoryAll").slideUp('fastest');
45			}else{
46				$(".categoryAll").hide();
47				$("#"+target+" .categoryAll").slideDown('fastest');
48			}
49		}
50		return false;
51	});
52	$("#"+target+" .categoryAllClose").live('click',function(){
53		$("#"+target+" .categoryAll").stop(true,true).slideUp('fastest');
54	});
55	$("#"+target+" .brandPrefixBtn").live('click',function(){
56		$("#"+target+" .brandPrefixBtn.current").removeClass("current");
57		$(this).addClass("current");
58		var prefix = $(this).attr("prefix");
59		if(prefix=="all"){
60			$("#"+target+" .categoryAllBrandListGroup").each(function(){
61				if($(".categoryAllBrandListGroupItem",this).length){
62					$(this).show();
63				}else{
64					$(this).hide();
65				}
66			});
67			//$("#"+target+" .categoryAllBrandListGroup").show();
68		}else{
69			$("#"+target+" .categoryAllBrandListGroup").hide().filter("*[prefix='"+prefix+"']").show();
70		}
71	});
72}
73
74/* 전체 지역 버튼 스크립트 */
75function setLocationAllBtnEvent(locationNavigationKey,url,target){
76	target = (target != undefined && target != "") ? target : locationNavigationKey;
77	$("#"+locationNavigationKey+" .categoryAllBtn").live('click',function(){
78		if($("#"+target+" .categoryAllContainer").html()==""){
79			$(".categoryAll").hide();
80			$("#"+target+" .categoryAllContainer").load(url,function(){
81				$("#"+target+" .categoryAll").stop(true,true).slideDown('fastest');
82			});
83		}else{
84			if($("#"+target+" .categoryAll").stop(true,true).is(":visible")){
85				$("#"+target+" .categoryAll").slideUp('fastest');
86			}else{
87				$(".categoryAll").hide();
88				$("#"+target+" .categoryAll").slideDown('fastest');
89			}
90		}
91		return false;
92	});
93	$("#"+target+" .categoryAllClose").live('click',function(){
94		$("#"+target+" .categoryAll").stop(true,true).slideUp('fastest');
95	});
96}
97
98/* 상품디스플레이 탭 스크립트 */
99$(function(){	
100	$(".displayTabContainer").each(function(){
101		var tabContainerObj = $(this);
102		tabContainerObj.children('li').bind('mouseover',function(){
103			tabContainerObj.children('li.current').removeClass('current');
104			$(this).addClass('current');
105			var tabIdx = tabContainerObj.children('li').index(this);
106			tabContainerObj.closest('.designDisplay, .designCategoryRecommendDisplay').find('.displayTabContentsContainer').hide().eq(tabIdx).show();
107		}).eq(0).trigger('mouseover');		
108	});	
109});
110
111$(function() {
112	/* Chrome에서 Skip네비게이션 */
113    $("a[href^='#']").on("click", function(e){
114        var anchorid = $(e.currentTarget);
115        var select_id = $(anchorid.attr("href"));
116        select_id.attr("tabindex","-1").css("outline","0").focus();
117        select_id.on("focusout",function(){
118            $(this).removeAttr("tabindex");
119        });
120    });
121	
122	/* 다국어 선택 */
123	$(".language").mouseover(function() {
124		$(".optionSub").css("display", "block");
125	});
126	$(".language").mouseleave(function() {
127		$(".optionSub").css("display", "none");		
128	});
129	
130	/* 상단 서브메뉴*/
131	$(".cs_link > a").bind("focusin mouseenter", function(){
132		$(this).next().slideDown();
133	});
134	$(".cs_link").bind("focusout mouseleave", function(){
135		$(".cs_sub").slideUp();
136	});
137
138	/* 토글 레이어 */
139	$(".detailDescriptionLayerBtn").click(function(){
140		$('div.detailDescriptionLayer').not($(this).siblings('div.detailDescriptionLayer')).hide();
141		$(this).siblings('div.detailDescriptionLayer').toggle();
142	});
143	$(".detailDescriptionLayerCloseBtn").click(function(){
144		$(this).closest('div.detailDescriptionLayer').hide();
145	});
146});

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.