PageSourceSearch

https://fullcirclects.ca/wp-content/themes/canape/js/canape.js?ver=20150825

js fullcirclects.ca collected 2026-10-08 09:23:07 UTC 1,079 bytes, 36 lines download raw bytes

1( function( $ ) {
2
3	// Additional class for posts with thumbnails
4	function addHentryClass() {
5		$( '.hentry + .has-post-thumbnail, .post + .has-post-thumbnail' ).prev().addClass( 'has-post-thumbnail-prev' );
6	}
7
8	$( document.body ).on( 'post-load',  addHentryClass );
9
10	addHentryClass();
11
12	// Handles the front page featured menu sections on mobile devices.
13	// First tap shows the overlay, second activates the link.
14	$( '.item:not(.no-thumbnail) .menu-section-thumbnail' ).on( 'touchstart', function ( e ) {
15		var link = $( this );
16		if ( link.hasClass( 'hover' ) ) {
17			return true;
18		} else {
19			link.addClass( 'hover' );
20			$( 'a.menu-section-thumbnail' ).not(this).removeClass( 'hover' );
21			e.preventDefault();
22			return false;
23		}
24	});
25
26	// Calculate the height of front page featured menu sections w/o a thumbnail.
27	if ( ( '.item.no-thumbnail' ).length ) {
28		$( window ).on( 'resize', function() {
29			var itemWidth = $( '.item.no-thumbnail' ).width();
30			$( '.item.no-thumbnail' ).css( {
31				'height': ( itemWidth * 1.333 ) + 'px',
32			} );
33	    } );
34	}
35
36} )( 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.