Compare commits

..

No commits in common. "4dc9962738ea4bc09d392f947bc6e4ea480606f0" and "0571ded0b55fb1f0915842437e6f1cb6e13b49fd" have entirely different histories.

1 changed files with 3 additions and 10 deletions

View File

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