forked from TransCircle/TransCircle-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
27 lines (27 loc) · 945 Bytes
/
Copy pathindex.html
File metadata and controls
27 lines (27 loc) · 945 Bytes
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
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TransCircleProject</title>
<script>
(function() {
try {
var t = localStorage.getItem('transcircle-theme')
// Validate theme value — prevent invalid localStorage values from
// causing CSS to fail (M1). Valid themes: light, dark, contrast.
if (t !== 'light' && t !== 'dark' && t !== 'contrast') {
t = null
}
if (!t) t = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
document.documentElement.setAttribute('data-theme', t)
} catch(e) {}
})()
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>