-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaceObjects.html
More file actions
93 lines (89 loc) · 2.33 KB
/
Copy pathplaceObjects.html
File metadata and controls
93 lines (89 loc) · 2.33 KB
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
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="initial-scale=1, maximum-scale=1, user-scalable=no"
/>
<title>Place and Plan!</title>
<link
rel="stylesheet"
href="https://js.arcgis.com/4.14/esri/css/main.css"
/>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
#paneDiv {
padding: 10px;
border-radius: 20px;
max-width: 300px;
background-color: rgba(255, 255, 255, 0.8);
font-size: 1.1em;
display: flex;
flex-direction: column;
}
.numInfo {
display: inline;
}
.card {
margin: 0.5em 0;
background-color: #fff;
padding: 1em;
border-radius: 20px;
box-shadow: 0 0 5px #aaa;
}
.numInfoTag {
margin: 0.4em 0;
border-radius: 30px;
background-color: #99f2c8;
padding: 0em 2em;
display: flex;
justify-content: space-between;
}
</style>
<script src="https://js.arcgis.com/4.14/"></script>
<script src="placeObject_js.js"></script>
</head>
<body>
<div id="viewDiv"></div>
<div id="paneDiv" class="esri-widget">
<div class="card">
<p>Select an object and place it in the scene:</p>
<button id="solar" class="esri-button">Solar Panel</button><br />
<button id="tree" class="esri-button">Tree</button>
</div>
<div class="card">
<p>These are the items placed by you:</p>
<div class="numInfoTag">
<h3 class="numInfo">Trees</h3>
<h2 id="treeNum" class="numInfo">0</h2>
</div>
<div class="numInfoTag">
<h3 class="numInfo">Solar Panels</h3>
<h2 id="solarNum" class="numInfo">0</h2>
</div>
</div>
<div class="card moneyInfoDiv">
<p>Results:</p>
<p id="moneyInfo"></p>
<div class="numInfoTag">
<h3 class="numInfo">Break-Even (yr)</h3>
<h2 id="roiNum" class="numInfo">0</h2>
</div>
<div class="numInfoTag">
<h3 class="numInfo">CO2 Capture(yr)</h3>
<h2 id="co2num" class="numInfo">0</h2>
</div>
</div>
</div>
<div>
<p id="sampleSuggestion"></p>
</div>
</body>
</html>