forked from gurs1kh/police-shooting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (73 loc) · 3.01 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Police Shootings</title>
<!-- jQuery, Bootstrap -->
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<!-- leaflet libraries -->
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<!-- Custom files -->
<script type="text/javascript" src="js/map.js"></script>
<link rel="stylesheet" href="css/main.css"/>
<script src='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.css' rel='stylesheet' />
</head>
<body>
<!-- You may want to put your title and additional informaiton here -->
<h1>Police Shootings</h1>
<div class="container">
<div class="row">
<div class="col-lg-12">
<table class="table table-striped">
<thead>
<tr>
<th> </th>
<th>Age < 40</th>
<th>Age > 40</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Gun</th>
<td id="gunLow"></td>
<td id="gunHigh"></td>
</tr>
<tr>
<th scope="row">Other</th>
<td id="otherLow"></td>
<td id="otherHigh"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-12">
<p>This map shows crowdsourced police shooting data from <a href="http://regressing.deadspin.com/deadspin-police-shooting-database-update-were-still-go-1627414202">deadspin</a>. The color of each circle indicates which type of weapon the victim was armed with when they were shot: <span id="gun">gun</span>, <span id="knife">knife</span>, <span id="blunt">blunt object</span>, <span id="vehicle">vehicle</span> or <span id="other">other</span>. The table above counts the number of cases where people are a certain age and what weapon they had. Click the icon in the top-right of the map to filter by weapons.</p>
</div>
</div>
</div>
<div class="well">
<div class="container" id="map-container">
<div class="row">
<div class="col-lg-12">
<div id="crime-map"></div>
</div>
</div>
<!-- This is the div that your map will go in. You'll need to reference its id -->
</div>
</div>
<script>
// This is where you should execute your drawMap function
drawMap();
</script>
</body>
</html>