PageSourceSearch

https://pwdsurvey.com/wp-content/themes/pwd-base/js/front/menu.js?ver=1790359509

js pwdsurvey.com collected 2026-10-08 15:58:45 UTC 1,257 bytes, 42 lines download raw bytes

1// PWD Menu JS
2(function($){
3	$(document).ready(function(){
4	// jQuery(document).ready(function(){
5		// var canary = document.querySelector("#canary");
6		var nav = document.querySelector("ul.menu");
7		if(nav){
8			if(window.matchMedia("(max-width:899.99px)").matches){
9				$(".current-menu-item").addClass("open");
10				$(".current-menu-parent").addClass("open");
11				$(".current-menu-ancestor").addClass("open");
12			}
13
14			$(".menu-item-has-children").click(function(e){
15				console.log(this);
16				item = $(this);
17				console.log(this);
18				if(item.hasClass("open")) {
19					console.log('item is open, closing.');
20					item.removeClass("open");
21					console.log(item[0].classList);
22				}
23				else{
24					console.log('item is closed, opening.');
25					item.addClass("open");
26					console.log(item[0].classList);
27				}
28				e.stopPropagation();
29			});
30
31
32	// 		// var observer = new IntersectionObserver(function(entries) {
33	// 		// 	if(entries[0].intersectionRatio === 0)
34	// 		// 		document.querySelector("#local-nav").classList.add("stuck");
35	// 		// 	else if(entries[0].intersectionRatio === 1)
36	// 		// 		document.querySelector("#local-nav").classList.remove("stuck");
37	// 		// }, { threshold: [0,1] });
38
39	// 		// observer.observe(canary);
40		}
41	});
42})(jQuery);

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.