1jQuery( document ).ready( function( $ ){ 2 // JS to submit ajax for load more button 3 $(document).on('click', '#load-more-posts', function(e){ 4 $('.inifiniteLoader').show('fast'); 5 var previouspaged = $( this ).attr( 'data-paged' ); 6 var currentpaged = parseInt( previouspaged )+ 1; 7 jQuery.ajax({ 8 type: 'POST', 9 url: loadmore.wp_ajax_url, 10 data: { 11 action : 'zita_load_more_posts', 12 paged: currentpaged, 13 cat_slug: $( this ).attr('data-cat-slug'), 14 author_id: $( this ).attr('data-author-id'), 15 data_year: $( this ).attr('data-year'), 16 data_month: $( this ).attr('data-month'), 17 context: $(this).attr( 'data-context' ), 18 query: load_more_data.query, 19 nonce: $( '#load-more-posts-nonce' ).val(), 20 }, 21 dataType: 'html' 22 }) 23 .done( function( response ){ 24 if ( response ){ 25 26 $( '#main .main-content-row' ).append( response ); 27 if ( currentpaged == parseInt( $( '#load-more-posts' ).attr( 'data-max-pages' ) ) ){ 28 $( '#load-more-posts' ).hide(); 29 $( '#load-more-posts-error' ).css('display','block'); 30 } else { 31 $( '#load-more-posts' ).attr( 'data-paged', currentpaged ); 32 } 33 } else { 34 $( '#load-more-posts' ).hide(); 35 $( '#load-more-posts-error' ).css('display','block'); 36 } 37 $('.inifiniteLoader').hide('1000'); 38 } ); 39 e.preventDefault(); 40 }); 41});
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.