main #8

Closed
limepotato wants to merge 183 commits from main into blog-drafts
Showing only changes of commit f618fa87d6 - Show all commits

View file

@ -1,5 +1,5 @@
function onload() {
if (localStorage.getItem('sgaEnabled')) {
if (sessionStorage.getItem('sgaEnabled')) {
enableSGA()
}
else {
@ -10,14 +10,14 @@ function onload() {
function enableSGA() {
document.getElementById("body").style.fontFamily = "standardGalactic, system-ui";
document.getElementById("body").style.fontWeight = "lighter";
localStorage.setItem( 'sgaEnabled', 1);
console.debug(localStorage.getItem('sgaEnabled'))
sessionStorage.setItem( 'sgaEnabled', 1);
console.debug(sessionStorage.getItem('sgaEnabled'))
}
function disableSGA() {
document.getElementById("body").style.fontFamily = "terminess-nf, system-ui";
localStorage.removeItem( 'sgaEnabled');
console.debug(localStorage.getItem('sgaEnabled'))
sessionStorage.removeItem( 'sgaEnabled');
console.debug(sessionStorage.getItem('sgaEnabled'))
}
function toggleTheme() {