IRV
IRV copied to clipboard
Comments
Would be supper cool if I could use comments. I think I can probably put in a PR for instructions and code changes, we'd just need Peter to pick a syntax, ideally --
or //
Where do you want to put comments? In the Ballots input field? How should they be proccesed?
//
would work for me.
Honestly this was so long ago that I forgot. I think in the ballots field. A bad first pass would be replacing line 12 in irv.js with
ballots[i] = ballots[i].substring(0,(ballots[i].indexOf("//") == -1) ? ballots[i].length : ballots[i].indexOf("//")).replace(/\s+/g, '').split(',');