Formatting changes

This commit is contained in:
RunasSudo 2020-12-23 19:19:11 +11:00
parent fab58ab892
commit 80e22aa63c
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 8 additions and 1 deletions

View File

@ -12,6 +12,7 @@
}
td {
padding: 0px 8px;
min-height: 1em;
}
td.count {
text-align: right;

View File

@ -180,6 +180,8 @@ async function clickCount() {
elTd.style.borderTop = '1px solid black';
if (countCard.transfers != '0.00' && countCard.transfers != '0') {
elTd.innerText = countCard.transfers;
} else {
elTd.innerHTML = ' ';
}
elTr1.appendChild(elTd);
@ -198,7 +200,7 @@ async function clickCount() {
elTd.innerText = 'WD';
} else if (countCard.state === py.pyRCV2.model.CandidateState.EXCLUDED) {
elTd.classList.add('excluded');
elTd.innerText = 'EX';
elTd.innerText = 'Ex';
} else {
elTd.innerText = countCard.votes;
}
@ -213,6 +215,8 @@ async function clickCount() {
elTd.style.borderTop = '1px solid black';
if (result.exhausted.transfers != '0.00' && result.exhausted.transfers != '0') {
elTd.innerText = result.exhausted.transfers;
} else {
elTd.innerHTML = ' ';
}
elExhausted1.appendChild(elTd);
@ -227,6 +231,8 @@ async function clickCount() {
elTd.style.borderTop = '1px solid black';
if (result.loss_fraction.transfers != '0.00' && result.loss_fraction.transfers != '-0.00' && result.loss_fraction.transfers != '0') {
elTd.innerText = result.loss_fraction.transfers;
} else {
elTd.innerHTML = ' ';
}
elLTF1.appendChild(elTd);