Akki-jaiswal / Akki-jaiswal/pong-game

How to Play” button does not open instructions modal Description

Aperta
#206 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
22
Fork
116
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The “How to Play” button on the welcome screen does nothing when clicked. The modal (#howToPlayModal) is present in HTML but has no JS wiring to toggle visibility.

teps to Reproduce

Open the game.

Click “How to Play”.

Expected Behavior
The instructions modal opens; clicking “Close”, the backdrop, or pressing Esc closes it.

Actual Behavior
No action occurs.

Proposed Fix

Add event listeners:

howToPlayButton.onclick → remove .hidden from #howToPlayModal

closeHowToPlay.onclick and backdrop click → add .hidden

Esc key closes modal

Optionally pause the game while the modal is open and restore focus on close.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.