PageSourceSearch

https://przychodnianawitosa.pl/rejestracja/js/menu.js

js przychodnianawitosa.pl collected 2026-10-08 07:15:30 UTC 1,834 bytes, 73 lines download raw bytes

1
2// var ww = document.body.clientWidth;
3
4$(document).ready(function() {
5  ww = document.body.clientWidth;
6
7  $(window).bind('resize orientationchange', function() {
8    ww = document.body.clientWidth;
9    adjustMenu();
10  });
11
12  $(".nav li a").each(function() {
13		if ($(this).next().length > 0) {
14			$(this).addClass("parent");
15		};
16	})
17/*
18  $(".nav li a").click(function() {
19    var a = 1;
20  });
21*/
22
23  $(".toggleMenu").click(function(e) {
24    e.preventDefault();
25    $(this).toggleClass("active");
26    $(".nav").toggle();
27  });
28
29  $(".has-dropdown").click(function(e) {
30//    e.preventDefault();
31    var active = $(this).hasClass("active");
32    $(".has-dropdown").removeClass('active');
33    $(".has-dropdown").removeClass('hover');
34    if(!active){
35      $(this).addClass("active");
36      $(this).addClass("hover");
37    }
38  });
39
40	adjustMenu();
41})
42
43
44var adjustMenu = function() {
45	if(ww < 901){
46		$(".toggleMenu").css("display", "inline-block");
47    $(".nav").css("display", "block");
48		if (!$(".toggleMenu").hasClass("active")){
49			$(".nav").hide();
50		}
51    else {
52			$(".nav").show();
53		}
54		$(".nav li").unbind('mouseenter mouseleave');
55		$(".nav li a.parent").unbind('click').bind('click', function(e) {
56			// must be attached to anchor element to prevent bubbling
57//			e.preventDefault();
58			$(this).parent("li").toggleClass("hover");
59		});
60	}
61	else {
62		$(".toggleMenu").css("display", "none");
63    $(".nav").css("display", "inline-block");
64		$(".nav").show();
65		$(".nav li").removeClass("hover");
66		$(".nav li a").unbind('click');
67		$(".nav li").unbind('mouseenter mouseleave').bind('mouseenter mouseleave', function() {
68		 	// must be attached to li so that mouseleave is not triggered when hover over submenu
69		 	$(this).toggleClass('hover');
70		});
71	}
72}
73

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.