From 2e7f31c6bea6c6b922dee4b7797ba1ef0caa6650 Mon Sep 17 00:00:00 2001 From: Nuno Sempere Date: Mon, 14 Aug 2023 11:38:39 +0000 Subject: [PATCH] move approval voting calculator to here from old github page. --- misc/{test => .test}/index.md | 3 +- misc/{test => .test}/test-git.ash | 0 misc/.test/test-git/README.md | 8 + .../index.html | 213 ++++++++++++++++++ misc/test/test-git | 1 - 5 files changed, 223 insertions(+), 2 deletions(-) rename misc/{test => .test}/index.md (91%) rename misc/{test => .test}/test-git.ash (100%) create mode 100644 misc/.test/test-git/README.md create mode 100644 misc/proportional-approval-voting-calculator/index.html delete mode 160000 misc/test/test-git diff --git a/misc/test/index.md b/misc/.test/index.md similarity index 91% rename from misc/test/index.md rename to misc/.test/index.md index ef5d60b..a117898 100644 --- a/misc/test/index.md +++ b/misc/.test/index.md @@ -5,4 +5,5 @@ This file is used for testing the werc framework. The symbols below are probably En un lugar de la Mancha de cuyo nombre no quiero acordarme no ha mucho tiempo que vivĂ­a ........ -... +........ +........ diff --git a/misc/test/test-git.ash b/misc/.test/test-git.ash similarity index 100% rename from misc/test/test-git.ash rename to misc/.test/test-git.ash diff --git a/misc/.test/test-git/README.md b/misc/.test/test-git/README.md new file mode 100644 index 0000000..8f6921f --- /dev/null +++ b/misc/.test/test-git/README.md @@ -0,0 +1,8 @@ +## About +A repository for tests & diagnostics. + +The symbols below are probably arbitrary: + +--- + +un caballero de los de lanza en astillero diff --git a/misc/proportional-approval-voting-calculator/index.html b/misc/proportional-approval-voting-calculator/index.html new file mode 100644 index 0000000..96b54cb --- /dev/null +++ b/misc/proportional-approval-voting-calculator/index.html @@ -0,0 +1,213 @@ + + + + + + + + +

Proportional Approval Voting MVP

+

What is this? How does this work?

+

This is the simplest version of a program which computes the result of an election, under the Proportional Approval Voting method, for elections which have one or more winners (e.g., presidential elections, but also board member elections).

+

It takes a csv (comma separated value) file, with the same format as this one, which might be produced by a Google Forms like this one.

+

It computes the result using client-side JavaScript, which means that all operations are run in your browser, as opposed to in a server which is not under your control. In effect, all this webpage does is provide you with a bunch of functions. In fact, you could just load this page, disconnect from the internet, upload your files, and you could still use the webpage to get the results you need.

+
+
+ Upload your CSV File to compute the result + + +
+ +
+
+
+ diff --git a/misc/test/test-git b/misc/test/test-git deleted file mode 160000 index 4f5fa42..0000000 --- a/misc/test/test-git +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4f5fa42a8214057289b30ff92ef5fe082700d59e