16 lines
607 B
JavaScript
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";
|
|
}
|
|
|