1jQuery(function($){ 2 $('.loadmore').click(function(){ 3 4 var button = $(this), 5 data = { 6 'action': 'loadmore', 7 'query': loadmore_params.posts, 8 'page' : loadmore_params.current_page 9 }; 10 11 $.ajax({ 12 url : loadmore_params.ajaxurl, // AJAX handler 13 data : data, 14 type : 'POST', 15 beforeSend : function ( xhr ) { 16 button.text('Loading...'); 17 }, 18 success : function( data ){ 19 if( data ) { 20 button.text( 'Show more' ).prev().after(data); 21 loadmore_params.current_page++; 22 if ( loadmore_params.current_page == loadmore_params.max_page ) 23 button.remove(); 24 25 } else { 26 27 button.remove(); 28 } 29 } 30 }); 31 }); 32});
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.