HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/martyknows.com/wp-content/themes/blaskan/assets/js/scripts.js
( function( $ ) {

$(document).ready(function(){

	if ( $('.mansonry-posts #main .row > article').length > 1 ) {

		$('.mansonry-posts #main .row').imagesLoaded(function () {
	        $('.mansonry-posts #main .row').masonry({
				itemSelector: '.post', 
				percentPosition: true, 
				columnWidth: '.col-md-6'
			});
	    });
		
		// Triggers re-layout on infinite scroll
		infinite_count = 0;
	    $( document.body ).on( 'post-load', function () {
	    	infinite_count = infinite_count + 1;
	    	var $selector = $('#infinite-view-' + infinite_count);
	    	var $elements = $selector.find('.hentry');
			var $container = $('.mansonry-posts #main .row');
			$container.imagesLoaded(function () {
				$selector.remove();
				$container.append( $elements );
				$container.masonry( 'appended', $elements, true );
				$container.masonry();
			});
	    });

	}

	$('.top-header .search .search-form label').click(function( evt ){
		evt.stopPropagation();
		evt.preventDefault();
		$('.top-header .search').toggleClass( 'active' );
		$('.top-header #search').focus();
	});	

});

} )( jQuery );