-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (79 loc) · 1.81 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Senedd Petition by Constituency</title>
<link rel="stylesheet" href="css/main.css?220304">
<!-- Clicky Analytics -->
<script async src="//static.getclicky.com/101362842.js"></script>
</head>
<body>
<div id="loading_screen">
<p>Loading…</p>
</div>
<div id="petition_input">
<input type="text" name="petition_url" id="petition_url", placeholder="e.g. https://petitions.senedd.wales/petitions/244282">
<button id="fetch_petition">Fetch Petition</button>
</div>
<div id="petition_header">
<h2 id="petition_title"></h2>
</div>
<div id="petition_outputs">
<div>
<table id="constituencies_table">
<thead>
<tr>
<th>
</th>
<th>
Constituency
</th>
<th>
Signatures
</th>
<th>
Signatures per<br>
10k electors
</th>
<th>
</th>
</tr>
</thead>
<tbody></tbody>
</table>
<table id="regions_table">
<thead>
<tr>
<th>
</th>
<th>
Region
</th>
<th>
Signatures
</th>
<th>
Signatures per<br>
10k electors
</th>
<th>
</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<div>
<svg id="map" >
</svg>
<p>Electors data is from StatsWales, dated December 2019.</p>
<p>Constituency boundaries are from ONS, dated December 2016.</p>
</div>
</div>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="js/lodash.js"></script>
<script src="js/jquery.js"></script>
<script src="js/main.js?220304"></script>
<script src='https://unpkg.com/@turf/turf/turf.min.js'></script>
</body>
</html>