Style für noch abzustimmende Änderungen.
parent
eb65c976e3
commit
655f784363
|
|
@ -241,6 +241,9 @@ table.thborder th {
|
||||||
.rejected {
|
.rejected {
|
||||||
background-color: #FCC;
|
background-color: #FCC;
|
||||||
}
|
}
|
||||||
|
.pending {
|
||||||
|
background-color: #FFC;
|
||||||
|
}
|
||||||
|
|
||||||
img.rejected {
|
img.rejected {
|
||||||
border: 8px solid #FCC;
|
border: 8px solid #FCC;
|
||||||
|
|
|
||||||
|
|
@ -92,6 +92,9 @@ function filterProgram (win) {
|
||||||
sty.innerHTML = '.eu { display: none; }'+"\n"
|
sty.innerHTML = '.eu { display: none; }'+"\n"
|
||||||
+'.grundsatz { display: none; }';
|
+'.grundsatz { display: none; }';
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
sty.innerHTML = '';
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -189,6 +192,12 @@ function fetchText (win) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function interpretAcceptance (str) {
|
function interpretAcceptance (str) {
|
||||||
|
if (str == '?')
|
||||||
|
return {
|
||||||
|
arr: null,
|
||||||
|
average: Number.NaN,
|
||||||
|
accepted: false
|
||||||
|
};
|
||||||
let arr = str.split(',');
|
let arr = str.split(',');
|
||||||
let accepted = false;
|
let accepted = false;
|
||||||
let average = 0;
|
let average = 0;
|
||||||
|
|
@ -261,7 +270,8 @@ function fetchText (win) {
|
||||||
if (release)
|
if (release)
|
||||||
el.childNodes[i].removeAttribute('zustimmung');
|
el.childNodes[i].removeAttribute('zustimmung');
|
||||||
else {
|
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';
|
else el.childNodes[i].className += ' rejected';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue