Ajout d'un menu responsive

This commit is contained in:
leosw
2025-08-18 17:15:58 +02:00
parent e3de743bb8
commit d744317283
4 changed files with 55 additions and 13 deletions

View File

@@ -72,11 +72,11 @@ function enlarge() {
$(window).scroll(function() {
var position = $(window).scrollTop();
if (position>80 && small!=1) {
if (position>80 && small!=1 && $('body').width() > 800) {
small = 1;
reduce();
}
else if (position<=80 && small!=0) {
else if (position<=80 && small!=0 && $('body').width() > 800) {
small = 0;
enlarge();
}