From b1379f5cef3e448884c1fb5c20ea8ba9d26f5b12 Mon Sep 17 00:00:00 2001 From: zhangyuheng Date: Tue, 17 Feb 2026 11:47:07 +0800 Subject: [PATCH] feat: Redesign player details modal with improved layout and accordion for detailed stats --- .github/copilot-instructions.md | 45 ++++++ stats.html | 237 ++++++++++++++++++++++++++++---- stats_script.js | 155 +++++++++++++++++++++ 3 files changed, 408 insertions(+), 29 deletions(-) create mode 100644 .github/copilot-instructions.md diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 0000000..e10db18 --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,45 @@ +# Project Guidelines + +## Code Style +- This repo is framework-free: plain HTML + CSS + vanilla JavaScript (`index.html`, `stats.html`, `script.js`, `stats_script.js`). +- Keep existing naming style: `camelCase` for JS functions/variables and descriptive DOM ids/classes (for example `fetchCrowdfunding`, `setupMobileMenu`, `#players-grid`). +- Preserve current formatting patterns: 4-space indentation in HTML/CSS, simple function-based JS (no classes/modules/build tooling). +- Reuse shared tokens in `style.css` (`:root` variables such as `--bg-color`, `--accent-color`) instead of introducing new ad-hoc styles. +- Keep user-facing copy in Chinese unless the surrounding section is already English. + +## Architecture +- Public pages are static entry points: + - `index.html` + `script.js`: landing page, sponsors, fundraising progress, live server status. + - `stats.html` + `stats_script.js`: player leaderboard + searchable player cards + modal details. +- Shared visual system lives in `style.css`; `stats.html` adds page-specific inline ` @@ -411,39 +572,57 @@