This commit is contained in:
Hell13Cat
2022-04-16 15:20:38 +03:00
parent 3ef95e21d5
commit 517217e8e2
25 changed files with 213 additions and 121 deletions
+6 -2
View File
@@ -21,13 +21,17 @@ function startstylepage() {
function swap_theme(num) {
if(num == 1) {
document.cookie = "theme=dark; max-age=2592000; secure";
document.cookie = "theme=black; max-age=2592000; secure";
document.getElementById('currentstylesheet').remove();
addstylesheet("dark");
addstylesheet("black");
} else if (num == 2) {
document.cookie = "theme=light; max-age=2592000; secure";
document.getElementById('currentstylesheet').remove();
addstylesheet("light");
} else if (num == 3) {
document.cookie = "theme=dark; max-age=2592000; secure";
document.getElementById('currentstylesheet').remove();
addstylesheet("dark");
} else {
// Ignore
}