2024-08-24 03:11:56 -06:00
|
|
|
// IF YOU EDIT ANYTHING IN HERE DONT FORGET TO EDIT THE SCRIPT IN LAYOUT.ASTRO BECAUSE FUCK ME
|
2024-08-24 03:26:05 -06:00
|
|
|
function onload() {
|
|
|
|
if (sessionStorage.getItem("sgaEnabled")) {
|
|
|
|
enableSGA()
|
|
|
|
}
|
|
|
|
}
|
2024-08-24 03:11:56 -06:00
|
|
|
|
2024-08-24 03:28:41 -06:00
|
|
|
/*
|
|
|
|
// IF YOU EDIT ANYTHING IN HERE DONT FORGET TO EDIT THE SCRIPT IN SGA.JS BECAUSE FUCK ME
|
|
|
|
if (sessionStorage.getItem("sgaEnabled")) {
|
|
|
|
document.getElementById("body").style.fontFamily =
|
|
|
|
"standardGalactic, system-ui";
|
|
|
|
sessionStorage.setItem("sgaEnabled", 1);
|
|
|
|
console.debug(sessionStorage.getItem("sgaEnabled"));
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
2024-08-24 00:58:47 -06:00
|
|
|
function enableSGA() {
|
|
|
|
document.getElementById("body").style.fontFamily = "standardGalactic, system-ui";
|
2024-08-24 03:07:18 -06:00
|
|
|
sessionStorage.setItem("sgaEnabled", 1);
|
|
|
|
console.debug(sessionStorage.getItem("sgaEnabled"));
|
2024-08-24 00:58:47 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
function disableSGA() {
|
2024-08-25 21:03:06 -06:00
|
|
|
document.getElementById("body").style.fontFamily = "departure-mono, system-ui";
|
2024-08-24 03:07:18 -06:00
|
|
|
sessionStorage.removeItem("sgaEnabled");
|
|
|
|
console.debug(sessionStorage.getItem("sgaEnabled"));
|
2024-08-03 01:35:08 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
function toggleTheme() {
|
2024-08-24 03:07:18 -06:00
|
|
|
if (!sessionStorage.getItem("sgaEnabled")) {
|
|
|
|
enableSGA();
|
|
|
|
} else {
|
|
|
|
disableSGA();
|
2024-08-03 01:35:08 -06:00
|
|
|
}
|
|
|
|
}
|