Hangar/frontend-new/index.html

29 lines
1.4 KiB
HTML
Raw Normal View History

2022-02-13 02:24:05 +08:00
<!DOCTYPE html>
<html lang="en">
2022-02-13 18:56:14 +08:00
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png" />
<link rel="icon" href="/favicon/favicon.svg" type="image/svg+xml" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png" />
<link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#5bbad5" />
<!--<link rel="manifest" href="/manifest.webmanifest" /> TODO fix manifest -->
2022-02-13 18:56:14 +08:00
<meta name="apple-mobile-web-app-title" content="Hangar | PaperMC" />
<meta name="application-name" content="Hangar | PaperMC" />
<meta name="theme-color" content="#ffffff" />
</head>
2022-02-26 23:06:40 +08:00
<body class="background-body text-[#262626] dark:text-[#E0E6f0]">
2022-02-13 18:56:14 +08:00
<div id="app"></div>
<script>
(function () {
const prefersDark = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
const setting = localStorage.getItem("color-schema") || "auto";
if (setting === "dark" || (prefersDark && setting !== "light")) document.documentElement.classList.toggle("dark", true);
})();
2022-03-19 20:34:50 +08:00
window.global = window;
2022-02-13 18:56:14 +08:00
</script>
<script type="module" src="/src/main.ts"></script>
</body>
2022-02-13 02:24:05 +08:00
</html>