-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (78 loc) · 3.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Interactive Map of the 2014 Election">
<meta property="article:author" content="Guus Hoekman" />
<title>Indonesian legislative election results</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
<link rel="stylesheet" href="css/style.css" />
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
<script src="js/chroma.min.js"></script>
</head>
<body>
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.4.12/d3.min.js"></script>
<script src="js/topojson.v0.min.js"></script>
<div class="container">
<div class="map-container">
<div id="map"></div>
</div>
<div class="sidebar">
<h1>Indonesian Legislative Elections 2014</h1>
<label for="select">Party to display:</label>
<select>
<option value="Winner">Winner</option>
<option value="Nasdem">Nasdem</option>
<option value="PKB">PKB</option>
<option value="PKS">PKS</option>
<option value="PDIP">PDI-P</option>
<option value="Golkar">Golkar</option>
<option value="Gerindra">Gerindra</option>
<option value="Demokrat">Demokrat</option>
<option value="PAN">PAN</option>
<option value="PPP">PPP</option>
<option value="Hanura">Hanura</option>
</select>
<hr>
<h4 id="caption">National results</h4>
<div class="chart"></div>
<p class="download">
<a class="btn" href="data/processed-data.ods" download><i class="fa fa-download" aria-hidden="true"></i> Processed data</a>
<a class="btn" href="data/legislative-election-results.pdf" download><i class="fa fa-download" aria-hidden="true"></i> Raw data</a>
</p>
<p class="download">
<a class="btn" target="_blank" href="https://github.com/guushoekman/2014-indonesian-elections"><i class="fa fa-github" aria-hidden="true"></i> Source</a>
<a class="btn" target="_blank" href="https://en.wikipedia.org/wiki/Indonesian_legislative_election,_2014"><i class="fa fa-wikipedia-w" aria-hidden="true"></i> Election info</a>
</p>
<script type="text/javascript" src="js/map.js"></script>
<script src="js/barchart.js"></script>
<script type="text/javascript">
(function(doc, script) {
var js,
fjs = doc.getElementsByTagName(script)[0],
frag = doc.createDocumentFragment(),
add = function(url, id) {
if (doc.getElementById(id)) {return;}
js = doc.createElement(script);
js.src = url;
id && (js.id = id);
frag.appendChild( js );
};
fjs.parentNode.insertBefore(frag, fjs);
}(document, 'script'));
</script>
</div>
</div>
<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-90365352-3', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>