division en fichiers

This commit is contained in:
Valentin Moguérou 2024-05-08 10:01:24 +02:00
parent 9e2427d5ae
commit 811b224d6a
2 changed files with 14 additions and 2 deletions

View File

@ -31,7 +31,7 @@ body {
cursor: pointer;
}
.unified_navigator #dropdown-indicator {
.unified_navigator #navigator-dropdown-indicator {
display: none;
}
@ -60,7 +60,7 @@ body {
transform: scale(1.1);
}
.unified_navigator i, .unified_navigator #dropdown-indicator {
.unified_navigator i, .unified_navigator #navigator-dropdown-indicator {
display: inline;
margin: 0 5px;
}

12
script.js Normal file
View File

@ -0,0 +1,12 @@
function navigator_toggleMenu() {
if (document.body.clientWidth > 600)
return document.location = "https://mp2i-vms.fr"
if (document.getElementById("menu-sec").classList.contains("hidden")) {
document.getElementById("menu-sec").classList.remove("hidden");
document.getElementById("navigator-dropdown-indicator").className = "fa-solid fa-caret-up";
} else {
document.getElementById("menu-sec").classList.add("hidden");
document.getElementById("navigator-dropdown-indicator").className = "fa-solid fa-caret-down";
}
}