PageSourceSearch

https://www.inprogroup.com.my/wp-content/plugins/post-grid/assets/frontend/js/scripts.js?ver=7.1.2

js inprogroup.com.my collected 2026-10-06 13:15:18 UTC 2,789 bytes, 139 lines download raw bytes

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

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.