diff --git a/Makefile b/Makefile index 8e07f61..fedf9ef 100644 --- a/Makefile +++ b/Makefile @@ -35,4 +35,4 @@ default: # emacs tags (for javascript need GNU's universal-ctag package) .PHONY: etags etags: - /opt/homebrew/bin/ctags -e -R + /opt/homebrew/bin/ctags -e -R --language-force=javascript diff --git a/voting.html b/voting.html index 56b43fc..139bc86 100644 --- a/voting.html +++ b/voting.html @@ -154,19 +154,20 @@ } // Will set up the upperSection - function setUpperSection(contestType, maxSelection) { + function setUpperSection(thisContestName, thisContestValue) { const rootElement = document.getElementById("upperSection"); const newItem = document.createElement("span"); - if (contestType == "plurality") { - let innerText = "

A plurality contest:

"; + innerText += "
  • You can choose upto " + max + "
  • "; } newItem.innerHTML = innerText; } else { - innerText = `

    A RCV (IRV) contest:

    + innerText = "

    " + thisContestName + `

    RCV (IRV) contest: