1jQuery(document).ready(function($) { 2 var routesLoading = false; 3 4 $('.routes-load-more').on('click', function(e) { 5 e.preventDefault(); 6 7 var itemCount = $('ul.featured-routes li').length; 8 var currentPage = itemCount / 4; 9 var nextPage = currentPage + 1; 10 11 var data = { 12 action: 'routes', 13 security: Ajax.security, 14 page: nextPage 15 }; 16 17 if ( ! routesLoading) { 18 routesLoading = true; 19 20 $.post(Ajax.ajaxurl, data, function(response) { 21 $('ul.featured-routes').append(response); 22 23 routesLoading = false; 24 }); 25 } 26 27 return false; 28 }); 29});
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.