diff --git a/voting.html b/voting.html index 139bc86..8e5ded4 100644 --- a/voting.html +++ b/voting.html @@ -190,9 +190,9 @@

Your RCV selection:

if (thisContestValue.contest_type == "ticket") { newItem.innerHTML = "

Candidates:

"; } else if (thisContestValue.contest_type == "question") { - newItem.innerHTML = "

Your selection:

"; + newItem.innerHTML = "

Your selection:

"; } else { - newItem.innerHTML = "

Candidates:

"; + newItem.innerHTML = "

Candidates:

"; } const newList = document.createElement("ul"); newList.setAttribute("id", "choiceList"); @@ -222,10 +222,10 @@

Your RCV selection:

const textElement = document.createElement("span"); // Ugh - need to inspect for the choices data type if (choice.name) { - textElement.textContent = choice.name; + textElement.innerHTML = "  " + choice.name; } else { // Just an array of strings - textElement.textContent = choice; + textElement.innerHTML = "  " + choice; } if (thisContestValue.contest_type == "ticket") { // Note - need to add this as an additional flex-box @@ -234,7 +234,7 @@

Your RCV selection:

for (let office of thisContestValue.ticket_offices) { addendum.push(office + ":" + choice.ticket_names); } - textElement.textContent += "[" + addendum.join(", ") + "]"; + textElement.innerHTML += "  [" + addendum.join(", ") + "]"; } // Add the unselected class newItem.classList.add("unselected");