Fixed Dark-Mode enabling itself, despite being disabled on reload ... "false" != false ... javascript is trash
This commit is contained in:
parent
96d140bd2c
commit
4dc9962738
11
Klausur.html
11
Klausur.html
|
@ -176,8 +176,15 @@
|
||||||
get_params[sp[0]] = decodeURIComponent(sp[1]);
|
get_params[sp[0]] = decodeURIComponent(sp[1]);
|
||||||
switch(sp[0]) {
|
switch(sp[0]) {
|
||||||
case "inputDarkMode":
|
case "inputDarkMode":
|
||||||
document.getElementById(sp[0]).checked=get_params[sp[0]];
|
switch(get_params[sp[0]]) {
|
||||||
console.log("Loaded IDM: " + sp[0] + " => " + get_params[sp[0]]);
|
case "true":
|
||||||
|
document.getElementById(sp[0]).checked=true;
|
||||||
|
break;
|
||||||
|
case "false":
|
||||||
|
document.getElementById(sp[0]).checked=false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
console.log("Loaded IDM: " + sp[0] + " => " + document.getElementById(sp[0]).checked);
|
||||||
break;
|
break;
|
||||||
case "inputExamDuration":
|
case "inputExamDuration":
|
||||||
case "inputExtraDuration":
|
case "inputExtraDuration":
|
||||||
|
|
Loading…
Reference in New Issue