static_pages/themes/NSP/static/navbar.js

17 lines
607 B
JavaScript
Raw Normal View History

2023-11-18 14:34:47 -08:00
function light_mode() {
2023-11-18 21:17:38 -08:00
document.body.className = document.body.className.replace("darkmode", "").replace("sunsetmode", "").replace("lightmode", "");
document.body.className += " lightmode";
2023-11-18 14:34:47 -08:00
}
function sunset_mode() {
2023-11-18 21:17:38 -08:00
document.body.className = document.body.className.replace("darkmode", "").replace("sunsetmode", "").replace("lightmode", "");
document.body.className += " sunsetmode";
2023-11-18 14:34:47 -08:00
}
function dark_mode() {
2023-11-18 21:17:38 -08:00
document.body.className = document.body.className.replace("darkmode", "").replace("sunsetmode", "").replace("lightmode", "");
document.body.className += " darkmode";
2023-11-18 14:34:47 -08:00
}