Initial retro 2010 website

This commit is contained in:
2026-06-24 18:05:45 +02:00
commit b1142cf776
5 changed files with 567 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
(function () {
var activeLink = document.querySelector('.nav a.active');
if (!activeLink) {
return;
}
var links = Array.prototype.slice.call(document.querySelectorAll('.nav a'));
function setActiveFromHash() {
var hash = window.location.hash || '#start';
links.forEach(function (link) {
if (link.getAttribute('href') === hash) {
link.classList.add('active');
} else {
link.classList.remove('active');
}
});
}
window.addEventListener('hashchange', setActiveFromHash);
setActiveFromHash();
})();