mirror of
https://github.com/RetroDECK/RetroDECK-Website.git
synced 2024-11-28 17:45:38 +00:00
10 lines
415 B
JavaScript
10 lines
415 B
JavaScript
function pixelFontToggle() {
|
|
const pixelFontDefault = "\"Upheaval TT\", monospace;"
|
|
|
|
const pixelFontSwitchElem = document.getElementById("pixel-font-switch");
|
|
if (pixelFontSwitchElem.checked) {
|
|
document.documentElement.style.cssText = "--pixel-font: \"Upheaval TT\", monospace";
|
|
} else {
|
|
document.documentElement.style.cssText = "--pixel-font: \"Source Sans 3\", sans-serif";
|
|
}
|
|
} |