PageSourceSearch

http://www.grandculture.net/Views/Template/KA/js/sub.js

js grandculture.net collected 2026-09-24 18:19:05 UTC 2,921 bytes, 99 lines download raw bytes

1$(document).ready(function () {
2
3	// filter : content
4    $(".btn-filter").click(function(){
5		$(this).toggleClass('active');
6
7		if($(this).hasClass('active')){
8			$('.filter').addClass('hide');
9			$('.article').addClass('full');
10			
11		}else{
12			$('.filter').removeClass('hide');
13			$('.article').removeClass('full');
14		}
15    });
16
17
18	//scroll
19	$(".scroll-wrap").mCustomScrollbar();
20		
21
22	//filter - list : show,hide
23	$(".filter .area").find('.bx-wrap').show();
24	$(".filter .area").find('.btn-open').toggleClass('on').text("닫기");//221020
25	$(".filter .area").find('.btn-view').show();
26
27	$(".filter .title .btn-open").click(function(){
28		$(this).toggleClass('on');
29
30		if ($(this).hasClass('on')){
31			$(this).parent().parent().find('.bx-wrap').show();
32			$(this).text("닫기");
33			$(this).parent().find('.btn-view').show();
34		} else {
35			$(this).parent().parent().find('.bx-wrap').hide();
36			$(this).text("열기");
37			$(this).parent().find('.btn-view').hide();
38		}
39
40		stickyFooter();		// [20221003] 조선 추가
41	});
42
43	//filter : area - layer popup
44    $(".filter .area .btn-view").click(function(){
45		$(this).parent().parent('.area').addClass('popup');
46
47		$('.filter .popup .btn-view').hide();
48		$('.filter .popup .btn-open').hide();
49		$('.filter .popup .btn-view-close').show();
50		//
51		$(".filter .popup .scroll-wrap").mCustomScrollbar("disable",true);
52		$(".filter .pop-scroll-wrap").mCustomScrollbar();
53
54		$(".filter .popup .btn-view-close").click(function(){
55			$(this).hide();
56			$('.filter .popup .btn-view').show();
57			$('.filter .popup .btn-open').show();
58			$(this).parent().parent('.area').removeClass('popup');
59			$(this).parent().parent('.area').find('.bx-wrap').show();
60			//
61			$(".filter .popup .scroll-wrap").mCustomScrollbar("update");
62			$(".filter .pop-scroll-wrap").mCustomScrollbar("disable",true);
63		});
64    });
65
66	// filter : bottom - sticky
67	stickyFooter();
68	$(window).scroll(stickyFooter).resize(stickyFooter);
69});
70
71function stickyFooter() {
72	document_height = $(document).height(); // 문서 전체 높이
73	document_scrollTop = $(document).scrollTop(); // 문서 전체 높이 중 스크롤 위치
74	window_height = $(window).height(); // 창 높이
75	footer_height = $("#footer").height();
76
77	gap = document_height - footer_height - window_height; 
78	bottom = document_scrollTop - gap ; 
79
80	if(document_scrollTop > gap){
81		$(".btn-apply").css("bottom", bottom+"px");
82	}else{
83		$(".btn-apply").css("bottom","0");
84	}
85}
86
87//검색필터 탭 221020
88$(document).ready(function(){
89    $(".tab_content").hide();
90    $(".tab_content:first").show();
91
92    $("ul.tab_nav>li").click(function () {
93        $("ul.tab_nav>li").removeClass("active");
94        $(this).addClass("active");
95        $(".tab_content").hide();
96        var activeTab = $(this).attr("rel");
97        $("#" + activeTab).fadeIn();
98    });
99}); 

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.