-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (54 loc) · 2.6 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Liquid Democracy Demo</title>
<link rel="stylesheet" href="app.css">
<link rel="shortcut icon" href="https://demo.liquid.us/favicon.png">
<meta property="og:title" content="Liquid Democracy Simulation" />
<meta property="og:url" content="https://demo.liquid.us" />
<meta property="og:image" content="https://demo.liquid.us/screenshot5.png"/>
<meta property="og:description" content="This graph shows how participants vote on a proposal. Each voter's arrow points to their proxy. Click a voter's circle to adjust their vote. Voters with translucent circles have inherited their proxy's vote." />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@united_vote">
<meta name="twitter:title" content="Liquid Democracy Simulation">
<meta name="twitter:description" content="This graph shows how participants vote on a proposal. Each voter's arrow points to their proxy. Click a voter's circle to adjust their vote. Voters with translucent circles have inherited their proxy's vote.">
<meta name="twitter:image" content="https://demo.liquid.us/screenshot5.png">
</head>
<body>
<h1>Liquid Democracy Proxying Demo</h1>
<button id="simulate">Simulate new vote</button>
<div id="vote-tally">
<p class="yea-label">
<strong><span id="yea-count">0</span></strong> Yea
</p>
<p class="nay-label">
<strong><span id="nay-count">0</span></strong> Nay
</p>
<p>
The vote <span id="outcome">ties</span>
</p>
</div>
<p id="instructions">
<strong>INSTRUCTIONS</strong><br>
This graph shows how participants vote on a proposal.<br>
Solid colored nodes show direct voting.<br>
Faded circles have inherited their vote, arrows point to proxy.<br>
<strong>Click</strong> a voter's circle to adjust their vote.<br>
</p>
<footer>
<a href="https://liquid.us" target="_blank">Learn more</a>
<p><a href="/electoral">Switch to electoral mode</a></p>
</footer>
</body>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-84279342-1', 'auto');
ga('send', 'pageview');
</script>
<script src="bundle.js"></script>
</html>