-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (91 loc) · 4.31 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>THB</title>
<meta name="description" content="Map showing the path taken by the Travelling Hacker Box across India">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta itemprop="name" content="Travelling Hacker Box by Makerville">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/favicon-194x194.png" sizes="194x194">
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.12.0.min.js"><\/script>')
</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script src="js/typed.js"></script>
<script src='https://api.mapbox.com/mapbox-gl-js/v2.0.0/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v2.0.0/mapbox-gl.css' rel='stylesheet' />
<script>
$(function(){
$(".element").typed({
strings: ["Travelling Hacker Box","Desi edition"],
typeSpeed: 100,
backDelay: 500,
loop: false,
loopCount: false
});
});
</script>
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0%; bottom:0%; width:100%; }
.typed-cursor{
opacity: 0;
}
</style>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="element" style="font-size:300% ; position: absolute;left: 50%;top: 50%; transform: translateX(-50%) translateY(-50%);"></div>
<!-- <p>Kasa Kay Pune ?!</p> -->
<div id='map'></div>
<script>
mapboxgl.accessToken = 'pk.eyJ1IjoiYW51amRlc2hwYW5kZSIsImEiOiJja2lzbGJxYnQwZnM1MndtbTZ6NXg5NHBhIn0.qsNQqYgVGsMpacyxNdzazA';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/anujdeshpande/ckisl5q2p11og19ozvt8rjdrv',
center: [73.85, 18.51], // starting position [lng, lat]
zoom: 9 // starting zoom
});
map.on('click', function(e) {
var features = map.queryRenderedFeatures(e.point, {
layers: ['thb'] // replace this with the name of the layer
});
if (!features.length) {
return;
}
var feature = features[0];
var popup = new mapboxgl.Popup({ offset: [0, -15] })
.setLngLat(feature.geometry.coordinates)
.setHTML('<h3>' + feature.properties.place_name + '</h3><p>' + feature.properties.hacker + '</p>')
.addTo(map);
});
</script>
</body>
</html>