Compare commits

...

2 Commits

1 changed files with 10 additions and 3 deletions

View File

@ -176,8 +176,15 @@
get_params[sp[0]] = decodeURIComponent(sp[1]);
switch(sp[0]) {
case "inputDarkMode":
document.getElementById(sp[0]).checked=get_params[sp[0]];
console.log("Loaded IDM: " + sp[0] + " => " + get_params[sp[0]]);
switch(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;
case "inputExamDuration":
case "inputExtraDuration":
@ -322,7 +329,7 @@
if(document.getElementById("inputDarkMode").checked) {
document.body.style.backgroundColor="#8ff"; // color-inversion!
} else {
document.body.style.backgroundColor="#f88";
document.body.style.backgroundColor="#f55";
}
}
else if(endTime!=null && now>halfHourWarningTime && now<=halfHourWarningTime2 && now.getMilliseconds()<500) {