PageSourceSearch

https://dometopia.com/app/javascript/js/doto-header-function.js

js dometopia.com collected 2026-10-03 23:33:48 UTC 2,665 bytes, 97 lines download raw bytes

1jQuery(document).ready(function(){
2	
3	var topmenuloc = $(".doto_scrollmenu").offset();
4	if(topmenuloc.top==0){
5		topmenuloc.top = 150; 
6	}
7	$( window ).scroll( function() {
8
9	  if ( $( document ).scrollTop() >= topmenuloc.top ) {
10		 $( "#doto_scrollmenu" ).addClass('scrollfixed');			 
11		 $( "#doto_scrollmenu .hidden_sch" ).removeClass('hide');
12		 $( "#doto_scrollmenu .menu_box" ).removeClass('ml30');		 
13	  } else {
14		 $( "#doto_scrollmenu" ).removeClass('scrollfixed');
15		 $( "#doto_scrollmenu .menu_box" ).addClass('ml30');
16		 $( "#doto_scrollmenu .hidden_sch" ).addClass('hide');		 
17	  }
18
19	});
20
21	$('#allCategoryListBtn,#leftCategoryBtn,#leftCategoryadd').bind('click',function(){
22		if($(this).attr('class') == 'scrollHomeNavBtn'){
23			location.href = '/';
24			return false;
25		}
26		var category_display = $('#allCategoryList').css('display');
27		if(category_display == 'block'){
28			$( ".doto_scrollmenu" ).removeClass('modal_line');
29			$('#allCategoryList').css('display','none');
30			doto_modal_end();
31		}else{
32			$( ".doto_scrollmenu" ).addClass('modal_line');
33			$('#allCategoryList').css('display','block');
34			fnCategoryMenuInitial('header_recom','0');
35			fnCategoryMenuInitial('all','1');
36			doto_modal_event('dometopia_header');
37		}
38
39	});
40
41	
42
43});
44
45/*
46 * 
47 *	"header_modal": 60, //모달효과 div
48 *	"dometopia_header": 70, //상단 헤더 
49 *  "doto_scrollmenu": 70, //스크롤 이동시 고정 헤더
50 */
51function doto_modal_event(objId,option)
52{
53	var objzindex =	$('#'+objId).css( "z-Index" );
54	$('#doto_header_modal').css('z-index', (objzindex - 1)  );
55	$('#doto_header_modal').css('display','block');
56}
57function doto_modal_end()
58{
59	$('#doto_header_modal').css('display','none');		
60}
61function fnCategoryMenuInitial(initial,menu,obj)
62{
63	var categoey_class = "";
64	if(menu == '0'){
65		categoey_class = jQuery("#recommend_category_list");				
66	} else if(menu == '1'){
67		categoey_class = jQuery("#result_category_list");
68	} else {
69		categoey_class = jQuery("#result_category_list_2");
70	}
71	
72	jQuery.ajax({			
73		type : "POST",
74		url : "/main/category_search_initial",
75		data : {initial : initial},
76		success: function(data) {
77			/*
78			if(obj){
79				$(obj).parent().children('.on').removeClass('on');
80				$(obj).addClass('on');
81			}
82			*/
83			if(data == 'no_category'){
84				if(initial == 'header_recom'){ 
85					categoey_class.parent().css('display','none');
86				}
87				categoey_class.html("<p>해당 카테고리가 존재하지 않습니다.</p>");
88			}else {					
89				categoey_class.html(data);						
90			}
91		},
92		error:function(request,status,error){
93		}	
94	});
95	
96}
97

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.