1$('.product-list-filter-input').on('change', function () { 2 const inputName = $(this).attr('name'); 3 const inputValue = $(this).val(); 4 const baseUrl = window.location.origin + window.location.pathname; 5 const newUrl = new URL(baseUrl); 6 if (inputValue) { 7 newUrl.searchParams.set(inputName, inputValue); 8 } else { 9 newUrl.searchParams.delete(inputName); 10 } 11 window.location.href = newUrl.toString(); 12}); 13$("#search-brand").on("keyup", function () { 14 let value = this.value.toLowerCase().trim(); 15 $("#lista1 div>li").show().filter(function () { 16 return $(this).text().toLowerCase().trim().indexOf(value) == -1; 17 }).hide(); 18}); 19 20$(".search-product-attribute").on("keyup", function () { 21 let value = this.value.toLowerCase().trim(); 22 let container = $(this).closest('.search-product-attribute-container'); 23 let listItems = container.find(".attribute-list ul>li"); 24 let noDataText = container.find(".no-data-found"); 25 26 $(this).closest('.search-product-attribute-container').find(".attribute-list ul>li").show().filter(function () { 27 return $(this).text().toLowerCase().trim().indexOf(value) == -1; 28 }).hide(); 29 30 if (listItems.filter(":visible").length === 0) { 31 noDataText.show(); 32 } else { 33 noDataText.hide(); 34 } 35});
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.