-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (36 loc) · 1.17 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link rel="stylesheet" type="text/css" href="https://api.tiles.mapbox.com/mapbox-gl-js/v1.0.0/mapbox-gl.css"/>
<style>
body { margin: 0; top: 0; bottom: 0; width: 100%; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
.map-overlay {
position: absolute; width: 200px; top: 0px; right: 0px; padding: 10px;
font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
}
.map-overlay .map-overlay-inner {
box-shadow:6px 6px 2px rgba(0, 0, 0, 0.10); color: #fff;
border-radius: 6px; padding: 10px; margin-bottom: 10px
}
.default { visibility: hidden }
.conflict { background-color: rgb(255, 142, 0) }
.post-conflict { background-color: rgb(255, 0, 139) }
.other { background-color: rgb(113, 1, 149) }
</style>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v1.0.0/mapbox-gl.js"></script>
</head>
<body>
<div id="map"></div>
<div class='map-overlay top'>
<div class='map-overlay-inner default' id='overlay'>
<h2 id='country'></h2>
<p id='description'></p>
</div>
</div>
<script src="app.js"></script>
</body>
</html>