PageSourceSearch

https://newyorkna.org/wp-content/themes/mystile/includes/js/general.js?ver=6.9.9

js newyorkna.org collected 2026-10-03 19:08:37 UTC 1,484 bytes, 46 lines download raw bytes

1/*-----------------------------------------------------------------------------------*/
2/* GENERAL SCRIPTS */
3/*-----------------------------------------------------------------------------------*/
4jQuery(document).ready(function($){
5
6	// Fix dropdowns in Android devices
7	if ( /Android/i.test( navigator.userAgent ) && jQuery( window ).width() > 769 ) {
8		$( '.nav li:has(ul)' ).doubleTapToGo();
9	}
10
11	// Table alt row styling
12	jQuery( '.entry table tr:odd' ).addClass( 'alt-table-row' );
13
14	// FitVids - Responsive Videos
15	jQuery( ".post, .widget, .panel" ).fitVids();
16
17	// Add class to parent menu items with JS until WP does this natively
18	jQuery("ul.sub-menu").parents('li').addClass('parent');
19
20
21	// Responsive Navigation (switch top drop down for select)
22	jQuery('ul#top-nav').mobileMenu({
23		switchWidth: 767,                   //width (in px to switch at)
24		topOptionText: 'Select a page',     //first option text
25		indentString: '   '  //string for indenting nested items
26	});
27
28
29
30  	// Show/hide the main navigation
31  	jQuery('.nav-toggle').click(function() {
32	  jQuery('#navigation').slideToggle('fast', function() {
33	  	return false;
34	    // Animation complete.
35	  });
36	});
37
38	// Stop the navigation link moving to the anchor (Still need the anchor for semantic markup)
39	jQuery('.nav-toggle a').click(function(e) {
40        e.preventDefault();
41    });
42
43    // Add parent class to nav parents
44	jQuery("ul.sub-menu, ul.children").parents().addClass('parent');
45
46});

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.