-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (38 loc) · 1.47 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Condorcet-IRV</title>
<meta name="author" content="Luis Castro Martín">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="icon" href="https://luiscastro193.github.io/favicon.svg" type="image/svg+xml">
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<script type="module" src="index.js"></script>
<script type="module" async src="https://luiscastro193.github.io/stats.js"></script>
</head>
<body>
<h3>Condorcet-IRV</h3>
<form>
<label for="candidates">Candidates</label>
<textarea class="fieldset" id="candidates" rows=6 cols=25 placeholder="First option (one per line)" required autofocus></textarea>
<ol id="candidateList" class="fieldset"></ol>
<label for="ballots">Ballots</label>
<section>
<textarea class="fieldset" id="ballots" rows=6 cols=25 placeholder="Click on "Generate ballot"" required></textarea>
<ul id="ballotList" class="fieldset"></ul>
</section>
<button id="ballotButton" type="button" disabled>Generate ballot</button>
<button id="winnerButton" disabled>Calculate winner</button>
</form>
<p><u>Winner</u>: <span id="winner"></span></p>
<section class="preference-selector">
<p>Choose your preference</p>
<article class="preferences">
<span></span>
<span>=</span>
<span></span>
</article>
</section>
</body>
</html>