mirror of
https://github.com/hanzoai/status.git
synced 2026-10-30 18:21:48 +00:00
17 lines
2.4 KiB
HTML
17 lines
2.4 KiB
HTML
<!doctype html><html lang="en" class="{{ .Theme }}"><head><meta charset="utf-8"/><script>window.config = {title: "{{ .UI.Title }}", logo: "{{ .UI.Icons.Logo }}", header: "{{ .UI.Header }}", dashboardHeading: "{{ .UI.DashboardHeading }}", dashboardSubheading: "{{ .UI.DashboardSubheading }}", link: "{{ .UI.Link }}", buttons: [], maximumNumberOfResults: "{{ .UI.MaximumNumberOfResults }}", defaultSortBy: "{{ .UI.DefaultSortBy }}", defaultFilterBy: "{{ .UI.DefaultFilterBy }}"};{{- range .UI.Buttons}}window.config.buttons.push({name:"{{ .Name }}",link:"{{ .Link }}"});{{end}}
|
|
// Initialize theme immediately to prevent flash
|
|
(function() {
|
|
const themeFromCookie = document.cookie.match(/theme=(dark|light);?/)?.[1];
|
|
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
if (themeFromCookie === 'dark' || (!themeFromCookie && prefersDark)) {
|
|
document.documentElement.classList.add('dark');
|
|
} else {
|
|
document.documentElement.classList.remove('dark');
|
|
}
|
|
})();</script><title>{{ .UI.Title }}</title><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/>{{ if .UI.Brand }}{{ with .UI.Icons }}<link rel="apple-touch-icon" sizes="180x180" href="{{ .Touch180 }}"/><link rel="icon" type="image/svg+xml" href="{{ .SVG }}"/><link rel="icon" type="image/png" sizes="32x32" href="{{ .PNG32 }}"/><link rel="icon" type="image/png" sizes="16x16" href="{{ .PNG16 }}"/><link rel="shortcut icon" href="{{ .ICO }}"/>{{ end }}{{ end }}<link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="stylesheet" href="/css/custom.css"/><meta name="description" content="{{ .UI.Description }}"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><meta name="apple-mobile-web-app-title" content="{{ .UI.Title }}"/><meta name="application-name" content="{{ .UI.Title }}"/><meta name="theme-color" content="{{ .UI.Background.Dark }}" media="(prefers-color-scheme: dark)"/><meta name="theme-color" content="{{ .UI.Background.Light }}" media="(prefers-color-scheme: light)"/>
|
|
<link rel="stylesheet" crossorigin href="/assets/index-DTZPd9mb.css">
|
|
<script type="module" crossorigin src="/assets/index-Cx_RQp88.js"></script>
|
|
</head><body><noscript><strong>Enable JavaScript to view this page.</strong></noscript>
|
|
<div id="root"></div>
|
|
|
|
</body></html> |