1jQuery(document).ready(function($) { 2 let offset = 3; 3 4 $('#load-more-programs-btn').on('click', function() { 5 $.ajax({ 6 url: loadMoreData.ajaxurl, 7 type: 'POST', 8 data: { 9 action: 'load_more_posts', 10 nonce: loadMoreData.nonce, 11 offset: offset 12 }, 13 success: function(response) { 14 if (response.posts.length > 0) { 15 response.posts.forEach(function(post) { 16 $('.programs-and-initiatives-showcase--tiles').append(` 17 <a href="${post.link}" class="tile"> 18 <div class="tile--image"> 19 <img src="${ post.image }" alt="${ post.image_alt }" /> 20 </div> 21 <div class="tile--content"> 22 <h3 class="proxima-nova-bold font-extrabold">${ post.title ? post.title : '' }</h3> 23 </div> 24 </a> 25 `); 26 }); 27 offset += 3; 28 } 29 30 if (!response.has_more) { 31 $('#load-more-programs-btn').remove(); 32 } 33 } 34 }); 35 }); 36});
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.