PageSourceSearch

https://www.ocpecuador.com/wp-content/themes/myweb/assets/js/load-more.js?ver=1.0

js ocpecuador.com collected 2026-10-02 12:23:11 UTC 1,416 bytes, 56 lines download raw bytes

1jQuery(document).ready(function($) {
2
3	$('.load-more').click(function(){
4
5		$(this).html('<i class="fas fa-circle-notch cor3 fa-spin"></i> Más');
6
7		post_type = $(this).attr('var-post-type');
8		paged = parseInt($(this).attr('var-paged'));
9		category = parseInt($(this).attr('var-category'));
10		taxonomy = parseInt($(this).attr('var-taxonomy'));
11		pesquisa = $(this).attr('var-pesquisa');
12
13		$.ajax({
14			url: $(this).attr('var-url'),//ajaxurl,
15			type: 'POST',
16			data: {
17				'action': 'load_more', // Ação do Ajax
18				'post-type': post_type,
19				'category': category,
20				'taxonomy': taxonomy,
21				'paged': paged,
22				'pesquisa': pesquisa
23			},
24			success: function( response ){
25				max_paged = response.split('max_paged').pop();
26				loopHTML  = response.split('max_paged').shift();
27
28				paged = paged + 1;
29				if(paged == max_paged){ 
30					$('.load-more').hide();
31				}else{
32
33					$('.load-more').attr('var-paged' , paged);
34					$('.load-more').attr('var-max-paged' , max_paged);
35
36				}
37
38				$('.prensa-list .row:last-child').append(loopHTML);
39
40				owlCarousel();
41
42				$('.load-more').html('Más');
43			},
44			
45			error: function(){
46
47				$('.prensa-list .row:last-child').append('<div class="col-12 center"><p>.Lo sentimos, no fue posible traer más contenido.</p></div>');
48				$('.load-more').html('Más');
49				$('.load-more').hide();
50
51			}
52		});
53
54	});
55
56});	

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.