pbstark / audittools Goto Github PK
View Code? Open in Web Editor NEWweb-based tools for risk-limiting audits: ballot-level comparison and ballot polling
License: GNU General Public License v2.0
web-based tools for risk-limiting audits: ballot-level comparison and ballot polling
License: GNU General Public License v2.0
For each contest, enumerate the candidates and allow the user to select which candidate(s) received votes on that ballot.
In vote-for-one contests, this should be drop-down select, with an option for "none" and "overvote".
In vote-for-k, tic boxes with option for "none" and "overvote," and logic to test that no more than k are selected (throw some alert/color signal if so)
The current <textarea> for the sorted lookup table should be replaced by a
Use jQuery to construct an .change() method for each of these selects that increments the audit tally for the candidate selected (or decrements it, as appropriate, if it changes). A tentative strategy for implementing this is to have a hidden clone of each select, with a related id, so it's easy to compare the previous state to the changed state.
$(".ballot_432").change(function() {
find previous selected candidate for that ballot using $(".ballot_432_clone").val()
decrement spinner count of that candidate if not {none | overvote}
increment spinner count for new selected candidate, $(".ballot_432").val()
select new candidate on cloned copy $(".ballot_432_clone").val($(".ballot_432").val());
}
)
Button click will construct a json structure for the audit and do something to report that structure
For each contest:
Action of the button will be (optionally) to save the json structure to a local file or email it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.