forked from ncase/ballot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from paretoman/gh-pages
strategy stuff
- Loading branch information
Showing
24 changed files
with
611 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" type="text/css" href="css/model.css"> | ||
<link rel="stylesheet" type="text/css" href="css/ballot.css"> | ||
</head> | ||
<body></body> | ||
</html> | ||
|
||
<script src="js/helpers.js"></script> | ||
<script src="js/minpubsub.js"></script> | ||
<script src="js/Loader.js"></script> | ||
<script src="js/Mouse.js"></script> | ||
<script src="js/Draggable.js"></script> | ||
<script src="js/Model.js"></script> | ||
<script src="js/Candidate.js"></script> | ||
<script src="js/Voters.js"></script> | ||
<script src="js/Election.js"></script> | ||
<script src="js/Ballot.js"></script> | ||
|
||
<script src="js/main_ballot.js"></script> | ||
<script>main({ | ||
system: "Three", | ||
strategy: "starnormfrontrunners", | ||
frontrunners: ["square","hexagon"] | ||
});</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" type="text/css" href="css/model.css"> | ||
<link rel="stylesheet" type="text/css" href="css/ballot.css"> | ||
</head> | ||
<body></body> | ||
</html> | ||
|
||
<script src="js/helpers.js"></script> | ||
<script src="js/minpubsub.js"></script> | ||
<script src="js/Loader.js"></script> | ||
<script src="js/Mouse.js"></script> | ||
<script src="js/Draggable.js"></script> | ||
<script src="js/Model.js"></script> | ||
<script src="js/Candidate.js"></script> | ||
<script src="js/Voters.js"></script> | ||
<script src="js/Election.js"></script> | ||
<script src="js/Ballot.js"></script> | ||
|
||
<script src="js/main_ballot.js"></script> | ||
<script>main({ | ||
system: "Score", | ||
strategy: "starnormfrontrunners", | ||
frontrunners: ["square","hexagon"] | ||
});</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" type="text/css" href="css/model.css"> | ||
<link rel="stylesheet" type="text/css" href="css/election.css"> | ||
</head> | ||
<body> | ||
<div id="left"></div> | ||
<div id="center"></div> | ||
<div id="right"></div> | ||
</body> | ||
</html> | ||
|
||
<script src="js/helpers.js"></script> | ||
<script src="js/minpubsub.js"></script> | ||
<script src="js/Loader.js"></script> | ||
<script src="js/Mouse.js"></script> | ||
<script src="js/Draggable.js"></script> | ||
<script src="js/Model.js"></script> | ||
<script src="js/Candidate.js"></script> | ||
<script src="js/Voters.js"></script> | ||
<script src="js/Election.js"></script> | ||
<script src="js/Buttons.js"></script> | ||
<script src="js/seedrandom.min.js"></script> | ||
|
||
<script src="js/main_sandbox.js"></script> | ||
<script> | ||
main({ | ||
|
||
features:3, | ||
doPercentMiddle:true, | ||
system: "Approval", | ||
|
||
candidates: 3, | ||
candidatePositions: [[150-25,150-20], | ||
[150+20,150-20], | ||
[150,150+75]], | ||
|
||
voters: 3, | ||
voterPositions: [[150,150+10], | ||
[150,150-70], | ||
[150,150+90]], | ||
voterStrategies: ["normfrontrunners","normfrontrunners","normfrontrunners"], | ||
voterPercentStrategy: [100,100,100], | ||
frontrunners: ['square','triangle','hexagon'] | ||
|
||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" type="text/css" href="css/model.css"> | ||
<link rel="stylesheet" type="text/css" href="css/election.css"> | ||
</head> | ||
<body> | ||
<div id="left"></div> | ||
<div id="center"></div> | ||
<div id="right"></div> | ||
</body> | ||
</html> | ||
|
||
<script src="js/helpers.js"></script> | ||
<script src="js/minpubsub.js"></script> | ||
<script src="js/Loader.js"></script> | ||
<script src="js/Mouse.js"></script> | ||
<script src="js/Draggable.js"></script> | ||
<script src="js/Model.js"></script> | ||
<script src="js/Candidate.js"></script> | ||
<script src="js/Voters.js"></script> | ||
<script src="js/Election.js"></script> | ||
<script src="js/Buttons.js"></script> | ||
<script src="js/seedrandom.min.js"></script> | ||
|
||
<script src="js/main_sandbox.js"></script> | ||
<script> | ||
main({ | ||
|
||
features:3, | ||
doPercentMiddle:true, | ||
system: "Approval", | ||
|
||
candidates: 3, | ||
candidatePositions: [[150-25,150-20], | ||
[150+20,150-20], | ||
[150,150+75]], | ||
|
||
voters: 3, | ||
voterPositions: [[150,150+10], | ||
[150,150-70], | ||
[150,150+90]], | ||
voterStrategies: ["normfrontrunners","normfrontrunners","normfrontrunners"], | ||
voterPercentStrategy: [100,100,100], | ||
frontrunners: ['square','triangle','hexagon'] | ||
|
||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" type="text/css" href="css/model.css"> | ||
<link rel="stylesheet" type="text/css" href="css/election.css"> | ||
</head> | ||
<body> | ||
<div id="left"></div> | ||
<div id="center"></div> | ||
<div id="right"></div> | ||
</body> | ||
</html> | ||
|
||
<script src="js/helpers.js"></script> | ||
<script src="js/minpubsub.js"></script> | ||
<script src="js/Loader.js"></script> | ||
<script src="js/Mouse.js"></script> | ||
<script src="js/Draggable.js"></script> | ||
<script src="js/Model.js"></script> | ||
<script src="js/Candidate.js"></script> | ||
<script src="js/Voters.js"></script> | ||
<script src="js/Election.js"></script> | ||
<script src="js/Buttons.js"></script> | ||
<script src="js/seedrandom.min.js"></script> | ||
|
||
<script src="js/main_sandbox.js"></script> | ||
<script> | ||
main({ | ||
|
||
features:3, | ||
doPercentMiddle:true, | ||
system: "IRV", | ||
|
||
candidates: 4, | ||
candidatePositions: [[150-25,150-20], | ||
[150+20,150-20], | ||
[150,150+75], | ||
[150+0,150+10]], | ||
|
||
voters: 3, | ||
voterPositions: [[150,150+10], | ||
[150,150-70], | ||
[150,150+90]], | ||
voterStrategies: ["normfrontrunners","normfrontrunners","normfrontrunners"], | ||
voterPercentStrategy: [100,100,100], | ||
frontrunners: ['square','triangle','hexagon'] | ||
|
||
}); | ||
</script> |
Oops, something went wrong.