Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
868 commits
Select commit Hold shift + click to select a range
c9e5ae1
Added 2D Median visualization. nice.
paretoman Jul 7, 2020
8aa2977
readded menu item for proportional representation
paretoman Jul 7, 2020
cc830b9
Added a short explanation for facility location and an afterward.
paretoman Jul 7, 2020
b0a0885
fixed hide/show sidebar
paretoman Jul 7, 2020
c92400f
cleaned up hiding/showing/positioning left menu
paretoman Jul 7, 2020
caed926
Improved order of explanation for strategy.
paretoman Jul 7, 2020
b7b5bc9
Improved layout for different size windows.
paretoman Jul 7, 2020
b3aed04
Finished first draft of proportional.md.
paretoman Jul 7, 2020
0b43c43
Updated commonground.md page with tier lists and 2D median.
paretoman Jul 7, 2020
688859e
Updated link.
paretoman Jul 7, 2020
3d41c9a
Small fix
paretoman Jul 7, 2020
7764ebc
explaining star
paretoman Jul 7, 2020
c6ef9e0
use jekyll build when serve (incremental) is buggy
paretoman Jul 8, 2020
6d1d307
improved star strategy
paretoman Jul 8, 2020
48edf6c
Added a good STAR strategy.
paretoman Jul 8, 2020
71e6e89
Changed approval style to use letters instead of shapes.
paretoman Jul 8, 2020
b9cc108
fixed small typo bug in proportional.md
paretoman Jul 8, 2020
f56ff89
basic sankey
paretoman Jul 9, 2020
0bcfd34
working sankey, but needs data and layout sizing
paretoman Jul 9, 2020
9227f01
midpoint. good. got sankey diagram data working for irv.
paretoman Jul 9, 2020
e320d5c
Colors work
paretoman Jul 9, 2020
8eec26f
sorting works. sankey diagram is sorted
paretoman Jul 9, 2020
28267e3
sankey chart looking good. stv works as well. shows winners.
paretoman Jul 10, 2020
5fb8cdd
Using districts with sankey
paretoman Jul 10, 2020
078ef70
small edit words
paretoman Jul 10, 2020
0ffcde8
attempted a hide/show detail button
paretoman Jul 10, 2020
93e3972
Using bar charts for results in sidebar.
paretoman Jul 10, 2020
cf497c1
added pairwise table for the condorcet method. Improved head2head ta…
paretoman Jul 10, 2020
e91a95a
used pairwise table for all condorcet methods. made lots of styling …
paretoman Jul 10, 2020
ed9bd79
added chart to borda ballot display
paretoman Jul 10, 2020
b09ae67
Added ballot visual to sidebar for condorcet ballots, finally.
paretoman Jul 10, 2020
3b5a668
remove borders on bar charts
paretoman Jul 10, 2020
f50e0a4
renamed dotPlot to tBarChart
paretoman Jul 10, 2020
3a540fc
Added line charts for polls.
paretoman Jul 11, 2020
12f02e0
fixed margins on polls and bar charts
paretoman Jul 11, 2020
378ef05
small style changes
paretoman Jul 11, 2020
fe4d927
style changes. chart opacity. viewMan img.
paretoman Jul 11, 2020
2eadbf0
fixed ordering of nodes in sankey
paretoman Jul 11, 2020
1d09e39
small change. test run
paretoman Jul 11, 2020
dc21f31
site dns
paretoman Jul 11, 2020
56d26aa
content change first paragraphs
paretoman Jul 11, 2020
907d622
samll typos
paretoman Jul 11, 2020
c8c7bdd
Content change. Proportional methods.
paretoman Jul 11, 2020
70700d5
site dns
paretoman Jul 11, 2020
1e2f405
removed double spaces
paretoman Jul 11, 2020
7777cef
style. simpler banner
paretoman Jul 11, 2020
e804074
style changes, typo.
paretoman Jul 11, 2020
43cfc17
typo
paretoman Jul 11, 2020
fc21605
clearer words
paretoman Jul 11, 2020
62d32ea
typos
paretoman Jul 12, 2020
906a38c
Wording changes. STAR. Score strategies. Mention Condorcet earlier.
paretoman Jul 12, 2020
1f209f6
grammar check
paretoman Jul 12, 2020
5471b1c
typo
paretoman Jul 12, 2020
6a0ec5c
typo
paretoman Jul 12, 2020
b3b573d
color
paretoman Jul 12, 2020
8103ffb
small fix. median example.
paretoman Jul 12, 2020
592c16d
visit counter
paretoman Jul 13, 2020
63857d9
fix sharing meta img
paretoman Jul 15, 2020
07c7c83
fix thumbnail size
paretoman Jul 15, 2020
24d7a82
better thumbnail
paretoman Jul 15, 2020
52242dd
wrapped up Jameson's strategy essay
paretoman Jul 15, 2020
8e12358
use star strategy for 3-2-1 too
paretoman Jul 15, 2020
09231a6
update examples of strategic ballots
paretoman Jul 15, 2020
8060137
More strategies for F+ and F- for STAR.
paretoman Jul 16, 2020
e72d566
fixed sankey labels
paretoman Jul 16, 2020
cbfa1fb
show text for winners in sankey diagrams
paretoman Jul 16, 2020
8a1704b
old fix for clarity. Drawmap for scores.
paretoman Jul 16, 2020
9337cb3
STAR strategy map working. Fixed last week's STAR strategy bug.
paretoman Jul 16, 2020
f4c0538
added pair tallies to STAR
paretoman Jul 16, 2020
1d9571b
changed style. shapes to letters.
paretoman Jul 16, 2020
37f6db3
added head-to-head polls display to irv for helping determine strategy.
paretoman Jul 18, 2020
ce0c8a5
better star strategy using breaks between scores
paretoman Jul 18, 2020
e291781
resizeable circles. making geometry.
paretoman Jul 18, 2020
05c2315
added rectangles/squares as voter crowds
paretoman Jul 19, 2020
45c1745
use letters instead of shapes
paretoman Jul 19, 2020
868419b
organized home page. fixed typos.
paretoman Jul 22, 2020
a19c8fa
small fix. use same example.
paretoman Jul 23, 2020
096fb2d
added rectangles as voter crowds with adjustable height and width
paretoman Jul 23, 2020
24fcd82
better horizontal controls
paretoman Jul 24, 2020
82912dd
better circle controls (for creating voter circles)
paretoman Jul 24, 2020
96d0810
bug fix
paretoman Jul 25, 2020
f58fd3e
symmetric circles
paretoman Jul 25, 2020
27913f6
Re-wrote essay on scoring methods, approval, score, STAR, 3-2-1. Als…
paretoman Jul 25, 2020
6d0646e
fix star strategy with an old fix for score strategy
paretoman Jul 25, 2020
77bbc98
fix polling for 3-2-1
paretoman Jul 25, 2020
524e6ff
re-wording scorefamily page
paretoman Jul 25, 2020
2a71df0
fix nav word breaks
paretoman Jul 26, 2020
d16a030
re-wrote scoring essay to focus on star.
paretoman Jul 26, 2020
65f18c4
replace double spaces with single spaces
paretoman Jul 26, 2020
5bae684
small fixes, captions
paretoman Jul 26, 2020
9ee8c36
highlight nav
paretoman Jul 27, 2020
c884a26
update build scripts
paretoman Jul 27, 2020
ef672b8
easier to download and modify
paretoman Jul 27, 2020
d1f077b
Merge branch 'geom-rectangle' into gh-pages
paretoman Jul 27, 2020
12cf3fa
small fixes
paretoman Jul 27, 2020
1d68541
use new shapes of voters for sandbox
paretoman Jul 27, 2020
eea3377
added "edit this page" link at bottom of md pages.
paretoman Jul 27, 2020
3f67945
clarified voter strategies for star
paretoman Jul 28, 2020
0596186
spelling afterword
paretoman Aug 2, 2020
d9a0be4
bug fix - sankey
paretoman Aug 2, 2020
c4a88ea
small change sandbox preset
paretoman Aug 2, 2020
77e43c0
small fix. tier list png.
paretoman Sep 1, 2020
446f17d
Added gifs to demonstrate examples for intro basics and commonground.
paretoman Sep 19, 2020
31aa64b
Added more gifs. Gifs for condorcet page.
paretoman Sep 21, 2020
ea81f16
added gifs to all the pages in the navigation.
paretoman Sep 28, 2020
50f335d
sandbox demonstration gif
paretoman Sep 28, 2020
b8194fd
small edits. fixed double spaces.
paretoman Sep 28, 2020
ce170bb
small bug fix. pairDraw
paretoman Oct 2, 2020
56420f9
fix small bug. Dragging only voter group in yee diagram.
paretoman Oct 2, 2020
1ea9f43
Added working code editor, but still needs help for syntax and most e…
paretoman Oct 3, 2020
0597a1f
added syntax highlighting with codemirror
paretoman Oct 3, 2020
a4161dd
small bug fix typo. description.
paretoman Oct 4, 2020
effee7e
small fix. layout. spacing.
paretoman Oct 4, 2020
f9379a0
bug fix. one-liner. 1D Single Voters.
paretoman Oct 4, 2020
752ab50
small fix. one liner. loadCode button is just a button.
paretoman Oct 4, 2020
02364c6
Added short link save.
paretoman Oct 6, 2020
a55a8fb
small bug fix for Sankey display.
paretoman Oct 8, 2020
2294f2d
fix links in original
paretoman Oct 8, 2020
4131014
small bug fix. original sandbox typo.
paretoman Oct 8, 2020
1f17a65
fixed bug with irv sorting for sankey
paretoman Oct 9, 2020
744080d
Added new tsp method for sankey diagrams.
paretoman Oct 9, 2020
af23a11
small bug fix with viz options for transfers.
paretoman Oct 10, 2020
0cb6c49
tsp update. Modified tsp to use hamiltonian path instead of cycle. Ad…
paretoman Oct 10, 2020
42e93bb
bug fix viewport
paretoman Oct 10, 2020
ef6c0df
made it easier to play around without installing anything. Just need …
paretoman Oct 10, 2020
1bb1096
Better instructions for working with this code.
paretoman Oct 11, 2020
d5c055b
small fix. picture margin. one line.
paretoman Oct 11, 2020
0b384a7
fixed small bug. now recalculates order of voters only once when the …
paretoman Oct 11, 2020
6413ece
replaced approval ballot object with score. Simpler.
paretoman Oct 11, 2020
7303ef2
internal change. better data structure for ballot.
paretoman Oct 11, 2020
4e11ee4
small change. added modify to nav menu. mentioned in-browser modifyin…
paretoman Oct 11, 2020
3676f7e
fix small drawing bug with sankey diagram.
paretoman Oct 12, 2020
7e22fb4
added gif for modifying inside sandbox
paretoman Oct 12, 2020
7dec68e
faster sorting of voters, but less sorting is done. just sorting betw…
paretoman Oct 29, 2020
ef1246c
fix bug for original models. one-liner.
paretoman Oct 30, 2020
9baf293
lazyload gifs
paretoman Oct 30, 2020
4b79963
lazyload images
paretoman Oct 30, 2020
05f955a
lazyload icons
paretoman Oct 30, 2020
76bc69e
don't preload icons. do the lazy way.
paretoman Oct 30, 2020
83f6b13
much faster ui loading. use innerText rather than innerHTML, where po…
paretoman Oct 30, 2020
3240228
small fix. preload voter.png
paretoman Oct 31, 2020
84b8985
table fix. one-liner.
paretoman Oct 31, 2020
f82a513
spell check
paretoman Oct 31, 2020
b8c7d98
fix bug. easy fix. sandbox url. changed when permalinks changed.
paretoman Nov 1, 2020
7151941
fixed links for testRuns
paretoman Nov 1, 2020
4e2fb86
fix url for original save link. small fix.
paretoman Nov 1, 2020
f294ca1
midpoint. adding charts that animate for rounds of RCV, IRV, STV.
paretoman Nov 4, 2020
a0dc58c
round charts for irv/stv rcv . First Draft.
paretoman Nov 4, 2020
b6c96bf
added link to new video from Primer
paretoman Nov 4, 2020
d08cbe4
fixed bug for districts and sortedvoters
paretoman Nov 4, 2020
b76f433
formatting round charts
paretoman Nov 4, 2020
7562f59
bug fix. one liner.
paretoman Nov 4, 2020
0aa7e0e
added utility chart. first draft.
paretoman Nov 16, 2020
911a4d5
added an average utility chart
paretoman Dec 13, 2020
111fa44
added a sequential monroe method. first step. power chart needs fixing.
paretoman Dec 13, 2020
7476d3b
added a kind of sequential Phragment method
paretoman Dec 22, 2020
bbedfd3
midpoint. changing _drawBars to make it easier to read and change. It…
paretoman Dec 22, 2020
dc212e7
midpoint. power chart.
paretoman Dec 22, 2020
8081e73
I more accurately described variable names used for round description…
paretoman Dec 23, 2020
31f827a
Replaced tArena with sidebar box.
paretoman Dec 24, 2020
489c7a6
angled text in weightCharts
paretoman Dec 24, 2020
6edd7fe
attempted to add another linear programming system, a modification of…
paretoman Dec 24, 2020
87e5535
Fixed todo for Monroe Seq Scored method.
paretoman Dec 24, 2020
776c0b0
fiddling with lp solver
paretoman Dec 24, 2020
06e1230
fixed up Monroe Sequential Scoring variant to do better use of voter …
paretoman Dec 24, 2020
e3ac964
Fixed bug with current round in roundCharts.
paretoman Dec 24, 2020
2e97d2a
Added weight used chart for KP transformed Phragment method.
paretoman Dec 24, 2020
fe7cbad
added drawings of score votes with KP Transform in bar charts
paretoman Dec 24, 2020
60bf724
cleanup
paretoman Dec 25, 2020
c65a95f
small bug fix from earlier today. roundCurrent
paretoman Dec 25, 2020
a7b1618
minus Buttons work but not pretty
paretoman Dec 25, 2020
1fb49aa
not work but trying to put button inside div
paretoman Dec 25, 2020
409398b
working minus buttons to hide or show sidebar boxes
paretoman Dec 25, 2020
0b3a539
midpoint. working saveable minus controls.
paretoman Dec 25, 2020
57fd98a
better code for minusControl. easier to update later with new minuses.
paretoman Dec 25, 2020
dbdf3a6
style. fix centering.
paretoman Dec 25, 2020
3632a21
text a little smaller in explanations
paretoman Dec 25, 2020
ec2cc18
small fix for original page, kind of a quick fix for layout.
paretoman Dec 25, 2020
86ab36b
quick layout change
paretoman Dec 25, 2020
36aa17a
small fix
paretoman Dec 25, 2020
1a40d56
small improvement. lines in polls are now connected.
paretoman Dec 25, 2020
21471f8
layout fix
paretoman Dec 25, 2020
4ec144b
added monroe sequential score voting sandbox to explanation on propor…
paretoman Dec 31, 2020
753815c
added satisfaction weightCharts
paretoman Dec 31, 2020
6a1067b
tried darkmode.
paretoman Dec 31, 2020
13d678e
midpoint. added weightCharts for EqualFacilit
paretoman Dec 31, 2020
6d7b485
small fixes.
paretoman Jan 1, 2021
64f6369
altered explanation of power charts to instead say weight charts, and…
paretoman Jan 1, 2021
b38ec3e
changed roundCharts to better describe multi-winner methods that don'…
paretoman Jan 1, 2021
c739b20
showing max utility of voters for elected candidates
paretoman Jan 1, 2021
bcd92df
add minus control to utility charts
paretoman Jan 1, 2021
81fef56
altered explanation of power/weight charts. Did this on proportional …
paretoman Jan 1, 2021
94a9164
including utility graph in example, testing.
paretoman Jan 1, 2021
104c058
edited stv explanation to help explain what it means to be represented.
paretoman Jan 14, 2021
f53cf9e
Added bodies for voters.
paretoman Jan 17, 2021
c8c030a
Added bodies for candidates. Made winner raise arms. Added more voter…
paretoman Jan 18, 2021
c204986
added ability to save random seeds for voter groups for voter customi…
paretoman Jan 19, 2021
23f0ae4
added custom names for voters and voter groups
paretoman Jan 19, 2021
3630577
Use arrows for voter group center
paretoman Jan 20, 2021
e850614
Voter groups: better naming control. Now the name stays with the grou…
paretoman Jan 20, 2021
76bba32
temp fix. one line.
paretoman Jan 28, 2021
7e8907e
Turned off 2D flow and coalition view for IRV and STV. It was too cro…
paretoman Jan 28, 2021
cc59754
Made the round view sticky for the final round. If something changes …
paretoman Jan 28, 2021
80b955c
Added control of arena display so that it depends on the round (for I…
paretoman Jan 28, 2021
f81a4d7
small bug fix. two lines.
paretoman Feb 2, 2021
42e0e6a
fix bug. wrong variable.
paretoman Feb 2, 2021
3d69451
fix bug rounds
paretoman Feb 2, 2021
64f4592
Make candidate labels easier to read.
paretoman Feb 5, 2021
4d90aa9
Set default view for round charts to final round.
paretoman Feb 5, 2021
57dcc0e
Now going to use onUpdate before draw
paretoman Feb 5, 2021
2f045c5
"ballot concept" now defaults to "off" for FPTP.
paretoman Feb 5, 2021
2413d78
changed "win" notation to a box around the winner.
paretoman Feb 5, 2021
49951f4
changed sizing of long candidate names
paretoman Feb 5, 2021
f1a3f13
fixed bug in updating arenas from round chart.
paretoman Feb 5, 2021
19c0061
small fix. square around winner.
paretoman Feb 5, 2021
739d31f
initial STV copy to start STV-Minimax.
paretoman Feb 6, 2021
ef0c630
round randomSeed for shorter URL
paretoman Feb 6, 2021
b9e3dc6
add minimax tie breaker.
paretoman Feb 6, 2021
ed4655c
New election method. STV-Minimax.
paretoman Feb 6, 2021
68038b1
New method allocated score related to sequential monroe.
paretoman Feb 6, 2021
57f3bd4
New method: STAR PR. Currently is allocated score with STAR winner in…
paretoman Feb 6, 2021
cd38c62
Wrote a little about allocated score and star PR.
paretoman Feb 6, 2021
9af336f
Gif for stv-minimax
paretoman Feb 6, 2021
43c87f9
fix bug update number of winners and quota
paretoman Feb 9, 2021
d67575d
Added calculation of VSE, voter satisfaction efficiency.
paretoman Feb 9, 2021
92ec6f5
Added proportional approval voting.
paretoman Feb 9, 2021
9c428d9
small changes
paretoman Feb 11, 2021
421aec0
Added average VSE of past n runs.
paretoman Feb 11, 2021
da48d8f
show coalitions in round charts
paretoman Feb 13, 2021
f1e8e18
small fix. one line.
paretoman Feb 13, 2021
2653c79
small fix. style.
paretoman Feb 13, 2021
753ee15
adjusted candidate drawing a little
paretoman Feb 13, 2021
8b023b2
fixed calculation of weight counted toward a candidate.
paretoman Feb 13, 2021
c145130
license info. cc0 mostly.
paretoman Feb 13, 2021
a28f818
style. improved annotations for round chart.
paretoman Feb 14, 2021
7c2344d
fix weighting visual for PAV.
paretoman Feb 20, 2021
0035c80
adjusted sidebar text
paretoman Feb 20, 2021
5b1d731
described proportional clustering
paretoman Mar 25, 2021
dffc278
Fixed config to allow candidates to move initially. Also, added a fla…
paretoman Mar 25, 2021
3e21693
Added vote maps. One for each candidate for cardinal ballots (Approva…
paretoman Aug 12, 2021
eb2de18
Added link to Andy's site visualizing Arrow's Theorem
paretoman Aug 13, 2021
2108fb2
fixed url shortener since google sheets api moved from v3 to v4.
paretoman Sep 11, 2021
434300b
bug fix for vote maps from aug 12, 2021
paretoman Sep 13, 2021
07f3d7a
fix bug. voter maps again.
paretoman Sep 13, 2021
18e6efe
Made viewMan show only its map or show its map more boldly than the o…
paretoman Sep 15, 2021
b425884
small fix. show viewMan map independently of the "ballotConcept" option.
paretoman Sep 15, 2021
56e99d6
Fixed a bug from a long time ago by clearing old ballot info for a ne…
paretoman Sep 15, 2021
eee9e79
Fix intent of "note" option under "style>Candidate Icons".
paretoman Oct 3, 2021
68e5a36
Fixed bug. STV-Minimax and TestquotaMinimax. Ballots are now being pr…
paretoman Dec 24, 2021
e065788
Allow scrolling the page when not dragging an object in the arena.
paretoman Mar 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"cSpell.words": [
"Electo",
"FPTP",
"Unsplit",
"Voteline",
"altlink",
"bettercount",
"endcomment",
"frontrunners",
"misinformative",
"ncasenmare",
"scorefamily",
"themself",
"yesno"
]
}
34 changes: 34 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
source "https://rubygems.org"

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
# gem "jekyll", "~> 3.8.7"

# This is the default theme for new Jekyll sites. You may change this to anything you like.
# gem "minima", "~> 2.0"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
gem "github-pages", "~> 206", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0", :install_if => Gem.win_platform?

10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
![](http://i.imgur.com/8ZzgDiV.png)
![](http://paretoman.github.io/ballot/social/thumbnail.png)

**TO BUILD A BETTER BALLOT**
an interactive guide to alternative voting systems
**Smart Voting Simulator**
An Explorable Guide to Group Decision Making

**[play/read it here](http://ncase.me/ballot)**
**[play/read it here](http://paretoman.github.io/ballot)**

[modify it here](http://paretoman.github.io/ballot/modify)
57 changes: 57 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.

# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.

title: Smart Voting Simulator
email: smartvotingsimulator1@gmail.com
description: >- # this means to ignore newlines until "baseurl:"
A simulator for voting methods - so you can understand how voting methods work
for making group decisions. The best voting methods are responsive to all parts
of the group and can even work when voters use strategies.
baseurl: "/ballot" # the subpath of your site, e.g. /blog
url: "https://paretoman.github.io" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: paretoman1
github_username: paretoman
author:
name: Paretoman
email: smartvotingsimulator1@gmail.com
minima:
social_links:
github: Paretoman
twitter: Paretoman1
youtube_channel: UCrwpT8YjxePjH0RxSCwbTlQ
youtube_channel_name: Paretoman
google_analytics: UA-172540609-1
github: [metadata] # make warning go away # https://github.com/github/pages-gem/issues/399
thumbnail: "/social/thumbnail.png"

# # Build settings
markdown: kramdown
# theme: minima
plugins:
- jekyll-feed

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
- dev/
1 change: 1 addition & 0 deletions _config_make_easy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
baseurl: "/" # the subpath of your site, e.g. /blog
32 changes: 32 additions & 0 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
- name: Home
link: .
- name: Basics
link: basics
- name: Common Ground
link: commonground
- name: Condorcet
link: condorcet
- name: Approval
link: approval
- name: STAR
link: star
- name: Instant Runoff
link: irv
- name: Single Transferable Vote
link: stv
- name: Proportional Methods
link: proportional
- name: Primaries
link: primaries
- name: Original
link: original
- name: Modify
link: modify
- name: Test Runs
link: testRuns
- name: Blog
link: blog
- name: Links
link: links
- name: Sandbox
link: sandbox/
12 changes: 12 additions & 0 deletions _includes/analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

{% if jekyll.environment == 'production' and site.google_analytics %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{ site.google_analytics }}');
</script>
{% endif %}
22 changes: 22 additions & 0 deletions _includes/banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


{% if page.byline %}
{% assign do_byline = true %}
{% endif %}
{% capture byline_calc %}
{% if page.date %}
{% assign do_byline = true %}
By Paretoman, {{ page.date | date: '%B %d, %Y' }}
{% else %}
{{ page.byline }}
{% endif %}
{% endcapture %}

<div class="banner">
<h1>{{ page.banner | default: page.title }}</h1>
<p>{{ page.description-banner | default: page.description }}</p>
{%- if do_byline -%}
<p>{{ byline_calc }}</p>
<p>Based off Work by Nicky Case</p>
{%- endif -%}
</div>
13 changes: 13 additions & 0 deletions _includes/card.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div class = "card">
<a href="{{ include.url }}">
<div>
<img class= "{{ include.class }}" src="{{ include.img }}">
<div>
{{ include.title }}
<span>
{{ include.description }}
</span>
</div>
</div>
</a>
</div>
7 changes: 7 additions & 0 deletions _includes/css-1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

<link rel="stylesheet" type="text/css" href="play/css/codemirror/codemirror.css">
<link rel="stylesheet" type="text/css" href="play/css/model.css">
<link rel="stylesheet" type="text/css" href="play/css/ballot.css">
<link rel="stylesheet" type="text/css" href="play/css/election.css">
<link rel="stylesheet" type="text/css" href="play/css/sandbox.css">
<link rel="stylesheet" type="text/css" href="play/css/ballotInSandbox.css">
3 changes: 3 additions & 0 deletions _includes/css-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" type="text/css" href="css/some-minima.css">
7 changes: 7 additions & 0 deletions _includes/css-original.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

<link rel="stylesheet" type="text/css" href="css/index_original.css">
<link rel="stylesheet" type="text/css" href="play/css/model.css">
<link rel="stylesheet" type="text/css" href="play/css/ballot_original.css">
<link rel="stylesheet" type="text/css" href="play/css/election_original.css">
<link rel="stylesheet" type="text/css" href="play/css/sandbox_original.css">
<!-- <link rel="stylesheet" type="text/css" href="play/css/ballotInSandbox.css"> -->
5 changes: 5 additions & 0 deletions _includes/css-sandbox-original.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

<link rel="stylesheet" type="text/css" href="play/css/model.css">
<link rel="stylesheet" type="text/css" href="play/css/election_original.css">
<link rel="stylesheet" type="text/css" href="play/css/sandbox_original.css">
<link rel="stylesheet" type="text/css" href="play/css/ballotInSandbox.css">
3 changes: 3 additions & 0 deletions _includes/edit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<p id="editnote"><a href="https://github.com/paretoman/ballot/blob/gh-pages/{{ page.path }}">Edit this page</a>.</p>

37 changes: 37 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<footer class="site-footer h-card">
<data class="u-url" href="{{ "/" | relative_url }}"></data>

<div class="wrapper">

<div class="footer-col-wrapper">
<div class="footer-col">
<p class="feed-subscribe">
<a href="{{ 'feed.xml' | relative_url }}">
<svg class="svg-icon orange">
<use xlink:href="{{ 'assets/minima-social-icons.svg#rss' | relative_url }}"></use>
</svg><span>Subscribe</span>
</a>
</p>
{%- if site.author %}
<ul class="contact-list">
{% if site.author.name -%}
<li class="p-name">{{ site.author.name | escape }}</li>
{% endif -%}
{% if site.author.email -%}
<li><a class="u-email" href="mailto:{{ site.author.email }}">{{ site.author.email }}</a></li>
{%- endif %}
</ul>
{%- endif %}
<div class="social-links">
{%- include social.html -%}
</div>
</div>
<div class="footer-col">
<p>{{ site.description | escape }}</p>
</div>
</div>

{%- include share.html -%}
</div>

</footer>
7 changes: 7 additions & 0 deletions _includes/gif-show.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

<div>
<div class="demonstrate" onclick="var x = document.getElementById('img_{{ include.gif }}'); x.hidden = ! x.hidden;">Demonstrate</div>
</div>
<div>
<img class="gif_show" src="{{ include.gif }}" id="img_{{ include.gif }}" hidden="true" loading="lazy" />
</div>
20 changes: 20 additions & 0 deletions _includes/head-1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

<!-- Meta -->

{% include meta-minima.html %}
<title>{{ page.title }}</title>
{% include meta-1.html %}
{% include meta-viewport.html %}
{% include meta-share.html title=page.title description=page.description twuser=page.twuser %}

<base href='{{ "/" | relative_url }}'>
<!-- <base target="_blank"> -->

{% include css-index.html %}
{% include css-1.html %}

{% include js-viewport.html %}
<!-- <script src="../dev/js/gpu.js/gpu-browser.js"></script> -->
{% include js-1.html %}

{% include analytics.html %}
14 changes: 14 additions & 0 deletions _includes/head-original.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

<!-- Meta -->
<title> {{ page.title }} </title>
{% include meta-1.html %}
{% include meta-share-original.html title=page.title description=page.description twuser=page.twuser %}

<!-- <base target="_blank"> -->
<base href='{{ "/" | relative_url }}'>

{% include css-original.html %}

{% include js-original.html %}

{% include analytics.html %}
46 changes: 46 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<header class="site-header">

<div class="wrapper">
{%- assign default_paths = site.pages | map: "path" -%}
{%- assign page_paths = site.header_pages | default: default_paths -%}
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>

{%- if titles_size > 0 -%}
<nav class="site-nav">
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger">
<span class="menu-icon">
<svg viewBox="0 0 18 15" width="18px" height="15px">
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
</svg>
</span>
</label>

<div class="trigger">
{% for item in site.data.navigation %}
{% if item.name == "Home" %}
{% if page.title == "Home" %}
<a class="page-link current" href="{{ item.link }}">{{ item.name }}</a>
{% else %}
<a class="page-link" href="{{ item.link }}">{{ item.name }}</a>
{% endif %}
{% else %}
{% if page.url contains item.link %}
<a class="page-link current" href="{{ item.link }}">{{ item.name }}</a>
{% else %}
<a class="page-link" href="{{ item.link }}">{{ item.name }}</a>
{% endif %}
{% endif %}
{% endfor %}
<!-- {%- for path in page_paths -%}
{%- assign my_page = site.pages | where: "path", path | first -%}
{%- if my_page.title -%}
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{%- endif -%}
{%- endfor -%} -->
</div>
</nav>
{%- endif -%}
</div>
</header>
Loading