diff --git a/static/css/cours.css b/static/css/cours.css index 20ca6d1..32a49b6 100644 --- a/static/css/cours.css +++ b/static/css/cours.css @@ -57,7 +57,7 @@ main img { max-width: 100%; } -button.menu { +button#menu { display: none; } @@ -74,7 +74,7 @@ input[type="text"] { margin-left: unset; } - button { + button#menu { width: 100%; display: block; diff --git a/static/js/cours.js b/static/js/cours.js index 5b6f539..d12ac4e 100644 --- a/static/js/cours.js +++ b/static/js/cours.js @@ -148,7 +148,7 @@ window.addEventListener("load", () => { // Responsive menu let menuOpen = false; - const button = document.getElementsByTagName("button.menu")[0]; + const button = document.getElementById("menu"); const content = document.getElementsByTagName("main")[0]; const initialButtonTextContent = button.textContent; const resetPage = () => {