From 41b2e51daa4be337571bcb0dc9f507216824a848 Mon Sep 17 00:00:00 2001
From: limepotato
Date: Sat, 24 Aug 2024 03:07:18 -0600
Subject: [PATCH] whatever it works i guess
---
astro/public/scripts/sga.js | 26 ++++++++------------------
astro/src/layouts/Layout.astro | 26 +++++++++++++++++++-------
2 files changed, 27 insertions(+), 25 deletions(-)
diff --git a/astro/public/scripts/sga.js b/astro/public/scripts/sga.js
index 99c998f..935afae 100644
--- a/astro/public/scripts/sga.js
+++ b/astro/public/scripts/sga.js
@@ -1,30 +1,20 @@
-function onload() {
- if (sessionStorage.getItem('sgaEnabled')) {
- enableSGA()
- }
- else {
- disableSGA()
- }
-}
-
function enableSGA() {
document.getElementById("body").style.fontFamily = "standardGalactic, system-ui";
document.getElementById("body").style.fontWeight = "lighter";
- sessionStorage.setItem( 'sgaEnabled', 1);
- console.debug(sessionStorage.getItem('sgaEnabled'))
+ sessionStorage.setItem("sgaEnabled", 1);
+ console.debug(sessionStorage.getItem("sgaEnabled"));
}
function disableSGA() {
document.getElementById("body").style.fontFamily = "terminess-nf, system-ui";
- sessionStorage.removeItem( 'sgaEnabled');
- console.debug(sessionStorage.getItem('sgaEnabled'))
+ sessionStorage.removeItem("sgaEnabled");
+ console.debug(sessionStorage.getItem("sgaEnabled"));
}
function toggleTheme() {
- if (!sessionStorage.getItem('sgaEnabled')) {
- enableSGA()
- }
- else {
- disableSGA()
+ if (!sessionStorage.getItem("sgaEnabled")) {
+ enableSGA();
+ } else {
+ disableSGA();
}
}
diff --git a/astro/src/layouts/Layout.astro b/astro/src/layouts/Layout.astro
index ba6283a..8198a12 100755
--- a/astro/src/layouts/Layout.astro
+++ b/astro/src/layouts/Layout.astro
@@ -5,7 +5,7 @@ import Footer from "../components/Footer.astro";
import NormalScripts from "../components/scripts/normal-scripts.astro";
interface Props {
- title: string;
+ title: string;
}
const { title } = Astro.props;
@@ -14,9 +14,9 @@ const { title } = Astro.props;
-
+
-
+
{title}
@@ -24,10 +24,22 @@ const { title } = Astro.props;
-
+
+
+ id="clickSound"
+ src="/assets/sounds/ui/zapsplat_multimedia_button_click_004_68776.mp3">
+