-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (38 loc) · 2.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>NYC Gun Homicide Map</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
crossorigin=""/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/leaflet.extra-markers.min.css">
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg=="
crossorigin=""></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/leaflet.extra-markers.min.js"></script>
<style>
#map {
height: 500px;
}
#deathCounter {
color: red;
font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
<body>
<h1>Number of Gun Homicides in <span id="year"></span>: <span id="deathCounter"></span></h1>
<div id="map"></div>
<div>
<h3>Related news stories</h3>
<p><a href="https://www.nydailynews.com/new-york/nyc-crime/ny-metro-staten-island-bar-shooting-20181017-story.html" target="_blank">Cops nab murder suspect in Staten Island bar shooting</a></p>
<p><a href="https://abc7ny.com/man-found-fatally-shot-outside-staten-island-bar/3458958/" target="_blank">Man found fatally shot outside Staten Island bar</a></p>
<p><a href="https://www.ny1.com/nyc/all-boroughs/news/2018/05/11/nypd-investigates-deadly-shooting-outside-staten-island-bar" target="_blank">NYPD investigates deadly shooting outside Staten Island bar</a></p>
</div>
<script src="map.js"></script>
</body>
</html>