PageSourceSearch

https://gntp.or.kr/assets/externalLib/nav/js/main.js?v=1789513925470

js gntp.or.kr collected 2026-10-06 01:30:10 UTC 1,920 bytes, 40 lines download raw bytes

1$(document).ready(function($){
2	var $lateral_menu_trigger = $('#cd-menu-trigger'),
3		$content_wrapper = $('.cd-main-content');
4
5	//open-close lateral menu clicking on the menu icon
6	$lateral_menu_trigger.on('click', function(event){
7		$lateral_menu_trigger.toggleClass('is-clicked');
8		$content_wrapper.toggleClass('lateral-menu-is-open').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){
9			// firefox transitions break when parent overflow is changed, so we need to wait for the end of the trasition to give the body an overflow hidden
10			$('body').toggleClass('overflow-hidden');
11		});
12		$('#cd-lateral-nav').toggleClass('lateral-menu-is-open');
13		
14		//check if transitions are not supported - i.e. in IE9
15		if($('html').hasClass('no-csstransitions')) {
16			$('body').toggleClass('overflow-hidden');
17		}
18	});
19
20	//close lateral menu clicking outside the menu itself
21	$content_wrapper.on('click', function(event){
22		if( !$(event.target).is('#cd-menu-trigger, #cd-menu-trigger span') ) {
23			$lateral_menu_trigger.removeClass('is-clicked');
24			$content_wrapper.removeClass('lateral-menu-is-open').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){
25				$('body').removeClass('overflow-hidden');
26			});
27			$('#cd-lateral-nav').removeClass('lateral-menu-is-open');
28			//check if transitions are not supported
29			if($('html').hasClass('no-csstransitions')) {
30				$('body').removeClass('overflow-hidden');
31			}
32		}
33	});
34
35	//open (or close) submenu items in the lateral menu. Close all the other open submenu items.
36	$('.item-has-children').children('a').on('click', function(event){
37		event.preventDefault();
38		$(this).toggleClass('submenu-open').next('.sub-menu').slideToggle(200).end().parent('.item-has-children').siblings('.item-has-children').children('a').removeClass('submenu-open').next('.sub-menu').slideUp(200);
39	});
40});

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.