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;
|
width: 1000px;
|
||||||
max-width: calc(100% - 2rem);
|
max-width: calc(100% - 2rem);
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
font-family: system-ui, sans-serif;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
margin: auto;
|
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() {
|
function toggleTheme() {
|
||||||
// Obtains an array of all <link>
|
// Obtains an array of all <link>
|
||||||
// elements.
|
// elements.
|
||||||
|
@ -9,3 +14,12 @@ function toggleTheme() {
|
||||||
document.getElementById("body").style.fontFamily = "system-ui, sans-serif";
|
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 />
|
<Head />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
</head>
|
</head>
|
||||||
<body onload="redirect()" id="body">
|
<body onload="onload()" id="body">
|
||||||
<Header />
|
<Header />
|
||||||
<slot />
|
<slot />
|
||||||
<Footer />
|
<Footer />
|
||||||
<script type='text/javascript' src='/scripts/fuckchrome.js'></script>
|
<script type='text/javascript' src='/scripts/limepot.js'></script>
|
||||||
<script type='text/javascript' src='/scripts/galactic-font.js'></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue