PageSourceSearch

https://focusonthe615.com/wp-content/themes/canvas/includes/js/general.js?ver=7.0.6

js focusonthe615.com collected 2026-10-02 12:42:04 UTC 2,660 bytes, 66 lines download raw bytes

1/*-----------------------------------------------------------------------------------*/
2/* Run scripts on jQuery(document).ready() */
3/*-----------------------------------------------------------------------------------*/
4jQuery(document).ready(function(){
5
6	// FitVids - Responsive Videos
7	jQuery( '.widget, .panel, .video' ).fitVids();
8	if ( window.innerWidth < 768 ) {
9		jQuery( '.entry' ).fitVids();
10	}
11	
12	// Add class to parent menu items with JS until WP does this natively
13	jQuery( 'ul.sub-menu, ul.children' ).parents( 'li' ).addClass( 'parent' );
14	
15	// Responsive Navigation (switch top drop down for select)
16	jQuery('ul#top-nav').mobileMenu({
17	    switchWidth: 767,                   					//width (in px to switch at)
18	    topOptionText: woo_localized_data.select_a_page,     	//first option text
19	    indentString: '&nbsp;&nbsp;&nbsp;'						//string for indenting nested items
20	});
21	
22	// Show/hide the main navigation
23  	jQuery( '.nav-toggle' ).click(function() {
24	  jQuery( '#navigation' ).slideToggle( 'fast', function() {
25	  	return false;
26	    // Animation complete.
27	  });
28	});
29	
30	// Stop the navigation link moving to the anchor (Still need the anchor for semantic markup)
31	jQuery( '.nav-toggle a' ).click(function(e) {
32        e.preventDefault();
33    });
34
35/*-----------------------------------------------------------------------------------*/
36/* Add rel="lightbox" to image links if the lightbox is enabled */
37/*-----------------------------------------------------------------------------------*/
38
39if ( jQuery( 'body' ).hasClass( 'has-lightbox' ) && ! jQuery( 'body' ).hasClass( 'portfolio-component' ) && window.innerWidth > 768 ) {
40	jQuery( 'a[href$=".jpg"], a[href$=".jpeg"], a[href$=".gif"], a[href$=".png"]' ).each( function () {
41		var imageTitle = '';
42		if ( jQuery( this ).next().hasClass( 'wp-caption-text' ) ) {
43			imageTitle = jQuery( this ).next().text();
44		}
45		
46		if ( '' != imageTitle ) {
47			jQuery( this ).attr( 'title', imageTitle );
48		}
49
50		if ( jQuery( this ).parents( '.gallery' ).length ) {
51			var galleryID = jQuery( this ).parents( '.gallery' ).attr( 'id' );
52			jQuery( this ).attr( 'rel', 'lightbox[' + galleryID + ']' );
53		} else {
54			jQuery( this ).attr( 'rel', 'lightbox' );
55		}
56	});
57	
58	jQuery( 'a[rel^="lightbox"]' ).prettyPhoto({social_tools: false});
59}
60
61/*-----------------------------------------------------------------------------------*/
62/* Add alt-row styling to tables */
63/*-----------------------------------------------------------------------------------*/
64
65	jQuery( '.entry table tr:odd' ).addClass( 'alt-table-row' );
66}); // End 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.