1const year = document.querySelector('#year'); 2if (year) year.textContent = new Date().getFullYear(); 3 4// Draw every directional icon identically, independent of emoji/font support. 5document.querySelectorAll('a').forEach(link => { 6 const walker = document.createTreeWalker(link, NodeFilter.SHOW_TEXT); 7 const nodes = []; 8 while (walker.nextNode()) nodes.push(walker.currentNode); 9 nodes.forEach(node => { 10 if (!/[âââ]/u.test(node.textContent)) return; 11 const parts = node.textContent.split(/[âââ]/u); 12 const fragment = document.createDocumentFragment(); 13 parts.forEach((part, index) => { 14 if (index) { 15 const arrow = document.createElement('span'); 16 arrow.className = 'arrow'; 17 arrow.setAttribute('aria-hidden', 'true'); 18 fragment.append(arrow); 19 } 20 fragment.append(document.createTextNode(part)); 21 }); 22 node.replaceWith(fragment); 23 }); 24});
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.