-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (40 loc) · 1.31 KB
/
Copy pathindex.html
File metadata and controls
40 lines (40 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#183841" />
<script>
(() => {
const requested = new URLSearchParams(location.search).get("effect");
const effect = ["aurora", "matrix", "calm", "ember", "ivory"].includes(requested)
? requested
: "aurora";
const colors = {
aurora: "#183841",
matrix: "#050815",
calm: "#edf4f5",
ember: "#0b0705",
ivory: "#f6f2ea"
};
document.documentElement.dataset.effect = effect;
document.documentElement.style.background = colors[effect];
document.documentElement.style.colorScheme = ["calm", "ivory"].includes(effect)
? "light"
: "dark";
document
.querySelector('meta[name="theme-color"]')
?.setAttribute("content", colors[effect]);
})();
</script>
<meta
name="description"
content="CDriveShiftAI — AI 辅助的 Windows 全盘文件归属分析与安全跨盘迁移工具"
/>
<title>CDriveShiftAI · 全盘 AI 智迁</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>