-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (56 loc) · 2.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>SJPT Conservation Successes Over Time</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.js"></script>
<link
href="https://api.tiles.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.css"
rel="stylesheet"
/>
<link href="css/sjpt-style.css" rel="stylesheet">
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
.mapboxgl-popup {
max-width: 400px;
font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
}
</style>
<!-- load functions & object definitions that we'll call later -->
<script src='scripts/functions.js'></script>
</head>
<body>
<div id="map"></div>
<div id="console">
<h1>San Juan Preservation Trust Conservation Successes 1979-2022</h1>
<!--create time slider-->
<div class='session' id='sliderbar'>
<h2>Year: <label id='active-year'></label></h2>
<input id='slider' class='row' type='range' min='1979' max='2022' step='1' value='1982' onmouseup="moveYearSlider('slider', 'active-year', 0);"/>
</div>
<div id='slidercontrols'>
<span id='slider_back' onclick="moveYearSlider('slider', 'active-year', -1);" title='Go back one year'><img src="img/skip_backward.svg"></span>
<span id='slider_play' onclick="startYearAnimation('slider', 'active-year', 1000, 'slider_play', 'slider_stop');" title='Animate timeline'><img src="img/play.svg"></span>
<span id='slider_stop' onclick="stopYearAnimation('slider_play', 'slider_stop');" title='Stop animation'><img src="img/stop.svg"></span>
<span id='slider_forward' onclick="moveYearSlider('slider', 'active-year', 1);" title='Go forward one year'><img src="img/skip_forward.svg"></span>
</div> <!-- id='slidercontrols' -->
<div class='legend'>
<div class='legend-title'>Legend</div>
<div class='legend-scale'>
<ul class='legend-labels'>
<li><span style='background:#519A2D;'></span>SJPT Easements</li>
<li><span style='background:#A73B2A;'></span>SJPT Preserves</li>
<li><span style='background:#e3e5cd;'></span>Other Public/Protected Lands</li>
</ul>
<div class='legend-source'>Source: <a href="http://sjpt.org/" target="_blank">San Juan Preservation Trust</a></div>
<div class='map-credit'>Map design by <a href="http://www.coregis.net/" target="_blank">CORE GIS</a></div>
</div>
</div>
</div>
</div>
<!-- JS that needs the map element to exist before it can run -->
<script src='scripts/onload.js'></script>
</body>
</html>