PageSourceSearch

https://www.getfootballnewsitaly.com/wp-content/themes/soledad/js/more-post-bg.js?ver=8.7.2

js getfootballnewsitaly.com collected 2026-10-02 18:24:44 UTC 3,973 bytes, 133 lines download raw bytes

1/* global penciBlock */
2/* global penciBlocksArray */
3jQuery( document ).ready( function ( $ ) {
4	var pagednum;
5	jQuery( 'body' ).on( 'click', '.penci-bgajax-more-click .penci-ajax-more-button', function ( event ) {
6		event.preventDefault();
7		if ( !$( this ).hasClass( 'loading-posts' ) ) {
8			var $this = $( this ),
9				settings = $this.data( 'settings' ),
10				layout = $this.data( 'layout' ),
11				mes = $this.data( 'mes' ),
12				query_type = $this.data('query_type'),
13				archivetype = $this.data('archivetype'),
14				archivevalue = $this.data('archivevalue'),
15				arppp = $this.data('arppp'),
16				cat = $this.data('cat'),
17				tag = $this.data('tag'),
18				author = $this.data('author'),
19				pagednum = $( this ).attr( 'data-pagednum' );
20
21			$this.addClass( 'loading-posts' );
22			
23			var data = {
24				action: 'penci_bgmore_post_ajax',
25				settings: settings,
26				layout: layout,
27				pagednum: pagednum,
28				archivetype: archivetype,
29				archivevalue: archivevalue,
30				query_type: query_type,
31				arppp: arppp,
32				cat: cat,
33				tag: tag,
34				author: author,
35				nonce: pcbgajax_more_posts.nonce,
36			};
37
38			$.ajax( {
39				type    : "POST",
40				dataType: "html",
41				url     : ajax_var_more.url,
42				data    : data,
43				success : function ( data ) {
44					if ( data ) {
45						var data_paded = parseInt( pagednum ) + 1,
46							$wrap_content = $this.parent().parent().find('.penci-biggrid-data');
47
48						$this.attr( 'data-pagednum', data_paded );
49						
50						if ( layout === 'style-2' ) {
51							var $data = $( data );
52							$wrap_content.append( $data ).isotope( 'appended', $data ).imagesLoaded( function () {
53								$wrap_content.isotope( 'layout' );
54							} );
55
56							if( $().easyPieChart ) {
57								$( '.penci-piechart' ).each( function () {
58									var $this = $( this );
59									$this.one( 'inview', function ( event, isInView, visiblePartX, visiblePartY ) {
60										var chart_args = {
61											barColor  : $this.data( 'color' ),
62											trackColor: $this.data( 'trackcolor' ),
63											scaleColor: false,
64											lineWidth : $this.data( 'thickness' ),
65											size      : $this.data( 'size' ),
66											animate   : 1000
67										};
68										$this.easyPieChart( chart_args );
69									} ); // bind inview
70								} ); // each
71							}
72							
73							//lazySizes.init();
74
75						} else {
76							var $data = $( data );
77							if( layout === 'style-1' ){
78								$wrap_content.append( $data );
79							} else {
80								$wrap_content.parent().append( $data );
81							}
82							
83							//lazySizes.init();
84
85							if( $().easyPieChart ) {
86								$( '.penci-piechart' ).each( function () {
87									var $this = $( this );
88									$this.one( 'inview', function ( event, isInView, visiblePartX, visiblePartY ) {
89										var chart_args = {
90											barColor  : $this.data( 'color' ),
91											trackColor: $this.data( 'trackcolor' ),
92											scaleColor: false,
93											lineWidth : $this.data( 'thickness' ),
94											size      : $this.data( 'size' ),
95											animate   : 1000
96										};
97										$this.easyPieChart( chart_args );
98									} ); // bind inview
99								} ); // each
100							}
101						}
102						
103						if ( $().theiaStickySidebar ) {
104							var top_margin = 90;
105							if( $('body' ).hasClass('admin-bar') ) {
106								top_margin = 122;
107							}
108							$('#main.penci-main-sticky-sidebar, #sidebar.penci-sticky-sidebar' ).theiaStickySidebar({
109								// settings
110								additionalMarginTop: top_margin
111							});
112						} // if sticky
113
114						$this.removeClass( 'loading-posts' );
115						$(document).trigger('penci_bf_check');
116						
117					} else {
118						$this.find( ".ajax-more-text" ).text( mes );
119						$this.find( "i" ).remove();
120						$this.removeClass( 'loading-posts' );
121						setTimeout(function(){
122							$this.parent().remove();
123						}, 1200);
124					}
125				},
126				error   : function ( jqXHR, textStatus, errorThrown ) {
127					console.log( jqXHR + " :: " + textStatus + " :: " + errorThrown );
128				}
129
130			} );
131		}
132	} );
133} );

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.