PageSourceSearch

https://www.kigam.re.kr/mici/js/menu.js

js kigam.re.kr collected 2026-09-24 09:46:50 UTC 2,992 bytes, 100 lines download raw bytes

1$(document).ready(function(){
2
3  /* gnb */
4  $('#header #gnb > li').on('mouseenter focusin', function(){
5    $('#header').addClass('active');
6    $(this).addClass('active').siblings().removeClass('active');
7  });
8  $('#header .bottom').on('mouseleave focusout', function(){
9    $('#header').removeClass('active');
10    $('#header #gnb > li').removeClass('active');
11  });
12  $('#header #gnb > li .depth2 > li.sub04').after('<li class="hr">' + '</li>' )
13  $('#header #gnb > li .depth2 > li.sub08').after('<li class="hr">' + '</li>' )
14
15  /* header top - 사이트링크 */
16  $('#header .top .site-link .btn-drop').on('click', function(){
17    $(this).parent('.site-link').toggleClass('active');
18    return false;
19  });
20
21  /* header bottom - 검색버튼 */
22  $('#header .bottom .util > a').on('click', function(){
23    $(this).next('.search-wrap').addClass('active');
24    return false;
25  });
26  $('#header .bottom .util .search-wrap .btn-close').on('click', function(){
27    $(this).parent('.search-wrap').removeClass('active');
28    return false;
29  });
30
31
32  /* footer 관련사이트 */
33  $('#footer .top .utils .relate-site .btn').on('click', function(){
34    $(this).parent().toggleClass('active');
35    return false;
36  });
37
38
39  /* all-menu */
40  $('#header .util .btn-all-menu').on('click', function(){
41    $('.all-menu-wrap').addClass('active');
42    $('header').addClass('all-menu-active');
43    return false;
44  });
45  $('.all-menu-wrap .btn-close').on('click', function(){
46    $('.all-menu-wrap').removeClass('active');
47    $('header').removeClass('all-menu-active');
48    return false;
49  });
50
51  /* all-menu link */
52  $('.all-menu-wrap').find('li > a').each(function(){
53    if($(this).next('ul').length == 1) {
54      $(this).parent('li').addClass('hassub');
55    }
56  });
57  $('.all-menu-wrap').find('a').on('click', function(){
58    if($(this).parent().hasClass('hassub') == true) {
59      $(this).attr('href', 'javascript:void(0);');
60    }
61  });
62  /* depth1 */
63  $('.all-menu-wrap .depth1 > li.lnb1').addClass('active');
64  $('.all-menu-wrap .depth1 > li > a').on('click', function(){
65    $(this).next('.depth2').show().parent().siblings().find('.depth2').hide();
66    $(this).parent().addClass('active').siblings().removeClass('active');
67  });
68  /* depth2 */
69  $('.all-menu-wrap .depth2 > li > a').on('click', function(){
70    $(this).next('.depth3').slideDown().parent().siblings().find('.depth3').slideUp();
71    $(this).parent().addClass('active').siblings().removeClass('active');
72  });
73  /* 닫기 */
74 
75
76
77
78
79
80
81
82
83  /* 스크롤바 */
84  $(".scroll-box").mCustomScrollbar();
85  $(".scroll-box-x").mCustomScrollbar({
86    axis:"x" // horizontal scrollbar
87  });
88
89
90  /* go-top */
91  $(window).on('load scroll', function(){
92    var ft = $('#footer');
93    if(ft.offset().top - 1000 <= $(window).scrollTop()) {
94      $('.go_top').addClass('stick');
95    } else {
96      $('.go_top').removeClass('stick');
97    }
98  });
99
100});

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.