1// Refactoring the back button logic 2const urlPathIncludes = ["/terms-glossary/", "/contacts/", "/epo/", "/hmo/", "/hsp/", "/phcpn/", "/ppo/", "/medicare/", "/medi-cal/"]; 3const isURLPathIncludes = urlPathIncludes.some(path => window.location.href.includes(path)); 4const newParagraph = document.createElement("p"); 5const existingDiv = document.querySelector('.p.flattened'); 6const tagdata = existingDiv ? existingDiv.querySelector('p') : null; 7 8if (tagdata && !tagdata.querySelector('a') && tagdata.textContent.includes("previous page") && urlPathIncludes.some(path => window.location.href.includes(path))) { 9 const newAnchor = document.createElement("a"); 10 newAnchor.href = "#"; 11 newAnchor.onclick = () => { 12 history.go(-1); 13 return false; // Prevent default anchor behavior 14 }; 15 newAnchor.textContent = "Back to previous page"; 16 newParagraph.appendChild(newAnchor); 17 existingDiv.innerHTML = ''; 18 existingDiv.appendChild(newParagraph); 19 20} 21 22// Refactoring table row coloring logic 23if (isURLPathIncludes) { 24document.querySelectorAll('table').forEach(table => { 25 table.querySelectorAll('tr:nth-child(even)').forEach(row => { 26 row.style.backgroundColor = '#FFEBFF'; 27 }); 28 }); 29} 30
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.