diff --git a/pong/static/game.js b/pong/static/game.js index eac38a0..66a87b1 100644 --- a/pong/static/game.js +++ b/pong/static/game.js @@ -307,24 +307,24 @@ document.addEventListener('DOMContentLoaded', () => { } } - // Ajouter les gestionnaires d'événements - menuButton.addEventListener('click', toggleMenu); + //menuButton.addEventListener('click', toggleMenu); - /* if (menuButton) { + if (menuButton) { + console.log("menu bouton ok") menuButton.addEventListener('click', toggleMenu); + } - const links = document.querySelectorAll('#dropdown-menu a'); - console.log("Here !!!!!!!!!!!!"); - console.log(links); + const links = document.querySelectorAll('#dropdown-menu a'); + console.log("Here !!!!!!!!!!!!"); + console.log(links); - links.forEach(link => { - link.addEventListener('click', (event) => { - event.preventDefault(); // Empêche le comportement par défaut du lien - const tableId = link.getAttribute('data-table'); - //showTable(tableId); - }); + links.forEach(link => { + link.addEventListener('click', (event) => { + event.preventDefault(); // Empêche le comportement par défaut du lien + const tableId = link.getAttribute('data-table'); + //showTable(tableId); }); - } */ + }); function fetchMatches() { diff --git a/pong/static/index.html b/pong/static/index.html index ea31d69..a31d2ea 100644 --- a/pong/static/index.html +++ b/pong/static/index.html @@ -129,7 +129,7 @@
- +