mirror of
https://github.com/RetroDECK/RetroDECK-Website.git
synced 2024-11-23 23:25:39 +00:00
Update style of accessibility.js
This commit is contained in:
parent
c2db42ea37
commit
645b855120
|
@ -1,10 +1,10 @@
|
||||||
function pixelFontToggle() {
|
function pixelFontToggle() {
|
||||||
const pixelFontDefault = "\"Upheaval TT\", monospace;"
|
const pixelFontDefault = '\"Upheaval TT\", monospace;'
|
||||||
|
|
||||||
const pixelFontSwitchElem = document.getElementById("pixel-font-switch");
|
const pixelFontSwitchElem = document.getElementById('pixel-font-switch');
|
||||||
if (pixelFontSwitchElem.checked) {
|
if (pixelFontSwitchElem.checked) {
|
||||||
document.documentElement.style.cssText = "--pixel-font: \"Upheaval TT\", monospace";
|
document.documentElement.style.cssText = '--pixel-font: \"Upheaval TT\", monospace';
|
||||||
} else {
|
} else {
|
||||||
document.documentElement.style.cssText = "--pixel-font: \"Source Sans 3\", sans-serif";
|
document.documentElement.style.cssText = '--pixel-font: \"Source Sans 3\", sans-serif';
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue