PageSourceSearch

https://dustedvalley.com/wp-content/themes/dusted-valley/js/navigation.js?ver=7.1

js dustedvalley.com collected 2026-09-26 10:44:08 UTC 941 bytes, 56 lines download raw bytes

1jQuery( document ).ready( function( $ ) {
2
3
4	var menuOpen = false,
5		$wrapper = $('.site-wrapper'),
6		$menuButton = $('.menu-btn'),
7		closeNav = function(){
8				$wrapper.removeClass('menu-open');
9				$menuButton.removeClass('active');
10				
11				menuOpen = false;
12				
13		},
14		menuBtnFn = function(){
15
16			// OPEN/CLOSE MENU
17			$menuButton.bind( 'touchstart, click', function(ev){
18					ev.stopPropagation();
19					ev.preventDefault();
20					
21					if ( menuOpen ) {
22							closeNav();
23					}
24					else{
25							$wrapper.addClass('menu-open');
26							$(this).addClass('active');
27							
28							menuOpen = true;
29					}
30			});
31		};
32
33
34		menuBtnFn();
35
36
37		$(window).resize(function(){
38
39			//if not on mobile view
40			if( !$menuButton.is(':visible') ){
41
42				//close mobile menu
43				if ( menuOpen ) {
44						closeNav();
45				}
46				
47			}
48
49		});
50
51	$('select#categories').on('change', function(){
52		var url = $(this).val();
53		window.location.href = url;
54	});
55
56});

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.