Git Product home page Git Product logo

audittools's People

Contributors

pbstark avatar rredberg avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

audittools's Issues

replace sorted ballot-to-look-up textarea with list + user input

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

containing an
    .
    Each
  1. would have
    sorted_number, ballot, batch_label, which_ballot_in_batch
    none overvote Candidate_1_name etc.

    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());
    }
    )

create json structure with contest and audit parameters

Button click will construct a json structure for the audit and do something to report that structure

For each contest:

  1. the reported results are in a structure:
    1. contest name, total ballots, "vote-for-k"
    2. for each candidate:
      1. candidate name
      2. reported ballots
  2. audit results are in a structure
    1. seed
    2. #ballots audited
    3. for each audited ballot
      1. candidate(s) the audit found on the ballot (or "none" or "overvote")

Action of the button will be (optionally) to save the json structure to a local file or email it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.