PageSourceSearch

https://www.43rumors.com/wp-content/plugins/post-grid/assets/frontend/js/scripts.js?ver=7.1

js 43rumors.com collected 2026-09-24 18:15:05 UTC 2,285 bytes, 124 lines download raw bytes

1jQuery(document).ready(function($)
2	{
3
4
5
6
7
8
9
10
11
12
13		$(document).on('keyup', '.nav-search .search', function()
14			{
15				var keyword = $(this).val();
16				var grid_id = $(this).attr('grid_id');				
17				
18				if(keyword.length>3){
19					$(this).addClass('loading');
20					
21					$('.pagination').fadeOut();
22					
23					$.ajax(
24						{
25					type: 'POST',
26					context: this,
27					url:post_grid_ajax.post_grid_ajaxurl,
28					data: {"action": "post_grid_ajax_search", "grid_id":grid_id,"keyword":keyword,},
29					success: function(data)
30							{	
31								
32								$('.grid-items').html(data);
33								$(this).removeClass('loading');
34		
35							}
36						});
37
38	
39					
40					}
41				
42			})
43
44
45
46
47
48		$(document).on('click', '.nav-filter .filter', function()
49			{
50				$('.nav-filter .filter').removeClass('active');
51				
52				
53				if($(this).hasClass('active'))
54					{
55						//$(this).removeClass('active');
56					}
57				else
58					{
59						$(this).addClass('active');
60					}
61				
62			})
63
64		$(document).on('click', '.post-grid .load-more', function()
65			{
66				
67				
68				var paged = parseInt($(this).attr('paged'));
69				var per_page = parseInt($(this).attr('per_page'));
70				var grid_id = parseInt($(this).attr('grid_id'));
71				var terms = $('.post-grid-filter .active').attr('terms-id');
72				
73				
74				if(terms == null || terms == '')
75					{
76						terms = '';
77					}
78						
79				$(this).addClass('loading');
80
81				
82			$.ajax(
83				{
84			type: 'POST',
85			context: this,
86			url:post_grid_ajax.post_grid_ajaxurl,
87			data: {"action": "post_grid_ajax_load_more", "grid_id":grid_id,"per_page":per_page,"paged":paged,"terms":terms,},
88			success: function(data)
89					{	
90					
91						//$('.grid-items').append(data);
92						var $grid = $('.grid-items').masonry({});				
93						
94						  // append items to grid
95							$grid.append( data )
96							// add and lay out newly appended items
97							.masonry( 'appended', data );
98							$grid.masonry( 'reloadItems' );
99							$grid.masonry( 'layout' );
100
101
102						$(this).attr('paged',(paged+1));
103						
104						if($(this).hasClass('loading'))
105							{
106								$(this).removeClass('loading');
107							}
108						
109					}
110				});
111
112				//alert(per_page);
113			})
114
115		
116		
117
118	});	
119
120
121
122
123
124

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.