PageSourceSearch

https://www.enpaia.it/wp-content/themes/citygov/js/ownScript.js?ver=7.0.6

js enpaia.it collected 2026-10-01 14:49:32 UTC 2,490 bytes, 84 lines download raw bytes

1jQuery(document).ready(function(){
2/*global jQuery:false */
3/*jshint devel:true, laxcomma:true, smarttabs:true */
4"use strict";
5
6
7	// scroll to top
8	jQuery(".scrollTo_top").hide();
9	jQuery(function () {
10		jQuery(window).scroll(function () {
11			if (jQuery(this).scrollTop() > 300) {
12				jQuery('.scrollTo_top').fadeIn();
13				jQuery('#header,.header_fix').addClass('scrolled'); 
14			} else {
15				jQuery('.scrollTo_top').fadeOut();
16				jQuery('#header,.header_fix').removeClass('scrolled'); 
17			}
18		});
19
20	jQuery('.scrollTo_top a').on('click',function(){
21		jQuery('html, body').animate({scrollTop:0}, 300 );
22		return false;
23	});
24	});
25		
26		
27	/* searchtrigger */
28	jQuery('a.searchOpen').on('click',function(){ 
29			jQuery('#curtain').toggleClass('open'); 
30            jQuery(this).toggleClass('opened'); 
31			return false; 
32	}); 
33	
34	jQuery('a.curtainclose').on('click',function(){ 
35			jQuery('#curtain').removeClass('open'); 
36			jQuery('a.searchOpen').removeClass('opened');
37			return false; 
38	});
39	
40	
41	// mobile menu dropdown
42	
43    jQuery(document).ready(function () {
44        tmnf_dropdown_mobile();
45    });
46	
47    window.tmnf_dropdown_mobile = () => {
48        let windowW = jQuery(window).width();
49
50        jQuery('#main-nav li.menu-item-has-children > a').each(function () {
51            jQuery(this).append('<span class="tmnf_mobile_dropdown">↓</span>');
52        });
53
54        jQuery('body').find('.tmnf_mobile_dropdown').on('click', function (e) {
55            e.preventDefault();
56            let dd = jQuery(this);
57            dd.closest('li').toggleClass(function () {
58                if ( window.innerWidth < 1025) {
59                    let subMenu = dd.closest('li').children('.sub-menu');
60                    subMenu.toggle();
61                }
62                return 'active';
63            });
64        });
65    };
66
67
68});
69
70
71	
72jQuery( function ( $ ) {
73  // Focus styles for menus when using keyboard navigation
74
75  // Properly update the ARIA states on focus (keyboard) and mouse over events
76  $( '[role="menubar"]' ).on( 'focus.aria  mouseenter.aria', '[aria-haspopup="true"]', function ( ev ) {
77    $( ev.currentTarget ).attr( 'aria-expanded', true );
78  } );
79
80  // Properly update the ARIA states on blur (keyboard) and mouse out events
81  $( '[role="menubar"]' ).on( 'blur.aria  mouseleave.aria', '[aria-haspopup="true"]', function ( ev ) {
82    $( ev.currentTarget ).attr( 'aria-expanded', false );
83  } );
84} );

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.