Skip to content

Commit

Permalink
Update menú.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davespser authored Dec 6, 2024
1 parent 169f3c5 commit f6d4af0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/menú.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,15 @@ function onMouseClick(event) {
}

window.addEventListener('click', onMouseClick, false);

// ... (resto de tu código Three.js)

// Obtener el botón del menú
const menuButton = document.getElementById('menu-button');

// Agregar un evento de clic al botón
menuButton.addEventListener('click', () => {
// Aquí puedes agregar la lógica para desplegar el menú
// Por ejemplo, puedes animar el plano para que se expanda
// o mostrar/ocultar elementos del menú
});

0 comments on commit f6d4af0

Please sign in to comment.