diff --git a/pong/static/game.js b/pong/static/game.js index 33d653c..02b0e5d 100644 --- a/pong/static/game.js +++ b/pong/static/game.js @@ -271,6 +271,11 @@ document.addEventListener('DOMContentLoaded', () => { //} //}) + //if (menuButton) { + //console.log("menu bouton ok") + menuButton.addEventListener('click', toggleMenu); + //} + function toggleMenu() { console.log('Menu toggled'); if (dropdownMenu.style.display === "block") { @@ -280,11 +285,6 @@ document.addEventListener('DOMContentLoaded', () => { } } - if (menuButton) { - //console.log("menu bouton ok") - menuButton.addEventListener('click', toggleMenu); - } - const links = document.querySelectorAll('#dropdown-menu a'); //console.log(links); diff --git a/pong/static/index.html b/pong/static/index.html index a31d2ea..768a149 100644 --- a/pong/static/index.html +++ b/pong/static/index.html @@ -261,10 +261,10 @@ {{ match.is_tournoi }} {{ match.tournoi.name }} - {% empty %} - - No matches found. - + {% empty %} + + No matches found. + {% endfor %}