-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
199 lines (169 loc) · 8.73 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" width="device-width, initial-scale=1.0">
<meta name="description" content="Website for Map Indian Archaeology">
<meta name="author" content="Neha Gupta">
<title>MINA | Map Indian Archaeology</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="/mina.github.io/css/bootstrap.css" />
<!-- Custom styles for this template -->
<link rel="stylesheet" href="/mina.github.io/css/style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.4/leaflet.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.4.0/MarkerCluster.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.4.0/MarkerCluster.Default.css" />
<link rel="stylesheet" href="/mina.github.io/css/bootstrap.min.css" />
<link rel="stylesheet" href="/mina.github.io/css/font-awesome.css" />
<link rel="stylesheet" href="/mina.github.io/css/custom.css" />
<!-- loads Leaflet -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.4/leaflet.js"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- MODAL -->
<div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-dialog modal-vertical-centered">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Welcome to MINA | MAP INDIAN ARCHAEOLOGY</h4>
</div>
<div class="modal-body">
<p> MINA is a digital Web platform of archaeological investigations in post-colonial India (currently 1953-1960). Produced as a project for the Institute on Digital Archaeology Method and Practice, the platform aims to encourage students to employ digital methods in archaeology and to promote scholarly interest in the archaeology of India and neighbouring South Asian nations.</p>
<p><b>Interact!</b> Use the zoom buttons to explore a specific area. Click on an individual marker to learn more on each investigation.</p><br>
<p><i>Locations (i.e. latitude and longitude) are accurate to roughly 1 degree or 100 km </i></p>
</div>
<div class="modal-footer">
<label ><input class="dont" type="checkbox" name="dismiss"> Don't show again</label><br />
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><strong>MAP INDIAN ARCHAEOLOGY</strong></a>
</div>
<!-- menu items -->
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="/mina.github.io/index">MAP</a></li>
<li><a href="/mina.github.io/project">THE PROJECT</a></li>
<li><a href="https://mapindianarch.wordpress.com" target="_blank">BLOG</a></li>
</ul>
<!-- social media icons -->
<ul class="nav navbar-nav navbar-right social">
<li><a href="https://www.facebook.com/mapindianarchaeology/" target="_blank"><i class="fa fa-lg fa-facebook"></i></a></li>
<li><a href="https://twitter.com/MapIndianArch" target="_blank"><i class="fa fa-lg fa-twitter"></i></a></li>
<li><a href="https://mapindianarch.wordpress.com" target="_blank"><i class="fa fa-lg fa-wordpress" aria-hidden="true"></i></a></li>
<li><a href="https://github.com/dngupta/mina.github.io" target="_blank"><i class="fa fa-lg fa-github"></i></a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
<script href="https://ajax.googleapis.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script href="/mina.github.io/js/bootstrap.min.js"></script>
</div>
<!-- MAP -->
<div id="map"></div>
<!-- FOOTER -->
<!-- div class="footer" -->
<!--div class="container" -- >
<!-- p class="text-muted">Github Hosting<a href="https://github.com/" target="_blank">Github</a>.</p -->
<!--/div -->
<!--/div -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- loads jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<!-- Placed at the end of the document so the pages load faster -->
<script src="/mina.github.io/js/bootstrap.min.js"></script>
<script src="/mina.github.io/leaflet-omnivore-master/leaflet-omnivore.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.4.0/leaflet.markercluster-src.js"></script>
<!-- Initiates Modal and Uses cookies for Dont Show Again Checkbox -->
<script type="text/javascript">
$(document).ready(function () {
$('#myModal').modal();
//check cookies
function setCookie(){
var dis = document.cookie;
while(dis.charAt(0)==" ") dis = dis.substring(1);
if(dis.substring(8,13)== "false"){
$('#myModal').modal('hide');
}
console.log(dis.substring(8,13));
}
setCookie();
var $check = $("input.dont").click(function(){
if($("input.dont").is(":checked")){
document.cookie = "display=false";
}else{
document.cookie = "display=true";
}
});
});
</script>
<!-- Centers Modal Vertically -->
<script type="text/javascript">
function centerModal() {
$(this).css('display', 'block');
var $dialog = $(this).find(".modal-dialog");
var offset = ($(window).height() - $dialog.height()) / 2;
// Center modal vertically in window
$dialog.css("margin-top", offset);
}
$('.modal').on('show.bs.modal', centerModal);
$(window).on("resize", function () {
$('.modal:visible').each(centerModal);
});
</script>
<!-- Pulls data from csv and intitiates map -->
<script>
var map = L.map('map').setView([23.215757, 80.042289], 5);
L.tileLayer ('https://api.mapbox.com/styles/v1/mapbox/satellite-v9/tiles/{z}/{x}/{y}?access_token={accessToken}', {
attribution: 'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
maxZoom: 18,
accessToken: 'pk.eyJ1IjoiZG5ndXB0YSIsImEiOiJja2hoODQ0YW4xOGc0MnJwNWVsM3BicGttIn0.oY6IpkC5M8ExGvx0jmNu3A'}).addTo(map);
//enter path for .csv here
var markers = omnivore.csv('/mina.github.io/data/IAR1950s_170225.csv')
.on('ready', function(layer) {
map.fitBounds(markers.getBounds());
markerClusters.addLayer(markers);
map.addLayer(markerClusters);
this.eachLayer(function(marker) {
marker.bindPopup(marker.toGeoJSON().properties.Site + '<br><b>State: </b>' + marker.toGeoJSON().properties.State + '<br><b>Year: </b>' +
marker.toGeoJSON().properties.Year + '<br/><b>Institution: </b> ' +
marker.toGeoJSON().properties.Institute + '<br/><b>Precision: </b> ' +
marker.toGeoJSON().properties.Precision, {autoPanPadding: [5,55]});
});
});
var markerClusters = L.markerClusterGroup();
for (var i = 0; i < markers.length; ++i)
{
}
map.addLayer(markerClusters);
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FZRX340DFV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-FZRX340DFV');
</script>
</body></html>