1jQuery(document).ready(function($) { 2 $('#s, #res').on('input', function() { 3 let search = $(this).val(); 4 if (search.length > 0) { 5 $.ajax({ 6 url: newscrunch_ajax.ajax_url, 7 type: 'POST', 8 data: { 9 action: 'newscrunch_live_search', 10 keyword: search 11 }, 12 beforeSend: function() { 13 $('.search-results-container').remove(); 14 $('#searchform').after('<div class="search-results-container">' + newscrunch_ajax.searching_text + '</div>'); 15 $('#res-searchform').after('<div class="search-results-container">' + newscrunch_ajax.searching_text + '</div>'); 16 }, 17 success: function(response) { 18 $('.search-results-container').html(response); 19 } 20 }); 21 } else { 22 $('.search-results-container').remove(); 23 } 24 }); 25});
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.