Files
data-entry-app/frontend/src/app.html
T

27 lines
957 B
HTML
Raw Normal View History

2026-04-25 20:43:37 +12:00
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/favicon.png" />
2026-06-09 21:28:53 +12:00
<script>
2026-06-11 23:56:02 +12:00
// Resolve the theme before first paint so there is no dark-mode flash.
// Dark mode is strictly opt-in: it loads only when the user has explicitly
// chosen it. Absent preference (or the legacy 'system' value) stays light,
// so the OS scheme never pulls the app into dark on its own.
2026-06-09 21:28:53 +12:00
(function () {
try {
var pref = localStorage.getItem('theme');
2026-06-11 23:56:02 +12:00
document.documentElement.dataset.theme = pref === 'dark' ? 'dark' : 'light';
2026-06-09 21:28:53 +12:00
} catch (e) {
document.documentElement.dataset.theme = 'light';
}
})();
</script>
2026-04-25 20:43:37 +12:00
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>