Hide nav on mobile when you select a destination
This commit is contained in:
parent
9eab378d50
commit
6d586c0982
|
@ -21,6 +21,17 @@ topshrtct.addEventListener('click', () => {
|
|||
}
|
||||
});
|
||||
|
||||
let links = document.getElementsById('navbar').getElementsByTagName('a');
|
||||
|
||||
for (let link of links) {
|
||||
link.addEventListener('click', () => {
|
||||
const navbar = document.getElementById('navbar');
|
||||
navbar.classList.remove('expanded');
|
||||
navbtn.classList.remove('expanded');
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
async function updateAge() {
|
||||
setInterval(() => {
|
||||
const birthdate = new Date('2002-02-12T07:35:00Z');
|
||||
|
|
Loading…
Reference in New Issue