1function clearInput() { 2 const searchInput = document.querySelector('.search-area input'); 3 if (searchInput) { 4 searchInput.value = ''; 5 } 6} 7 8document.addEventListener('DOMContentLoaded', function() { 9 const searchInput = document.querySelector('.search-area input'); 10 const searchBtn = document.querySelector('.search-area button'); 11 12 clearInput(); 13 14 function handleJump() { 15 const path = searchInput.value.trim(); 16 if (path) { 17 window.location.href = '/' + path; 18 } 19 } 20 21 searchBtn.addEventListener('click', handleJump); 22 23 searchInput.addEventListener('keypress', function(e) { 24 if (e.key === 'Enter') { 25 handleJump(); 26 } 27 }); 28}); 29 30window.addEventListener('pageshow', function(event) { 31 if (event.persisted) { 32 window.location.reload(); 33 } 34 clearInput(); 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.