-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (35 loc) · 1.13 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
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>ArcGIS API for JavaScript Tutorials: Display a map</title>
<style>
#viewDiv {
padding: 0;
margin: 0;
height: 75%;
width: 75%;
}
</style>
<!-- gis -->
<link rel="stylesheet" href="https://js.arcgis.com/4.18/esri/themes/light/main.css">
<!-- d3 -->
<script src="https://d3js.org/d3.v6.min.js"></script>
<!-- gis -->
<script src="https://js.arcgis.com/4.18/"></script>
<script src='start_page.js'></script>
</head>
<body>
<div id="viewDiv"></div>
<button onclick="choose_species('oceanic')">Oceanic</button>
<button onclick="choose_species('coastal_oceanic_fished')">Coastal Oceanic Fished</button>
<button onclick="choose_species('coastal_fished')">Coastal Fished</button>
<button onclick="choose_species('coastal_bycatch')">Coastal Bycatch</button>
<button onclick="choose_species('coastal_unfished')">Coastal Unfished</button>
</body>
<script>
function choose_species(species) {
alert('you chose ' + species);
}
</script>
</html>