Hangar/frontend-new/index.html
2022-03-21 13:58:14 +01:00

28 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<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" />
<meta name="apple-mobile-web-app-title" content="Hangar | PaperMC" />
<meta name="application-name" content="Hangar | PaperMC" />
<meta name="theme-color" content="#ffffff" />
</head>
<body>
<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);
})();
</script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>