1document.addEventListener("DOMContentLoaded", function () { 2 const searchInput = document.getElementById('search-input'); 3 const searchResetButton = document.getElementById('search-reset-button'); 4 if (searchInput.value != '') { 5 searchResetButton.classList.add('SearchField__resetButton--show'); 6 } 7 8 searchResetButton.addEventListener("click", function() { 9 const searchForm = document.getElementById('search-form'); 10 11 // Resets input field and submits the form if the search query is not empty 12 if (searchInput.value != '') { 13 searchInput.value = ''; 14 searchForm.submit(); 15 } 16 }); 17 18 searchInput.addEventListener("change", function () { 19 // hides reset button if the form if the search query is not empty 20 if (searchInput.value != '') { 21 searchResetButton.classList.add('SearchField__resetButton--show'); 22 } else { 23 searchResetButton.classList.remove('SearchField__resetButton--show'); 24 } 25 }); 26});
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.