nelle-observer/astro/public/scripts/sga.js

16 lines
565 B
JavaScript
Raw Permalink Normal View History

2024-08-03 01:35:08 -06:00
function onload() {
sdocument.getElementById("body").style.fontFamily = "terminess-nf, system-ui";
}
function toggleTheme() {
// Obtains an array of all <link>
// elements.
// Select your element using indexing.
if (document.getElementById("body").style.fontFamily !== "standardGalactic, system-ui") {
document.getElementById("body").style.fontFamily = "standardGalactic, system-ui";
document.getElementById("body").style.fontWeight = "lighter";
} else {
document.getElementById("body").style.fontFamily = " terminess-nf, system-ui";
}
}