-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlancements.html
More file actions
329 lines (258 loc) · 9.3 KB
/
lancements.html
File metadata and controls
329 lines (258 loc) · 9.3 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
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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Infos de l'API Lancements spatiaux à venir - infos et images" />
<link rel="stylesheet" href="w3.css">
<title>lancements spatiaux </title>
<style>
.map-image {
width: 300px;
height: 250px;
object-fit: cover;
/* Maintain aspect ratio and cover the container */
}
html,
body {
margin: 0px;
width: 100%;
height: 100%;
/* background-image: url("starryNight2.jpeg");
background-repeat: no-repeat;
background-position: right top;
background-attachment: fixed; */
}
.test {
font-family: 'Orbitron', sans-serif;
font-size: xx-large;
}
.test2 {
font-family: 'Orbitron', sans-serif;
font-size: x-large;
}
.test3 {
font-family: 'Orbitron', sans-serif;
font-size: 20px;
}
.effect {
fill: none;
stroke: rgb(1, 7, 8);
stroke-width: .5px;
stroke-linejoin: round;
stroke-dasharray: 90% 10%;
stroke-width: 8px;
stroke-dashoffset: 0%;
animation: stroke-offset 6.5s linear infinite;
}
@keyframes stroke-offset {
100% {
stroke-dashoffset: -35%;
}
}
}
/* Demo Styles */
.z-text {
animation: wobble 10s ease-in-out infinite;
transform: rotateX(30deg) rotateY(-30deg);
}
.z-layer {
filter: brightness(0.7);
}
.z-layer:first-child {
filter: brightness(1);
}
.z-layer:not(:first-child) {
filter: brightness(0.7);
}
@keyframes wobble {
0%,
100% {
transform: rotate3d(-1, 1, 0, 30deg);
}
25% {
transform: rotate3d(1, 1, 0, 30deg);
}
50% {
transform: rotate3d(1, -1, 0, 30deg);
}
75% {
transform: rotate3d(-1, -1, 0, 30deg);
}
}
.astronaut-image {
width: 200px;
height: 280px;
object-fit: contain;
/* Maintain aspect ratio and cover the container */
margin: 0 auto;
/* Center the image horizontally */
}
.logo-image {
width: 25%;
height: 25%;
object-fit: cover;
/* Maintain aspect ratio and cover the container */
margin: 0 auto;
/* Center the image horizontally */
}
h2 {
font-family: 'Orbitron', sans-serif;
font-size: x-large;
}
.trans {
-moz-opacity: 0.9;
-khtml-opacity: 0.9;
opacity: 0.9;
}
.artout {
outline: 8px ridge rgba(161, 134, 238, 0.6);
border-radius: 2rem;
margin: 0px;
}
.small-button {
width: 50px;
height: 20px;
font-size: 16px;
}
.typing-demo {
width: 15ch;
animation: typing 3s steps(22), blink .5s step-end infinite alternate;
white-space: nowrap;
overflow: hidden;
border-right: 3px solid;
font-family: 'Orbitron', sans-serif;
font-size: medium;
color: black;
}
@keyframes typing {
from {
width: 0
}
}
@keyframes blink {
50% {
border-color: transparent
}
}
#myBtn {
display: none;
position: fixed;
bottom: 15px;
right: 25px;
z-index: 99;
font-size: 20px;
border: none;
outline: none;
background-color: transparent;
color: rgb(14, 14, 14);
cursor: pointer;
padding: 10px;
border-radius: 4px;
}
#myBtn:hover {
background-color: #555;
}
#w3-menu-container {
position: fixed;
top: 0;
width: 100%;
background-color: #333;
z-index: 1000;
}
</style>
<link rel="stylesheet" href="./space.css" type="text/css">
<link rel="stylesheet" href="./w3.css" type="text/css">
<!-- Use any element to open the sidenav -->
<link rel="stylesheet"
href="jquery.vidbacking.css" type="text/css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>
// Get the button
let mybutton = document.getElementById("myBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
</head>
<body>
<button onclick="topFunction()" id="myBtn" title="Go to top" class="fa fa-chevron-circle-up"></button>
<div id="w3-menu-container" class="w3-bar w3-center w3-transparent ">
<!-- Your W3.CSS sidenav goes here -->
<a href="index.html" class="w3-button"><img src="iss4.png" height="50px" width="40px"></img></a>
<a href="space-astro.html" class="w3-button"><img src="cosmo.png" height="50px" width="40px"></img></span></a>
<a href="lancements.html" class="w3-button"><img src="fusée.png" height="50px" width="40px"></img></a>
<a href="exo-arecibo.html" class="w3-button"><img src="saturne.png" height="50px" width="40px"></img></a>
<a href="apod.html" class="w3-button"><img src="telescope.png" height="50px" width="40px"></img></a>
</div>
<div class="gtranslate_wrapper"></div>
<script>window.gtranslateSettings = { "default_language": "en", "native_language_names": true, "wrapper_selector": ".gtranslate_wrapper", "flag_size": 16, "switcher_horizontal_position": "left", "switcher_vertical_position": "bottom", "flag_style": "3d" }</script>
<script src="https://cdn.gtranslate.net/widgets/latest/dwf.js" defer></script>
<div id="main">
<video poster="starryNight2.jpeg" autoplay muted loop class="vidbacking">
</video>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="jquery.vidbacking.js"
type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('body').vidbacking({
'masked': false
});
});
</script>
<!-- Start Content -->
<div class="w3-content w3-mobile w3-row w3-auto">
<br><p class=" effect w3-large w3-center w3-animate-zoom w3-text-white typing-demo w3-mobile">
Lancements en cours</p>
<div id="launch"></div>
</div>
<script>
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://ll.thespacedevs.com/2.2.0/launch/upcoming/', true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
var data = JSON.parse(xhr.responseText);
let count = data.results.length;
var html = '<ul>';
for (var i = 0; i < data.results.length; i++) {
html += '<br>';
html += '<div class="trans w3-container w3-mobile w3-sand w3-animate-zoom artout ">';
html += '<p><strong class="test3 w3-center">Lanceur : </strong><a class="w3-tag w3-round-xlarge">' + data.results[i].name + '</a></p>';
html += '<p><strong class="test3">Statut : </strong><br><a class="w3-text-red w3-animate-fading w3-center"><b>' + data.results[i].status.name + '<b></a></p>';
html += '<p><strong class="test3">Date : </strong>' + data.results[i].net + '</p>';
html += '<p><strong class="test3">Opérateur : </strong><b>' + data.results[i].launch_service_provider.name + '</b></p>';
html += '<p><strong class="test3">Objectif : </strong>' + data.results[i].mission.type + '</p>';
html += '<p><strong class="test3">Mission : </strong><a>' + data.results[i].mission.description + '</a></p>';
html += '<p><strong class="test3">Orbite de mission : </strong>' + data.results[i].mission.orbit.name + '</p>';
html += '<p><strong class="test3">Pad de lancement : </strong>' + data.results[i].pad.location.name + '</p>';
html += '<p><strong class="test3">Image : </strong><img src="' + data.results[i].image + '" width="80%" height="80%"></p>';
html += '<p><strong class="test3">Carte : </strong><a href="' + data.results[i].pad.map_url + '" target="_blank"> ===> </a></p>';
html += '<p><strong class="test3">Live : </strong>' + data.results[i].webcast_live + '</p>';
html += '</div>';
}
html += '</ul>';
document.getElementById("launch").innerHTML = html;
}
};
xhr.send();
</script>
</div>
<script>
includeHTML();
</script>
</body>
</html>