static_pages/public/navbar.js
2023-11-18 21:17:58 -08:00

16 lines
607 B
JavaScript

function light_mode() {
document.body.className = document.body.className.replace("darkmode", "").replace("sunsetmode", "").replace("lightmode", "");
document.body.className += " lightmode";
}
function sunset_mode() {
document.body.className = document.body.className.replace("darkmode", "").replace("sunsetmode", "").replace("lightmode", "");
document.body.className += " sunsetmode";
}
function dark_mode() {
document.body.className = document.body.className.replace("darkmode", "").replace("sunsetmode", "").replace("lightmode", "");
document.body.className += " darkmode";
}