Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Style report result keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminaaron committed May 7, 2024
1 parent e9c27ee commit fd0a96c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,18 @@ <h3>Report</h3>
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)
}
Expand Down

0 comments on commit fd0a96c

Please sign in to comment.