const hash=location.hash.replace('#',''); if(!hash.length) return; const node=document.getElementById(hash); if(node) node.classList.add('active');