1const HOME_URL = '/homeowners/app'; 2const status = document.getElementById('status'); 3const statusText = document.getElementById('status-text'); 4const retry = document.getElementById('retry'); 5 6function openHome() { 7 window.location.assign(HOME_URL); 8} 9 10function updateStatus() { 11 const online = navigator.onLine; 12 status.classList.toggle('online', online); 13 statusText.textContent = online ? 'Connection restored' : 'No internet connection'; 14 retry.textContent = online ? 'Return home' : 'Try again'; 15} 16 17retry.addEventListener('click', openHome); 18window.addEventListener('online', () => { 19 updateStatus(); 20 openHome(); 21}); 22window.addEventListener('offline', updateStatus); 23updateStatus();
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.