-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
53 lines (51 loc) · 1.82 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
<!DOCTYPE html>
<title>Find your local football team</title>
<html>
<head>
<meta charset="utf-8">
<link href="base.css" rel="stylesheet" />
<link href='//api.tiles.mapbox.com/mapbox.js/v1.6.3/mapbox.css' rel='stylesheet' />
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id='map'>
</div>
<div id='selections' class="selections">
<div class='content'>
<div id="toggles">
</div>
</div>
</div>
<div id='loading'>
</div>
<div id='selected'>
<h1>Find your local football team</h1>
</div>
<div id='about'>
<p>
<a href ="https://github.com/guushoekman/local-football-team" target="_blank">Explore on GitHub</a>
<a href="https://www.mapbox.com/about/maps/" target="_blank">© Mapbox</a>
<a href="http://www.openstreetmap.org/about/" target="_blank">© OpenStreetMap</a>
</p>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.8/d3.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox.js/v2.2.1/mapbox.js"></script>
<script src="voronoi_map.js"></script>
<script>
L.mapbox.accessToken = 'pk.eyJ1IjoiemV0dGVyIiwiYSI6ImVvQ3FGVlEifQ.jGp_PWb6xineYqezpSd7wA';
map = L.mapbox.map('map', 'duxkgh.8cfcae29')
.fitBounds([[59.785789, -131.611065], [-34.412930, 147.456315]]);
url = 'input.csv';
initialSelection = d3.set(['First tier']);
voronoiMap(map, url, initialSelection);
</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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-90365352-4', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>