diff --git a/css/default.css b/css/default.css index fb3478d..005aad4 100755 --- a/css/default.css +++ b/css/default.css @@ -241,6 +241,9 @@ table.thborder th { .rejected { background-color: #FCC; } +.pending { + background-color: #FFC; +} img.rejected { border: 8px solid #FCC; diff --git a/js/fetchText.js b/js/fetchText.js index 2d974cc..fcadc55 100644 --- a/js/fetchText.js +++ b/js/fetchText.js @@ -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'; } }