app.html 1005 B

123456789101112131415161718192021222324252627282930
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <link rel="icon" href="%sveltekit.assets%/favicon.png" />
  6. <link rel="manifest" href="%sveltekit.assets%/manifest.json" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  8. <meta name="robots" content="noindex,nofollow" />
  9. <script>
  10. // On page load or when changing themes, best to add inline in `head` to avoid FOUC
  11. if (
  12. localStorage.theme === 'light' ||
  13. (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: light)').matches)
  14. ) {
  15. document.documentElement.classList.add('light');
  16. } else if (localStorage.theme) {
  17. localStorage.theme.split(' ').forEach((e) => {
  18. document.documentElement.classList.add(e);
  19. });
  20. } else {
  21. document.documentElement.classList.add('dark');
  22. }
  23. </script>
  24. %sveltekit.head%
  25. </head>
  26. <body data-sveltekit-preload-data="hover">
  27. <div style="display: contents">%sveltekit.body%</div>
  28. </body>
  29. </html>