Compare commits
2 Commits
0571ded0b5
...
4dc9962738
Author | SHA1 | Date |
---|---|---|
Felix Homa | 4dc9962738 | |
Felix Homa | 96d140bd2c |
13
Klausur.html
13
Klausur.html
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue