-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (86 loc) · 3.22 KB
/
index.html
File metadata and controls
100 lines (86 loc) · 3.22 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Protest Map</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="leaflet/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="http://leaflet.cloudmade.com/dist/leaflet.ie.css" /><![endif]-->
<link rel="stylesheet" href="bootstrap/css/bootstrap.flatly.css">
<meta name="viewport" content="width=device-width, initial-scale=0.8">
</head>
<body>
<div id="container" class="container-fluid">
<div class="col-md-12">
<div class="col-md-9">
<div id="header">
<div id="headline" class="col-md-8">
<h1>South Africa's Protest Map</h1>
<div id="blurb">Produced by <a href="http://code4sa.org" target="_blank">Code for South Africa</a> and <a href="http://enca.co.za" target="_blank">eNCA</a> | Data source <a href="http://www.issafrica.org" target="_blank">Institute for Security Studies</a> | <a href="protestdata_1.csv">CSV</a></div>
</div>
<div id="logos" class="col-md-4">
<a href="http://code4sa.org" target="_blank"><img src="img/c4sa_logo.png" alt="Code for South Africa"></a>
<a href="http://enca.co.za" target="_blank"><img src="img/enca_logo.png" alt="eNCA"></a>
</div>
</div>
<div id="map_outer">
<div id="visible_date"></div>
<div id="dates" class="clearfix">
<div class="col-sm-4">
<h5>Start Date</h5>
<select name="" id="start_date" class="form-control"></select>
</div>
<div class="col-sm-4">
<h5>End Date</h5>
<select name="" id="end_date" class="form-control"></select>
</div>
<div class="col-sm-4">
<h5>Type</h5>
<div id="protest_types"></div>
</div>
</div>
<div id="map">
<div id="keys">
<div class="key">
<div class="color-dot red"></div>
Violent
</div>
<div class="key">
<div class="color-dot blue"></div>
Peaceful
</div>
</div>
</div>
<div id="scrubber"></div>
</div>
<div id="histogram"></div>
</div>
<div class="col-md-3" id="embed_code_container">
<h3>Embed this map</h3>
<textarea name="" id="embed_code" cols="30" rows="10"></textarea>
<div class="checkbox">
<label><input type="checkbox" id="chk_lock"> Lock position</label>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="bower_components/d3/d3.min.js"></script>
<script type="text/javascript" src="leaflet/leaflet.js"></script>
<script type="text/javascript" src="http://maps.stamen.com/js/tile.stamen.js?v1.2.4"></script>
<script language="javascript" src="javascript/protestmap.js"></script>
<script src="jquery/jquery-1.11.1.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript">
initialize();
</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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-48399585-10', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>