static_pages/public/navbar.js

17 lines
607 B
JavaScript
Raw Permalink Normal View History

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