Add logos in footer; test for active link...
This commit is contained in:
parent
157a875352
commit
24410ce6be
@ -114,6 +114,6 @@ footer p {
|
||||
font-size: 0.7rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
#benef {
|
||||
.logos {
|
||||
max-height: 70px;
|
||||
}
|
17
index.html
17
index.html
@ -31,7 +31,8 @@
|
||||
<main></main>
|
||||
<footer class="roboto">
|
||||
<p id="copy">© Avviso pubblico Beni Culturali e Turismo POR FESR Lazio 2014-2020</p>
|
||||
<p><img src="img/FESR_BARRA_BENEFICIARI_DEF.jpg" id="benef" alt="Loghi enti beneficiari"></p>
|
||||
<p><img src="img/loghi_ispc_potlach.png" class="logos" alt="Loghi ISPC Potlach"></p>
|
||||
<p><img src="img/FESR_BARRA_BENEFICIARI_DEF.jpg" class="logos" alt="Loghi enti beneficiari"></p>
|
||||
</footer>
|
||||
</body>
|
||||
<!-- MOOOVE AWAAAAAYY -->
|
||||
@ -41,16 +42,16 @@
|
||||
|
||||
Array.from(navlinks).forEach(element => {
|
||||
let ref = element.href.substr(element.href.lastIndexOf('/'), element.href.length);
|
||||
if (window.location.href.includes(ref)) {
|
||||
|
||||
if (window.location.href.includes(ref) || element.href === 'index.html') {
|
||||
element.setAttribute('class', 'active');
|
||||
}
|
||||
/**
|
||||
* @todo Take / location into account for Home!
|
||||
*/
|
||||
let homeRE = new RegExp(/https?:\S+\/$/);
|
||||
if (homeRE.test(window.location.href)) {
|
||||
navlinks[0].setAttribute('class', 'active');
|
||||
}
|
||||
let homeRE = new RegExp(/https?:\S+\/$/);
|
||||
if (homeRE.test(window.location.href)) {
|
||||
navlinks[0].setAttribute('class', 'active');
|
||||
}
|
||||
*/
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user