Fix stupid bug to fix stupid bug...

This commit is contained in:
Nicolò P 2021-07-29 19:16:34 +02:00
parent 3d35886051
commit 157a875352

View File

@ -15,7 +15,7 @@
<img src="img/InnovaPatrimonio_logo_transparent_bg_150x98.png" alt="Logo InnovaPatrimonio" id="logo">
</div>
<div class="column col-5" id="links">
<a href="/" title="Torna alla home page">Home</a>
<a href="index.html" title="Torna alla home page">Home</a>
<a href="progetto.html" title="Vai alla descrizione del progetto">Il progetto</a>
<a href="itinerario.html" title="Vai all'itinerario">L'itinerario</a>
<a href="news.html" title="Leggi news ed eventi">News & Eventi</a>
@ -47,7 +47,8 @@
/**
* @todo Take / location into account for Home!
*/
if (window.location.href = '/') {
let homeRE = new RegExp(/https?:\S+\/$/);
if (homeRE.test(window.location.href)) {
navlinks[0].setAttribute('class', 'active');
}
});