-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
120 lines (114 loc) · 2.77 KB
/
index.html
File metadata and controls
120 lines (114 loc) · 2.77 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>LoSER</title>
<style>
html, body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
height: 100%;
margin: 0;
padding: 0;
color: #111827;
background: #f8fafc;
}
#topbar {
height: 130px;
padding: 16px 20px;
backdrop-filter: blur(12px);
box-sizing: border-box;
background: #f3f3f3;
border-bottom: 1px solid #e2e8f0;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
position: relative;
}
#clearPointsButton {
position: absolute;
top: 10px;
right: 10px;
}
#interpolateButton:disabled {
background-color: #ccc;
color: #666;
cursor: not-allowed;
opacity: 0.6;
}
#interpolateButton {
position: absolute;
top: 60px;
right: 10px;
}
#sliderLabel {
position: absolute;
top: 105px;
right: 170px;
}
#slider {
position: absolute;
top: 105px;
right: 45px;
width: 120px;
}
#output {
position: absolute;
top: 105px;
right: 10px;
}
#map {
height: calc(100% - 100px);
width: 100%;
}
.elevationTextBox {
display: none;
}
.pointRow, #statusText {
margin-bottom: 18px;
}
#statusText {
font-weight: bold;
}
button {
font: inherit;
font-weight: 400;
border: none;
border-radius: 10px;
padding: 10px 14px;
background: #e6214c;
color: white;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
transition: all 0.2s ease;
}
button:hover {
transform: translateY(-1px);
opacity: 0.8;
}
</style>
</head>
<body>
<div id="topbar">
<div id="statusText">Select point 1</div>
<div class="pointRow">
<span id="point1">Selected Point 1:</span>
<span id="elevation1Note"></span>
<input type="text" id="elevation1Input" class="elevationTextBox" value="0">
</div>
<div class="pointRow">
<span id="point2">Selected Point 2:</span>
<span id="elevation2Note"></span>
<input type="text" id="elevation2Input" class="elevationTextBox" value="0">
</div>
<button id="clearPointsButton">Clear Selected Points</button>
<button id="interpolateButton">Check visibility!</button>
<label for="slider" id="sliderLabel"># of points to interpolate:</label>
<input type="range" id="slider" min="0" max="500" value="100" oninput="output.textContent = this.value" disabled>
<span id="output">50</span>
</div>
<div id="map"></div>
<script src="/src/js/app.js"></script>
<script
async
defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBVVih2K4xSjL_S0YT5sTXJuBKpjKi_MxY&callback=initMap">
</script>
</body>
</html>