An interactive, futuristic web application designed for stage presentation, countdown management, Jeopardy-style competition, and live leaderboard displays for The 4th MDCU Medical Tournament 2026 (23–24 July 2026).
- Multi-Stage Architecture: Seamless portal navigation connecting the Preliminary Round (23 July 2026) and Final Round (24 July 2026).
- Preliminary Round: Includes interactive 15-second countdown timer, live leaderboard, and secret logo shortcut.
- Final Round (Jeopardy Board): 3-column interactive question board across 3 categories (Basic Medical Science, Clinical Science, MDCU) with point values (100–250 pts), dynamic Question Author lookup from Google Sheets, and integrated 30-second question timer.
- Live Leaderboard Integration: Syncs real-time standings directly from published Google Sheets (CSV), featuring top 6 team display for Preliminary and top 4 for Final, with offline mock fallback.
- Web Audio API Synthesizer: 100% offline audio generation for countdown ticking sounds, warning pitch shifts, detuned digital time-up buzzers, and navigation arpeggio chimes.
All views, navigation, and timing controls can be managed seamlessly via keyboard shortcuts:
| Hotkey | Context / View | Action / Description |
|---|---|---|
| 1 | Preliminary Round | Swaps to 15-second Countdown View and auto-starts or resets timer. |
| 1 | Final Round (Question View) | Starts or toggles the 30-second Question timer. |
| S | Any Page | Toggles the Scoreboard / Leaderboard View (triggers live sheet refresh). |
| H | Any Page | Returns to the stage Landing Page. |
| Space | Countdown / Question View | Pause / Resume timer toggle. |
| R | Countdown / Question View | Reset timer back to ready status. |
| A | Final Round | Toggles Question Author Card display on/off. |
| Esc | Question View | Exits question detail and returns to Jeopardy Board. |
| Esc | Scoreboard View | Closes scoreboard and returns to previous active view. |
| Esc | Countdown View | Resets countdown timer. |
| Esc | Home / General | Swaps back to stage Landing Page. |
- Entry hub providing stage selection cards for Preliminary Round and Final Round.
- Landing Page: Event branding view. Click the MDCU Logo (
logo-trigger-prelim) or press 1 to enter Countdown mode. - 15-Second Timer View: Features a cybernetic circular progress ring with color warning transitions (cyan -> pink) during the final 5 seconds.
- Leaderboard: Displays the Top 6 teams fetched live from Google Sheets.
- Landing Page: Click the MDCU Logo (
logo-trigger) to access the Jeopardy Board. - Jeopardy Quiz Board: 3 Categories with 4 questions each:
- Basic Medical Science: No. 1 (100 pts), No. 2 (200 pts), No. 3 (200 pts), No. 4 (250 pts)
- Clinical Science: No. 1 (100 pts), No. 2 (200 pts), No. 3 (200 pts), No. 4 (250 pts)
- MDCU: No. 1 (100 pts), No. 2 (200 pts), No. 3 (200 pts), No. 4 (250 pts)
- Question Detail & Timer:
- Displays category, question item number, point value, and question author (อาจารย์ผู้ออกข้อสอบ).
- Authors are loaded dynamically from the
Final_Questionssheet tab. - Interactive 30-second main countdown timer with circular ring visualizer.
- Dedicated Steal button (in neon orange) underneath the start/reset controls, launching a 20-second steal countdown at full clock with an orange visual theme.
- Selected cards dim after timer start to indicate played items.
- Leaderboard: Displays the Top 4 finalist teams.
To bypass Google's 5-minute CSV publishing cache delay, deploy the included Code.gs file:
- Open your tournament Google Spreadsheet.
- Go to Extensions > Apps Script.
- Replace all code in
Code.gswith the content fromCode.gsin this project repository. - Click Deploy > New Deployment > Select type Web app.
- Set Execute as: Me, and Who has access: Anyone.
- Click Deploy and copy the Web App URL into
app.js:
const CONFIG = {
appsScriptUrl: 'YOUR_APPS_SCRIPT_WEB_APP_URL',
// Or separate tab endpoints:
prelimAppsScriptUrl: 'YOUR_APPS_SCRIPT_WEB_APP_URL?sheet=Prelim',
finalAppsScriptUrl: 'YOUR_APPS_SCRIPT_WEB_APP_URL?sheet=Final',
...
};The application can also fetch directly from published CSV endpoints:
const CONFIG = {
prelimSheetCsvUrl: 'YOUR_PUBLISHED_PRELIM_CSV_URL',
finalSheetCsvUrl: 'YOUR_PUBLISHED_FINAL_CSV_URL',
...
};- Open your tournament Google Sheet.
- Navigate to File > Share > Publish to web.
- Select the tab for Preliminary Standings, Final Standings, or Final_Questions.
- Set the output format to Comma-separated values (.csv) and copy the link into
app.js.
- Header-Based Column Mapping: Detects column headers in English (
Team,Score,Points,Rank) and Thai (ชื่อทีม,คะแนน,ลำดับ). Numeric team names like"67 78"or"101"are properly preserved as strings. - Stale-While-Revalidate & Rank Swap Animation: Displays loaded standings instantly without flicker during background updates, animating row rank swaps smoothly using FLIP transitions.
- Offline Fallback: Automatically loads built-in high-fidelity medical school mock standings if network is unavailable.
The application utilizes the Web Audio API to generate 100% offline-compatible sounds (no external MP3/WAV assets required):
- Timer Ticks: Low click on every elapsed second; shifts to higher warning pitch during final seconds (<=5s for both Preliminary and Final timers).
- Time Up Buzzer: Dual-oscillator detuned digital buzzer when time reaches
00. - Navigation Chimes: Upward arpeggio chime (C4 -> E4 -> G4 -> C5) on view transitions.
ℹ️ Enabling Audio Context: Web browsers require user interaction before playing audio. Click anywhere on the page before live stage presentation to enable audio playback.
mdcu-tournament26/
├── index.html # Main Tournament Portal & Stage Selection
├── prelim.html # Preliminary Round UI (Timer & Top 6 Scoreboard)
├── final.html # Final Round UI (Jeopardy Board, Question View & Top 4 Scoreboard)
├── styles.css # Cyber-medical dark theme styles, animations & glassmorphism
├── app.js # Controller logic, hotkey handlers, audio synth & sheet CSV fetchers
├── README.md # Operator guide and technical documentation
└── assets/
└── images/
└── congresslogo.jpg # MDCU Congress Logo
Open index.html in any modern web browser (Chrome, Safari, Edge, Firefox) or serve via any static file server:
# Using Python
python3 -m http.server 8000
# Using Node.js serve
npx serve .