Files
suwayomi-material-you-webui/index.html

64 lines
2.8 KiB
HTML
Raw Normal View History

2026-03-10 22:28:19 +01:00
<!doctype html>
2023-02-13 20:20:08 +03:30
<html>
2026-03-10 22:28:19 +01:00
<head>
<title>Suwayomi</title>
<meta name="apple-mobile-web-app-title" content="Suwayomi" />
<meta name="description" content="A manga reader that runs tachiyomi's extensions" />
2025-01-09 00:17:56 +01:00
2026-03-10 22:28:19 +01:00
<meta charset="utf-8" />
2025-01-09 00:17:56 +01:00
2026-03-10 22:28:19 +01:00
<meta name="viewport" content="minimum-scale=1, initial-scale=1, viewport-fit=cover, width=device-width" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
2025-01-09 00:17:56 +01:00
2026-03-10 22:28:19 +01:00
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
2026-03-10 22:28:19 +01:00
<link rel="manifest" href="/site.webmanifest" crossorigin="use-credentials" />
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="./src/index.tsx"></script>
<script>
const backgroundColor = (() => {
const storageValue = window.localStorage.getItem('theme_background');
try {
return JSON.parse(storageValue);
} catch (e) {
return storageValue;
}
})();
2026-03-10 22:28:19 +01:00
if (backgroundColor) {
document.documentElement.style.backgroundColor = backgroundColor;
// android chromium-based browser/pwa background color (e.g. top status bar and navigation bar) will change dynamically based on meta theme-color
let themeColorMeta = document.querySelector('meta[name="theme-color"]');
if (!themeColorMeta) {
themeColorMeta = document.createElement('meta');
themeColorMeta.setAttribute('name', 'theme-color');
document.head.appendChild(themeColorMeta);
}
if (themeColorMeta.getAttribute('content') !== backgroundColor) {
themeColorMeta.setAttribute('content', backgroundColor);
}
}
</script>
<!--
2020-12-24 15:02:03 +03:30
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
2020-12-24 15:02:03 +03:30
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
2020-12-24 15:02:03 +03:30
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
2026-03-10 22:28:19 +01:00
</body>
</html>