Style für noch abzustimmende Änderungen.
parent
eb65c976e3
commit
655f784363
|
|
@ -241,6 +241,9 @@ table.thborder th {
|
|||
.rejected {
|
||||
background-color: #FCC;
|
||||
}
|
||||
.pending {
|
||||
background-color: #FFC;
|
||||
}
|
||||
|
||||
img.rejected {
|
||||
border: 8px solid #FCC;
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue