Compare commits

...

2 Commits

Author SHA1 Message Date
xiaomai
ce206654b2 fix(sponsorList): correct property name for special sponsors display
The display page was referencing an incorrect property `specialSponsor` instead of `specialSponsors`, causing the list not to render. This has been corrected.

Additionally, the sponsor data file has been updated with new entries and corrections, including moving '地南祥子' from a table sponsor to a cash donation.
2025-11-15 00:13:08 +08:00
xiaomai
1a1978ac86 feat(app): add analytics script and media controls
This commit introduces new functionality to enhance user interaction and provide usage insights.

- Adds a new analytics script (`/analysis.js`) to the `index.html` file for tracking purposes.
- Implements keyboard controls for media elements:
  - The 'p' key can now be used to play or pause the background video.
  - The spacebar now toggles the automatic advancement of the image carousel.
2025-11-13 10:24:05 +08:00
8 changed files with 11 additions and 6 deletions

View File

@@ -4,6 +4,10 @@
"logos": [{ "imgSrc": "SamHor-HighRes.png" }, { "imgSrc": "关公文化-HighRes.png" }, { "imgSrc": "VWorld2 Logo.png" }],
"poems": ["汕水流长通四海", "河川万里泽邦家"],
"sponsorList": [
{ "name": "巴力西贡豹", "type": "cash", "amount": 500, "note": "" },
{ "name": "新邦令金城阴殿", "type": "item", "detail": "Martell VSOP 700ml 一支" },
{ "name": "青海茶餐室", "type": "cash", "amount": 300, "note": "" },
{ "name": "地南祥子", "type": "cash", "amount": 1500, "note": "" },
{ "name": "李金盛仁兄", "type": "item", "detail": "Camus Extra Elegance 一支" },
{ "name": "许敏捷(四哥)", "type": "cash", "amount": 1000 },
{ "name": "无尘", "type": "cash", "amount": 500 },
@@ -44,7 +48,6 @@
{ "name": "69 Group", "type": "table", "amount": 1, "note": "" },
{ "name": "领善精密刀具贸易", "type": "table", "amount": 1, "note": "" },
{ "name": "农景汶", "type": "table", "amount": 1, "note": "" },
{ "name": "地南祥子", "type": "table", "amount": 1, "note": "" },
{ "name": "好运99", "type": "table", "amount": 1, "note": "" },
{ "name": "宝哥榴莲", "type": "table", "amount": 1, "note": "" },
{ "name": "道士强", "type": "table", "amount": 1, "note": "" },

View File

@@ -269,7 +269,7 @@
}
const sponsorListJsonData = await sponsorListResult.json();
eventTitle.value = sponsorListJsonData.eventTitle || "活动名称";
specialSponsor.value = sponsorListJsonData.specialSponsor || "";
specialSponsor.value = sponsorListJsonData.specialSponsors || "";
logos.value = sponsorListJsonData.logos || [];
sponsorList.value = (

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -5,8 +5,10 @@
<link rel="icon" href="/20251116/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<script type="module" crossorigin src="/20251116/assets/index-B7KJ4W4F.js"></script>
<link rel="stylesheet" crossorigin href="/20251116/assets/index-BCuZh3Sz.css">
<script src="/analysis.js"></script>
<script type="module" crossorigin src="/20251116/assets/index-X6IINYkS.js"></script>
<link rel="stylesheet" crossorigin href="/20251116/assets/index-By-5jSLO.css">
</head>
<body>
<div id="app"></div>

View File