forked from nebulosus/web
4 lines
128 B
JavaScript
4 lines
128 B
JavaScript
|
document.querySelectorAll("h2")
|
||
|
.forEach(e => {
|
||
|
e.onclick = () => window.location.hash = e.parentElement.id;
|
||
|
});
|