How josuemon/basquetball-scoreboard works
This is a small browser-based basketball scoreboard: users adjust team scores and fouls and run a countdown, with the page displaying those values and the winning-team highlight. The sampled JavaScript shows score and foul state, DOM updates, and timer behavior. The HTML and CSS contents were not provided, so page elements and user-event wiring are not verified; the graph omits those connections rather than assuming them.
Main entry points: index.js Score Controls · index.html Team Scores
Components 8
Game Logic
- Score Controls
index.js - Foul Tracking
index.js - Countdown Timer
index.js
Scoreboard Display
- Team Scores
index.html - Foul Indicators
index.html - Winner Highlight
index.js - Timer Display
index.html
Other components
- Scorekeeper
Connections 5
- Score Controls → Team Scores: updates scores
index.js - Score Controls → Winner Highlight: calls update
index.js - Winner Highlight → Team Scores: styles scores
index.js - Foul Tracking → Foul Indicators: updates fouls
index.js - Countdown Timer → Timer Display: updates timer
index.js