mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-05-16 05:29:07 +02:00
cf6ce73e55
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
31 lines
861 B
HTML
31 lines
861 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<script>
|
|
// prevent white flash in dark mode
|
|
(function () {
|
|
try {
|
|
const storedTheme = localStorage.getItem('theme-mode');
|
|
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
const isDark = storedTheme === 'dark' || (!storedTheme && prefersDark);
|
|
|
|
if (isDark) {
|
|
document.documentElement.classList.add('dark');
|
|
document.documentElement.style.backgroundColor = '#111827';
|
|
}
|
|
} catch (e) {
|
|
// ignore errors
|
|
}
|
|
})();
|
|
</script>
|
|
%sveltekit.head%
|
|
</head>
|
|
|
|
<body data-sveltekit-preload-data="hover">
|
|
<div style="display: contents">%sveltekit.body%</div>
|
|
</body>
|
|
</html>
|