diff --git a/public/index.html b/public/index.html index 2645624..20927fe 100644 --- a/public/index.html +++ b/public/index.html @@ -105,6 +105,18 @@

Report

tr.appendChild(td) td = document.createElement("td") td.textContent = report.result + switch (report.result) { + case "eligible": + td.style.color = "green" + td.style.fontWeight = "bold" + break + case "ineligible": + td.style.color = "red" + break + case "undeterminable": + td.style.color = "gray" + break + } tr.appendChild(td) tableEl.appendChild(tr) }