main #8
1 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
function onload() {
|
function onload() {
|
||||||
if (localStorage.getItem('sgaEnabled')) {
|
if (sessionStorage.getItem('sgaEnabled')) {
|
||||||
enableSGA()
|
enableSGA()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -10,14 +10,14 @@ function onload() {
|
||||||
function enableSGA() {
|
function enableSGA() {
|
||||||
document.getElementById("body").style.fontFamily = "standardGalactic, system-ui";
|
document.getElementById("body").style.fontFamily = "standardGalactic, system-ui";
|
||||||
document.getElementById("body").style.fontWeight = "lighter";
|
document.getElementById("body").style.fontWeight = "lighter";
|
||||||
localStorage.setItem( 'sgaEnabled', 1);
|
sessionStorage.setItem( 'sgaEnabled', 1);
|
||||||
console.debug(localStorage.getItem('sgaEnabled'))
|
console.debug(sessionStorage.getItem('sgaEnabled'))
|
||||||
}
|
}
|
||||||
|
|
||||||
function disableSGA() {
|
function disableSGA() {
|
||||||
document.getElementById("body").style.fontFamily = "terminess-nf, system-ui";
|
document.getElementById("body").style.fontFamily = "terminess-nf, system-ui";
|
||||||
localStorage.removeItem( 'sgaEnabled');
|
sessionStorage.removeItem( 'sgaEnabled');
|
||||||
console.debug(localStorage.getItem('sgaEnabled'))
|
console.debug(sessionStorage.getItem('sgaEnabled'))
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleTheme() {
|
function toggleTheme() {
|
||||||
|
|
Loading…
Reference in a new issue