diff --git a/plurvote.html b/plurvote.html index 05055c7..bdd5ac1 100644 --- a/plurvote.html +++ b/plurvote.html @@ -26,7 +26,7 @@ Candidate - +
diff --git a/rangevote.html b/rangevote.html index 3785b81..13370c2 100644 --- a/rangevote.html +++ b/rangevote.html @@ -27,7 +27,7 @@ Happiness - +
diff --git a/rangevote.js b/rangevote.js index e5c8277..96bf82e 100644 --- a/rangevote.js +++ b/rangevote.js @@ -2,9 +2,14 @@ var express = require('express') var bodyParser = require('body-parser') var fs=require('fs') var hashindex=require('hash-index') +var fc=require('./filechunker.js') var app = express() +var PlurVoteTemplate=fc("./plurvote.html"); +console.log(PlurVoteTemplate); +console.log("Foo!"); + var Candidates=[ "Chris Christie", diff --git a/results.html b/results.html new file mode 100644 index 0000000..7943354 --- /dev/null +++ b/results.html @@ -0,0 +1,39 @@ + + + + + + Ballot Experiments Results + + + + + Here are the results by Range Voting: +
+ + + + + + + +
Candidate
+ +
+ And here are the results by Plurality Voting: + + + + + + +
Candidate
+ +
+ + diff --git a/test.js b/test.js new file mode 100644 index 0000000..7a0d198 --- /dev/null +++ b/test.js @@ -0,0 +1,7 @@ +import { Client } from 'pg' +const client = new Client() +await client.connect() + +const res = await client.query('SELECT $1::text as message', ['Hello world!']) +console.log(res.rows[0].message) // Hello world! +await client.end()