PageSourceSearch

https://www.fandomspotlite.com/wp-content/themes/hitmag-pro/js/hitmag-front.js

js fandomspotlite.com collected 2026-10-04 19:12:38 UTC 1,719 bytes, 63 lines download raw bytes

1(function($){
2
3	$('.hitmag-block').on('click', '.hmajax-btn', function() {
4
5		var clickedBtn = $(this),
6			direction = clickedBtn.data('hmnextprev'),
7			currentBlock = clickedBtn.closest('.hitmag-block'),
8			dataContainer = clickedBtn.closest('.hmp-pagination-data'),
9			blockuid = dataContainer.data('blockuid'),
10			cat = dataContainer.data('hmcat'),
11			postsPerPage = dataContainer.data('hmppp'),
12			currentPage = parseInt(dataContainer.data('currentpage'));
13			
14
15		var blockId = '#'+blockuid;
16		var loader = $(currentBlock).prev('.hmw-spinner');
17
18		$(clickedBtn).attr("disabled", true);
19		$(currentBlock).css('opacity', '0.2');
20		$(loader).css('display', 'inline-block');
21
22		if ( direction == "next" ) {
23			paged = currentPage+1;
24		} else if( direction == "prev" ) {
25			if( currentPage == 1 ) {
26				$(currentBlock).css('opacity', '1');
27				$(loader).css('display', 'none');
28			} else {
29				paged = currentPage-1;
30			}
31		}
32
33		if( postsPerPage > 10 ) {
34			postsPerPage = 10;
35		}
36
37		$.ajax({
38			type: 'POST',
39			url: hitmag_ajax_object.ajaxurl,
40			data: {
41				action: 'hitmag_pro_get_wp_query',
42				blockuid: blockuid,
43				hmwCurrentPage: currentPage,
44				hmwPostsPerPage: postsPerPage,
45				hmwCategory: cat, 
46				hmwPaged: paged
47			},
48			success: function(data, textStatus, XMLHttpRequest) {
49				//console.log(data);
50				$(currentBlock).html('');
51				$(currentBlock).append(data);
52				$(currentBlock).css('opacity', '1');
53				$(loader).css('display', 'none');
54				$(clickedBtn).attr("disabled", false);
55			},
56			error: function(MLHttpRequest, textStatus, errorThrown) {
57				console.log(MLHttpRequest, textStatus, errorThrown);
58			}
59		});
60
61	});
62
63})(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.