<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">jQuery(document).ready(function( $ ){
    
		
	// Add tabindex and keyboard event to hamburger
	var menu = $('#et_mobile_nav_menu &gt; .mobile_nav');
	menu.attr('tabindex','0');
	menu.on('keypress', function(event){
		var keycode = (event.keyCode ? event.keyCode : event.which);
		if(keycode == '13'){
			if ($(this).hasClass('closed')){
				$(this).addClass('opened').removeClass('closed');
			} else {
				$(this).addClass('closed').removeClass('opened');
			}
		}
	});

	// When focused out of menu by tabbing, close it
	$('#mobile_menu').on('blur', function(){
		menu.addClass('closed').removeClass('opened');
	});
	
	$(document).ready ( function(){
		/* MOVE QUICK LINKS */
		(function(){	 
			/* Move secondary menu items to top of mobile menu, 
			 * this method is preferred over css because it modifys the dom
			 * so the tabbing order follows the visual order and is more accessible
			 */
			var dropdown = $('#mobile_menu');
			$('#mobile_menu &gt; li.secondary-menu-item').each(function(){
				var menu = $(this);  
				dropdown.prepend(menu.get(0).outerHTML);
				menu.remove();
			});
		})();	
	
	});	
});</pre></body></html>