forked from Luc16/SpaceVisionaries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (133 loc) · 3.11 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<title>Traveling the Orbits</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@700&display=swap');
body { margin: 0; }
p {
font-family: 'Space Mono', monospace;
}
#gui_container{
position: absolute;
top: 10%;
right: 5%;
scale: 130%;
z-index: 100;
}
#gui{
z-index: 100;
}
.nav {
font-family: 'Space Mono', monospace;;
width: 100%;
height: 65px;
position: fixed;
line-height: 65px;
text-align: center;
z-index: 100000;
}
.nav div.logo {
float: left;
width: auto;
height: auto;
padding-left: 3rem;
}
.nav div.logo a {
text-decoration: none;
color: #fff;
font-size: 1.5rem;
}
.nav div.logo a:hover {
color: #a9a9a9;
}
#gameCanvas {
position: relative;
}
#insideText {
position: absolute;
left: 80%;
top: 60%;
color: #fff;
font-size: xx-large;
}
.overlay {
box-shadow: 0px 0px 1px 100vmax rgba(0,0,0,0.5);
color: pink;
}
.description {
width: 25%;
margin: 2%;
margin-top: 5%;
padding: 5px;
background-color: rgba(0, 0, 0, 0.6);
color: whitesmoke;
position: absolute;
font-family: 'Space Mono', monospace;
text-align: justify;
}
#div2 {
padding-left: 6%;
padding-right: 6%;
}
#title_box {
padding-left: 6%;
padding-right: 6%;
display: flex;
justify-content: space-between;
}
.close {
right: 32px;
top: 0px;
width: 32px;
height: 32px;
opacity: 0.3;
}
.close:hover {
opacity: 1;
}
.close:before, .close:after {
left: 15px;
content: ' ';
height: 33px;
width: 2px;
background-color: #333;
}
.close:before {
transform: rotate(45deg);
}
.close:after {
transform: rotate(-45deg);
}
</style>
</head>
<body>
<nav class="nav">
<div class="container">
<div class="logo">
<a href="#" onclick='document.getElementById("desc_box").hidden = ""'>Traveling the Orbits</a>
</div>
</div>
</nav>
<div id="gui_container"></div>
<div id='gameCanvas'>
<aside class="description" id="desc_box">
<div id="title_box">
<h2> DESCRIPTION </h2>
<button class="close" onclick='this.parentNode.parentNode.hidden = "hidden"; return false;' >X</button>
</div>
<div id="div2">
Welcome to Traveling The Orbits! To start playing with the simulation, click on Galactic Travel, choose a preset (GA stands for Gravity Assist) or setup the satellite's initial
parameters and then click launch. You can click and drag to adjust the camera along the focused element and use the mouse wheel to adjust zoom.
During Galactic Travel, you can switch between focusing on the satellite or the Earth. Finally, You are able to change the parameters of time passing:
choose a different time point or rather the time's passing velocity.
<br>
<br>
You're all set, happy traveling!
</div>
</aside>
</div>
<script type="module" src="./main.js"></script>
</body>
</html>