1/* If visitor click on mailto links Vizzit gets a hit. */ 2document.addEventListener("DOMContentLoaded", function() { 3 document.querySelectorAll('a[href^="mailto:"]').forEach(function(element) { 4 element.classList.add('mailto'); 5 }) 6 7 document.querySelectorAll('a[href]').forEach(function (element) { 8 const linkHref = element.getAttribute("href"); 9 10 // Check if the link is not an internal link. 11 if (linkHref != null && !linkHref.startsWith('#') 12 && !linkHref.startsWith('/') 13 && !linkHref.startsWith('https://www.norrtalje.se') 14 && !linkHref.startsWith('http://www.norrtalje.se') 15 && !linkHref.startsWith('mailto:')) { 16 element.classList.add('external-site'); 17 } 18 }); 19});
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.