hmm
This commit is contained in:
parent
ff59a1c094
commit
77a283ac98
4 changed files with 19 additions and 12 deletions
|
@ -17,6 +17,7 @@
|
|||
width: 1000px;
|
||||
max-width: calc(100% - 2rem);
|
||||
font-size: 20px;
|
||||
font-family: system-ui, sans-serif;
|
||||
line-height: 1.6;
|
||||
margin: auto;
|
||||
}
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
|
||||
let chromium = /Chrome|Chromium|OPR|Opera|Edge|UC|QQ|Brave/.test(
|
||||
navigator.userAgent
|
||||
);
|
||||
let disclaimer = `<div class="web-disclaimer">`;
|
||||
if (chromium)
|
||||
window.location.replace("/nochrome");
|
|
@ -1,3 +1,8 @@
|
|||
function onload() {
|
||||
redirect()
|
||||
sdocument.getElementById("body").style.fontFamily = "system-ui, sans-serif";
|
||||
}
|
||||
|
||||
function toggleTheme() {
|
||||
// Obtains an array of all <link>
|
||||
// elements.
|
||||
|
@ -9,3 +14,12 @@ function toggleTheme() {
|
|||
document.getElementById("body").style.fontFamily = "system-ui, sans-serif";
|
||||
}
|
||||
}
|
||||
|
||||
function redirect() {
|
||||
let chromium = /Chrome|Chromium|OPR|Opera|Edge|UC|QQ|Brave/.test(
|
||||
navigator.userAgent
|
||||
);
|
||||
let disclaimer = `<div class="web-disclaimer">`;
|
||||
if (chromium)
|
||||
window.location.replace("/nochrome");
|
||||
}
|
|
@ -15,11 +15,10 @@ const { title } = Astro.props;
|
|||
<Head />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body onload="redirect()" id="body">
|
||||
<body onload="onload()" id="body">
|
||||
<Header />
|
||||
<slot />
|
||||
<Footer />
|
||||
<script type='text/javascript' src='/scripts/fuckchrome.js'></script>
|
||||
<script type='text/javascript' src='/scripts/galactic-font.js'></script>
|
||||
<script type='text/javascript' src='/scripts/limepot.js'></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue