Update home page
This commit is contained in:
33
index.html
33
index.html
@@ -10,22 +10,22 @@
|
||||
<body>
|
||||
<header class="main-header bg1">
|
||||
<div class="container">
|
||||
<div class="columns" id="nav">
|
||||
<div class="columns text-gray" id="nav">
|
||||
<div class="column col-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="/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>
|
||||
<a href="/credits.html" title="Credits del progetto">Credits</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>
|
||||
<a href="credits.html" title="Credits del progetto">Credits</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="title">
|
||||
<h1 class="arvo text-center">Nel cielo di Fara</h1>
|
||||
<button class="text-center">Entra</button>
|
||||
<div id="title" class="text-center">
|
||||
<h1 class="arvo">Nel cielo di Fara</h1>
|
||||
<button>Entra</button>
|
||||
</div>
|
||||
</header>
|
||||
<main></main>
|
||||
@@ -36,7 +36,7 @@
|
||||
</body>
|
||||
<!-- MOOOVE AWAAAAAYY -->
|
||||
<script type="text/javascript">
|
||||
window.addEventListener('load', function () {
|
||||
window.addEventListener('load', () => {
|
||||
let navlinks = document.querySelector('#links').children;
|
||||
|
||||
Array.from(navlinks).forEach(element => {
|
||||
@@ -46,5 +46,18 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
window.addEventListener('scroll', event => {
|
||||
let nav = document.querySelector('#nav');
|
||||
|
||||
if (window.pageYOffset !== 0) {
|
||||
nav.classList.add('bg-white');
|
||||
nav.classList.remove('text-gray');
|
||||
}
|
||||
else {
|
||||
nav.classList.add('text-gray');
|
||||
nav.classList.remove('bg-white');
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user