mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
Co-authored-by: EthanHealy01 <80844253+EthanHealy01@users.noreply.github.com>
55 lines
1.7 KiB
HTML
55 lines
1.7 KiB
HTML
<!doctype html>
|
|
<html lang="en-US">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<base href="%BASE_URL%" />
|
|
<link rel="icon" href="modern-logo/favicon.ico" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
|
|
/>
|
|
<meta name="theme-color" content="#000000" />
|
|
<meta
|
|
name="description"
|
|
content="The Free Adobe Acrobat alternative (10M+ Downloads)"
|
|
/>
|
|
<link rel="apple-touch-icon" href="modern-logo/logo192.png" />
|
|
<link rel="manifest" href="manifest.json" />
|
|
|
|
<title>Stirling PDF</title>
|
|
|
|
<!-- Apply theme before first paint (no FOUC); mirrors ThemeProvider, which then refines it. -->
|
|
<script>
|
|
(function () {
|
|
try {
|
|
var p = JSON.parse(
|
|
localStorage.getItem("stirlingpdf_preferences") || "{}",
|
|
);
|
|
var mode = p.theme || "system";
|
|
var scheme =
|
|
mode === "light"
|
|
? "light"
|
|
: mode === "dark"
|
|
? "dark"
|
|
: window.matchMedia &&
|
|
window.matchMedia("(prefers-color-scheme: dark)").matches
|
|
? "dark"
|
|
: "light";
|
|
var r = document.documentElement;
|
|
r.setAttribute("data-theme", scheme);
|
|
r.setAttribute("data-app-theme", "custom");
|
|
r.setAttribute("data-accent", "default");
|
|
r.setAttribute("data-mantine-color-scheme", scheme);
|
|
} catch (e) {
|
|
/* first visit / unavailable storage: ThemeProvider handles it */
|
|
}
|
|
})();
|
|
</script>
|
|
</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>
|
|
</body>
|
|
</html>
|