1const clearSearch = () => { 2 const urlParams = new URLSearchParams(window.location.search); 3 urlParams.delete("search"); 4 const newUrl = window.location.pathname + (urlParams.toString() ? "?" + urlParams.toString() : ""); 5 window.history.replaceState({}, document.title, newUrl); 6 window.location.reload(); 7}; 8 9const clearSearchButton = document.getElementById("clear-search"); 10clearSearchButton && clearSearchButton.addEventListener("click", clearSearch); 11
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.