system-copyright-react/index.html

39 lines
1.1 KiB
HTML
Raw Normal View History

2024-03-11 19:13:42 +08:00
<!doctype html>
<html lang="en">
2025-05-07 14:25:17 +08:00
<head>
<meta charset="UTF-8" />
2025-05-08 16:25:17 +08:00
<!-- <link rel="icon" id="logo" type="image/svg+xml" href="/miao.svg" /> -->
2025-05-08 18:46:00 +08:00
<link rel="icon" id="logo" type="image/svg+xml" href="" />
2025-05-07 14:25:17 +08:00
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="fonts/font-awesome/css/font-awesome.css" />
2025-05-08 18:46:00 +08:00
<title id="page-title"></title>
2025-05-12 17:32:56 +08:00
2025-05-07 14:25:17 +08:00
</head>
2025-05-12 17:32:56 +08:00
<script type="module">
// import { env } from 'vite';
2025-05-07 14:25:17 +08:00
const titleElement = document.getElementById('page-title');
if (titleElement) {
2025-05-08 16:25:17 +08:00
if (THEME === 'fzkj') {
titleElement.textContent = '珐著科技';
2025-05-07 14:25:17 +08:00
} else if (THEME === 'mzw') {
titleElement.textContent = 'AI喵著';
}
}
const logoElement = document.getElementById('logo');
2025-05-12 17:32:56 +08:00
2025-05-07 14:25:17 +08:00
if (logoElement) {
2025-05-08 16:25:17 +08:00
if (THEME === 'fzkj') {
2025-05-12 17:32:56 +08:00
logoElement.href = `${import.meta.env.BASE_URL}fzkj.svg`;
} else if (THEME === 'mzw') {
logoElement.href = `${import.meta.env.BASE_URL}miao.svg`;
2025-05-07 14:25:17 +08:00
}
}
2025-05-08 16:25:17 +08:00
</script>
2025-05-07 14:25:17 +08:00
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>