Style für noch abzustimmende Änderungen.

main
Mitja Stachowiak (Hessen) 2024-04-04 17:59:02 +02:00
parent eb65c976e3
commit 655f784363
2 changed files with 14 additions and 1 deletions

View File

@ -241,6 +241,9 @@ table.thborder th {
.rejected {
background-color: #FCC;
}
.pending {
background-color: #FFC;
}
img.rejected {
border: 8px solid #FCC;

View File

@ -92,6 +92,9 @@ function filterProgram (win) {
sty.innerHTML = '.eu { display: none; }'+"\n"
+'.grundsatz { display: none; }';
break;
default:
sty.innerHTML = '';
break;
}
}
@ -189,6 +192,12 @@ function fetchText (win) {
}
function interpretAcceptance (str) {
if (str == '?')
return {
arr: null,
average: Number.NaN,
accepted: false
};
let arr = str.split(',');
let accepted = false;
let average = 0;
@ -261,7 +270,8 @@ function fetchText (win) {
if (release)
el.childNodes[i].removeAttribute('zustimmung');
else {
if (acceptance.accepted) el.childNodes[i].className += ' accepted';
if (!acceptance.arr) el.childNodes[i].className += ' pending';
else if (acceptance.accepted) el.childNodes[i].className += ' accepted';
else el.childNodes[i].className += ' rejected';
}
}