1 2(function($) { 3 const $wpslWrapper = $('.wpsl-wrapper'); 4 5 $('.wpsl-wrapper .filters__icon').on('click', function() { 6 $(this).closest('form').find('.section__filters').slideToggle(); 7 }); 8 9 if ($wpslWrapper.length) { 10 $(document).ajaxComplete(function(event, xhr, settings) { 11 if (settings.url.includes('action=store_search')) { 12 const responseJson = xhr.responseJSON; 13 const resultsCount = responseJson.length; 14 const resultsCountField = $wpslWrapper.find('.wpsl-results-count'); 15 const resultsForField = $wpslWrapper.find('.wpsl-results-for'); 16 const searchInput = $('#wpsl-search-input'); 17 18 resultsForField.html(searchInput.val()); 19 resultsCountField.html(resultsCount + ' of ' + resultsCount); 20 } 21 }); 22 } 23})(jQuery);
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.