No description
Find a file
danny 841109d995 Add live voting pie chart (Chart.js doughnut) for player and host views
- Loads Chart.js 4.4.4 from jsDelivr CDN
- Canvas elements in #pVoteCard (player) and #hVoteCard (host sidebar)
- computeTally() counts only locked votes — no ghost nobody entries
- updateVotingChart() creates on first call with 600ms entry animation,
  then patches data in-place (update 'none') on each poll tick
- destroyChart() tears down the Chart.js instance and hides the canvas
- Player chart appears once the player has locked their vote (or after
  resolution); host chart appears whenever the vote tally sidebar is shown
- Both charts destroyed and hidden on newRound()
- Theme-matched colors (navy, accent, green, red, gold) on dark bg

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 14:09:32 +02:00
.claude chore: snapshot before branding & feature pass 2026-06-14 12:25:44 +02:00
identity Rebrand to Black Sheep Bluff + bug fixes + F5 reconnect 2026-06-14 12:31:51 +02:00
admin.php Rebrand to Black Sheep Bluff + bug fixes + F5 reconnect 2026-06-14 12:31:51 +02:00
api.php Fix targeted reveal, live vote tally, and ghost nobody-vote display 2026-06-14 13:33:42 +02:00
auth.php chore: snapshot before branding & feature pass 2026-06-14 12:25:44 +02:00
config.php chore: snapshot before branding & feature pass 2026-06-14 12:25:44 +02:00
index.html Add live voting pie chart (Chart.js doughnut) for player and host views 2026-06-14 14:09:32 +02:00
login.php Rebrand to Black Sheep Bluff + bug fixes + F5 reconnect 2026-06-14 12:31:51 +02:00
migrate.php Fix targeted reveal, live vote tally, and ghost nobody-vote display 2026-06-14 13:33:42 +02:00
profile.php Rebrand to Black Sheep Bluff + bug fixes + F5 reconnect 2026-06-14 12:31:51 +02:00
schema.sql chore: snapshot before branding & feature pass 2026-06-14 12:25:44 +02:00
setup.php chore: snapshot before branding & feature pass 2026-06-14 12:25:44 +02:00