This commit is contained in:
2023-01-17 23:15:49 +01:00
parent 5575f56c81
commit f72e7981fd
54 changed files with 1262 additions and 25 deletions

22
JS/bouton.js Normal file
View File

@@ -0,0 +1,22 @@
let bouton;
window.onload = function() {
bouton = document.getElementById("haut");
bouton.style.display = "none";
}
window.onscroll= function() {descente()};
function descente(){
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
bouton.style.display = "block";
}
else {
bouton.style.display = "none";
}
}
function EnHaut(){
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
bouton.style.display = "none";
}

8
JS/burger.js Normal file
View File

@@ -0,0 +1,8 @@
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}