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.
This commit is contained in:
xiaomai
2025-11-13 10:24:05 +08:00
parent cbc105ad03
commit 1a1978ac86
5 changed files with 6 additions and 4 deletions

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>