static_pages/themes/NSP/static/navbar.js
2023-11-18 21:17:38 -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";
}