From dae742fc6beff46c352756c07b646519a7127df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=8E=E6=B3=BD?= Date: Thu, 12 Jun 2025 13:47:00 +0800 Subject: [PATCH] Update index.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新UI 预览图片:https://ent.img.ac.cn/20250612/1/684a69af77ac5.jpg --- public/index.html | 166 ++++++++++++++++++++++++++++++---------------- 1 file changed, 110 insertions(+), 56 deletions(-) diff --git a/public/index.html b/public/index.html index 2562f5e..0f61e6f 100644 --- a/public/index.html +++ b/public/index.html @@ -1,66 +1,106 @@ - - + - OpenList Token获取工具 - - - + OpenList Token 获取工具 + + - -
-
-

OpenList Token获取工具

- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- -
- -
- - -
- -
- - -
- -
- 本获取工具不存储任何用户信息,开源于CF-Worker-API -
-
+
+ +
+

🔐 OpenList Token 获取工具

+ +
- +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ +
+ + +
+ +
+ + +
+ +
+

+ 本工具不储存任何用户信息
+ 开源于 GitHub | by OpenListTeam +

+
+ +
- \ No newline at end of file + + //手动切换主题模式 + function toggleTheme() { + const html = document.documentElement; + const current = html.getAttribute("data-theme"); + html.setAttribute("data-theme", current === "dark" ? "light" : "dark"); + } + + // 自动切换暗黑模式 + (function () { + const hour = new Date().getHours(); + if (hour < 6 || hour >= 18) document.documentElement.setAttribute("data-theme", "dark"); + getToken(); + })(); + +