Skip to content

Commit

Permalink
fixes app.html
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwalker62 committed May 13, 2024
1 parent 60241c5 commit 4dfcd45
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions frontend/src/app.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.svg" />
<link rel="stylesheet" href="%sveltekit.assets%/css/stylesheet.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<script>
document.cookie.split(';').forEach((cookie) => {
cookie = cookie.trim();
const cookieMap = cookie.split('=');
const cookieKey = cookieMap[0];
const cookieValue = cookieMap[1];
if (cookieKey === 'colorMode') {
document.documentElement.setAttribute('data-theme', cookieValue);
}
});
</script>

<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.svg" />
<link rel="stylesheet" href="%sveltekit.assets%/css/stylesheet.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<script>
document.cookie.split(';').forEach((cookie) => {
cookie = cookie.trim();
const cookieMap = cookie.split('=');
const cookieKey = cookieMap[0];
const cookieValue = cookieMap[1];
if (cookieKey === 'colorMode') {
document.documentElement.setAttribute('data-theme', cookieValue);
}
})
</script>

<body style="margin: 0; overflow: hidden" data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>

</html>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>

0 comments on commit 4dfcd45

Please sign in to comment.