This repository has been archived on 2021-05-25. You can view files and clone it, but cannot push or open issues or pull requests.
pyRCV2/html/blt/index.html

62 lines
2.6 KiB
HTML
Raw Normal View History

2021-01-25 19:47:18 +11:00
<!--
pyRCV2: Preferential vote counting
Copyright © 2020–2021 Lee Yingtong Li (RunasSudo)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>pyRCV2 Ballot Input Tool</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" integrity="sha512-NhSC1YmyruXifcj/KFRWoC561YpHpc5Jtzgvbuzx5VozKpWvQ+4nXhPdFgmx8xqexRcpAglTj9sIBWINXa8x5w==" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="../main.css?v=GITVERSION">
</head>
<body>
<div class="menudiv">
<input type="file" id="inpFile" style="display: none;" onchange="changeInpFile()">
<button onclick="clickOpenJSON()">Open JSON</button>
<button onclick="clickSaveJSON()">Save JSON</button>
<button onclick="clickImportBLT()">Import BLT</button>
2021-01-25 20:41:13 +11:00
<button onclick="clickExportBLT()">Export BLT</button>
2021-01-25 19:47:18 +11:00
<!--GITREV-->
<a href="https://yingtongli.me/blog/2020/12/24/pyrcv2.html">Information and instructions</a>
</div>
<div id="bltMain">
<select id="selBallots" size="20" onchange="changeBallot()">
<option value="new" selected>-- New Ballot --</option>
</select>
<div>
<div>
<button onclick="clickEditCandidates()">Edit candidates</button>
Ballot value: <input id="txtBallotValue" type="number" value="1" min="1" style="width: 3em;">
</div>
<table id="tblBallot"></table>
<button onclick="clickSave()">Save and advance to next ballot</button>
</div>
</div>
<div id="divEditCandidates" style="display: none;">
<div>Enter the candidates' names, one per line:</div>
<div><textarea id="txtCandidates"></textarea></div>
<div><button onclick="clickSaveCandidates()">Save candidates</button></div>
<div>Warning: Adding, removing or reordering candidates once ballots have been input may result in unexpected behaviour.</div>
</div>
<script src="../bundle.js?v=GITVERSION"></script>
2021-01-25 19:47:18 +11:00
<script src="index.js?v=GITVERSION"></script>
</body>
</html>