forked from yaman1337/neomunchers-orrery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
271 lines (249 loc) · 8.98 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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
/>
<title>Neomunchers Orrery</title>
<!-- shaders -->
<script type="x-shader/x-vertex" id="vertexshader">
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
</script>
<script type="x-shader/x-fragment" id="fragmentshader">
uniform sampler2D baseTexture;
uniform sampler2D bloomTexture;
varying vec2 vUv;
void main() {
gl_FragColor = ( texture2D( baseTexture, vUv ) + vec4( 1.0 ) * texture2D( bloomTexture, vUv ) );
}
</script>
<link rel="stylesheet" href="css/jquery-ui.min.css" />
<link rel="stylesheet" href="css/jquery-ui.structure.min.css" />
<link rel="stylesheet" href="css/jquery-ui.theme.min.css" />
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link rel="stylesheet" href="css/orrery.css" />
<link rel="manifest" href="data/manifest.json" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="msapplication-TileImage" content="data/ms-icon-144x144.png" />
<meta name="theme-color" content="#ffffff" />
<script type="module" src="js/orrery/src/launch.js"></script>
<style>
.video-btn a {
font-size: 15px;
position: relative;
top: 25px;
right: 5px;
color: #043381;
}
.video-btn a span {
position: absolute;
border-left: 12px solid #000fff;
border-top: 8px solid #fff;
border-bottom: 8px solid #fff;
}
@keyframes pulse {
0% {
-webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1),
0 0 0 10px rgba(255, 255, 255, 0.1),
0 0 0 20px rgba(255, 255, 255, 0.1);
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1),
0 0 0 10px rgba(255, 255, 255, 0.1),
0 0 0 20px rgba(255, 255, 255, 0.1);
}
100% {
-webkit-box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1),
0 0 0 20px rgba(255, 255, 255, 0.1),
0 0 0 100px rgba(255, 255, 255, 0);
box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1),
0 0 0 20px rgba(255, 255, 255, 0.1),
0 0 0 100px rgba(255, 255, 255, 0);
}
}
/* .vedio-btn i {
color: #000cca;
} */
.close-btn {
position: absolute;
top: 14%;
right: 20%;
padding: 10px;
background: transparent;
border: 0;
font-size: 20px;
color: #bebbbb;
cursor: pointer;
}
.modal-container {
background-color: rgba(0, 0, 0, 0.7);
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.modal-container.show-modal {
display: block;
}
.modal {
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
position: absolute;
overflow: hidden;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 100%;
animation-name: modalopen;
animation-duration: 1s;
}
#modal-vedio {
position: absolute;
}
</style>
</head>
<body>
<div id="inputBox">
<h3 id="date"></h3>
<div>
<div id="info">
<a id="infohead" href="" target="_blank"></a><br />
<a href="" target="_blank"><img src="" class="wikipic" /></a><br />
<b><span id="planetInfo" class="data"></span></b><br />
Semimajor Axis: <span id="semiMajorAxis" class="data"></span
><br />
Orbital Period: <span id="period" class="data"></span><br />
Eccentricity: <span id="eccentricity" class="data"></span><br />
Inclination: <span id="inclination" class="data"></span
>°<br />
Orbital Velocity:
<span id="orbitVel" class="data"></span> km/s<br />
Radius: <span id="radius" class="data"></span> km<br />
Absolute Magnitude: <span id="absMag" class="data"></span>
<span id="earthRel">
<br />Apparent Magnitude: <span id="appMag" class="data"></span
><br />
Distance from Sun: <span id="toSun" class="data"></span
> AU<br />
Distance from Earth: <span id="toEarth" class="data"></span
> AU<br />
Right Ascension: <span id="RA" class="data"></span
>”<br />
Declination: <span id="dec" class="data"></span>°<br />
<span id="riseSet" class="data"></span>
Altitude: <span id="alt" class="data"></span>°<br />
Azimuth: <span id="az" class="data"></span>”<br />
<span class="extraData"
>Hour Angle: <span id="ha" class="data"></span>”<br
/></span>
Elongation: <span id="elong" class="data"></span>°
</span>
<span id="earth">
<br />Distance from Sun: <span
id="earthToSun"
class="data"
></span
> AU<br />
Sun Right Ascension: <span id="sunRA" class="data"></span
>”<br />
Sun Declination: <span id="sunDec" class="data"></span
>°<br />
Sun <span id="earthRiseSet" class="data"></span> Sun
Altitude: <span id="sunAlt" class="data"></span>°<br />
Sun Azimuth: <span id="sunAz" class="data"></span>”<br />
</span>
</div>
</div>
</div>
<div id="nav-tabs">
<div class="nav-link" id="bennu-btn">Bennu Visualization</div>
<div class="nav-link" onclick="window.location.assign('./flyby.html')">Flybys</div>
<div class="nav-link" onclick="window.location.assign('./data.html')">
Data Prediction
</div> <!-- test -->
</div>
<div id="modal-video-container">
<div id="modal-vedio">
<a href="#">
<!-- <i class="fas fa-play"></i> -->
<span></span>
</a>
</div>
<div class="modal-container" id="modal">
<a class="" id="close">
<i class="fas fa-times close-btn"></i>
</a>
<div class="modal">
<iframe
width="800"
height="400"
frameborder="0"
allowfullscreen=""
src="https://www.youtube.com/embed/LWye_S-wXp8"
>
</iframe>
</div>
</div>
</div>
</div>
<div id="splashScreen">
<div id="splash-loading-wrapper">
<div id="loading-ring"></div>
<div id="logo-background"></div>
<img id="logo" src="data/logo.png" style="object-fit: contain" />
</div>
<div id="splash-content-container">
<script>
if (/Mobi|Android/i.test(navigator.userAgent)) {
document.getElementById("splash-content-container").hidden = true;
}
</script>
<p>Neomunchers get ready with your munchies to explore the universe</p>
<p>
Data courtesy of <a href="http://nasa.gov" target="_blank">NASA</a>,
<a href="http://jpl.nasa.gov" target="_blank">JPL</a>,
<a href="http://en.wikipedia.org" target="_blank">Wikipedia</a>, and
<a href="https://www.solarsystemscope.com" target="_blank"
>Solar System Scope</a
>.
</p>
<button id="clearSplash">Close</button>
</div>
</div>
</body>
<!-- modal video player -->
<script>
const open = document.getElementById("bennu-btn");
const close = document.getElementById("close");
const modal = document.getElementById("modal");
const modalVideoContainer = document.getElementById("modal-video-container");
modalVideoContainer.style.display = "none";
// Show modal
open.addEventListener("click", () => {
modalVideoContainer.style.display = "flex";
modal.classList.add("show-modal");
});
// Hide modal
close.addEventListener("click", () => {
modalVideoContainer.style.display = "none";
modal.classList.remove("show-modal")
});
// Hide modal on outside click
window.addEventListener("click", (e) =>
{
if(e.target === modal) {
modalVideoContainer.style.display = "none";
modal.classList.remove("show-modal")
}
}
);
</script>
</html>