PageSourceSearch

https://bilskiproductions.com/wp-content/themes/bilski-2017/js/myloadmore.js?ver=6.9.10

js bilskiproductions.com collected 2026-10-08 06:13:43 UTC 1,211 bytes, 35 lines download raw bytes

1jQuery(function($){ // use jQuery code inside this to avoid "$ is not defined" error
2	$('.misha_loadmore').click(function(){
3 
4		var button = $(this),
5		    data = {
6			'action': 'loadmore',
7			'query': misha_loadmore_params.posts, // that's how we get params from wp_localize_script() function
8			'page' : misha_loadmore_params.current_page
9		};
10 
11		$.ajax({ // you can also use $.post here
12			url : misha_loadmore_params.ajaxurl, // AJAX handler
13			data : data,
14			type : 'POST',
15			beforeSend : function ( xhr ) {
16				button.text('Loading...'); // change the button text, you can also add a preloader image
17			},
18			success : function( data ){
19				if( data ) { 
20					console.log(data, 'foobar data')
21					button.text( 'Load More Testimonials' ).before(data); // insert new posts
22					misha_loadmore_params.current_page++;
23 
24					if ( misha_loadmore_params.current_page == misha_loadmore_params.max_page ) 
25						button.remove(); // if last page, remove the button
26 
27					// you can also fire the "post-load" event here if you use a plugin that requires it
28					// $( document.body ).trigger( 'post-load' );
29				} else {
30					button.remove(); // if no data, remove the button as well
31				}
32			}
33		});
34	});
35});

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.