PageSourceSearch

https://cosava.com/wp-content/themes/exline/js/menu.js?ver=1.5.9

js cosava.com collected 2026-10-08 21:28:51 UTC 2,099 bytes, 46 lines download raw bytes

1jQuery(document).ready(function($){
2	var $lateral_menu_trigger = $('#cd-menu-trigger'),
3		$content_wrapper = $('.cd-main-content'),
4		$navigation = $('.the-origin-header');
5
6	//open-close lateral menu clicking on the menu icon
7	$lateral_menu_trigger.on('click', function(event){
8		event.preventDefault();
9		
10		$lateral_menu_trigger.toggleClass('is-clicked');
11		$navigation.toggleClass('lateral-menu-is-open');
12		$content_wrapper.toggleClass('lateral-menu-is-open').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){
13			// 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
14			$('body').toggleClass('overflow-hidden');
15		});
16		$('#cd-lateral-nav').toggleClass('lateral-menu-is-open');
17		
18		//check if transitions are not supported - i.e. in IE9
19		if($('html').hasClass('no-csstransitions')) {
20			$('body').toggleClass('overflow-hidden');
21		}
22	});
23
24	//close lateral menu clicking outside the menu itself
25	$content_wrapper.on('click', function(event){
26		if( !$(event.target).is('#cd-menu-trigger, #cd-menu-trigger span') ) {
27			$lateral_menu_trigger.removeClass('is-clicked');
28			$navigation.removeClass('lateral-menu-is-open');
29			$content_wrapper.removeClass('lateral-menu-is-open').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){
30				$('body').removeClass('overflow-hidden');
31			});
32			$('#cd-lateral-nav').removeClass('lateral-menu-is-open');
33			//check if transitions are not supported
34			if($('html').hasClass('no-csstransitions')) {
35				$('body').removeClass('overflow-hidden');
36			}
37
38		}
39	});
40
41	//open (or close) submenu items in the lateral menu. Close all the other open submenu items.
42	$('.item-has-children').children('a').on('click', function(event){
43		event.preventDefault();
44		$(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);
45	});
46});

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.