-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (59 loc) · 2.56 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>Isochrone API Example</title>
<meta name='viewport' content='width=device-width, initial-scale=1' />
<!-- Import Mapbox GL JS -->
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.css' rel='stylesheet' />
<!-- Import Assembly -->
<link href='https://api.mapbox.com/mapbox-assembly/v1.3.0/assembly.min.css' rel='stylesheet'>
<script src='https://api.mapbox.com/mapbox-assembly/v1.3.0/assembly.js'></script>
<link href='css/styles.css' rel='stylesheet'>
</head>
<body>
<!-- Create a container for the map -->
<div id='map'></div>
<!-- Creates the Sidebar, styled with Assembly CSS -->
<div class='absolute fl my24 mx24 py24 px24 bg-gray-faint round'>
<form id='params'>
<h4 class='txt-m txt-bold mb6'>Choose a travel mode:</h4>
<div class='mb12 mr12 toggle-group align-center'>
<label class='toggle-container'>
<input name='profile' type='radio' value='walking'>
<div class='toggle toggle--active-null toggle--null'>Walking</div>
</label>
<label class='toggle-container'>
<input name='profile' type='radio' value='cycling' checked>
<div class='toggle toggle--active-null toggle--null'>Cycling</div>
</label>
<label class='toggle-container'>
<input name='profile' type='radio' value='driving'>
<div class='toggle toggle--active-null toggle--null'>Driving</div>
</label>
</div>
<h4 class='txt-m txt-bold mb6'>Choose a maximum duration:</h4>
<div class='mb12 mr12 toggle-group align-center'>
<label class='toggle-container'>
<input name='duration' type='radio' value='15' checked>
<div class='toggle toggle--active-null toggle--null'>15 min</div>
</label>
<label class='toggle-container'>
<input name='duration' type='radio' value='30'>
<div class='toggle toggle--active-null toggle--null'>30 min</div>
</label>
<label class='toggle-container'>
<input name='duration' type='radio' value='45'>
<div class='toggle toggle--active-null toggle--null'>45 min</div>
</label>
<label class='toggle-container'>
<input name='duration' type='radio' value='60'>
<div class='toggle toggle--active-null toggle--null'>60 min</div>
</label>
</div>
</form>
</div>
<script src="js/mapScript.js"></script>
</body>
</html>