-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ejs
169 lines (150 loc) · 5.54 KB
/
index.ejs
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="title" content="Space Climate Observatory - CNES">
<meta name="description" content="Interface to access to the Space Climate Observatory">
<meta name="creator" content="CNES">
<meta name="relation" content="https://github.com/MizarWeb/SCO">
<meta name="rights" content="GPL-3.0">
<meta name="keywords" content="CNES, cnes, SCO" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Space Climate Observatory - CNES</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:200,300,400,700" rel="stylesheet">
<style>
#loader {
position: fixed;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: column;
transition: all 0.4s ease-out;
background-color: white;
}
#loader img.sco-logo {
width: 180px;
height: 155px;
}
#loader img.cnes-logo {
width: 386px;
height: 144px;
margin-left: 7px;
}
.spinner {
margin: 15px auto;
width: 94px;
text-align: center;
}
.spinner>div {
width: 18px;
height: 18px;
background-color: #00AAFF;
border-radius: 100%;
display: inline-block;
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
animation: sk-bouncedelay 1.4s infinite ease-in-out both, fadein 1s;
}
.spinner>.loaded {
background-color: #312783;
}
.spinner .bounce1 {
-webkit-animation-delay: -0.48s;
animation-delay: -0.48s;
}
.spinner .bounce2 {
-webkit-animation-delay: -0.32s;
animation-delay: -0.32s;
}
.spinner .bounce3 {
-webkit-animation-delay: -0.16s;
animation-delay: -0.16s;
}
@-webkit-keyframes sk-bouncedelay {
0%,
80%,
100% {
-webkit-transform: scale(0)
}
40% {
-webkit-transform: scale(1.0)
}
}
@keyframes sk-bouncedelay {
0%,
80%,
100% {
-webkit-transform: scale(0);
transform: scale(0);
}
40% {
-webkit-transform: scale(1.0);
transform: scale(1.0);
}
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@-webkit-keyframes fadein {
/* sur Safari et Chrome */
from {
opacity: 0;
}
to {
opacity: 1;
}
}
</style>
</head>
<body>
<div id="app" class="mainapp">
<div id="loader">
<img class="sco-logo" src="/img/SCO_logo.png" alt="Space Climate Observatory" />
<div class="spinner">
<div class="bounce1 loaded"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
<div class="bounce4"></div>
</div>
<img class="cnes-logo" src="/img/logo_cnes.jpg" alt="Centre national d'études spaciales" />
</div>
</div>
<script type="text/javascript" data-main="/mizar/src/rconfig.js" src="/mizar/node_modules/requirejs/require.js"></script>
<!-- bundle.js is the webpack compiled javascript file, append automatically by HtmlWebpackPlugin -->
</body>
<script type="text/javascript">
// For mobile
document.addEventListener("touchmove", function (event) {
// this dirty fix prevents date inside span to be unscrollable
// 99% of our app is not concerned (otherwise there is a strange IOS behavior), but we need to let that code for DatePicker from Material UI
if (event.cancelable && event.target.tagName !== "SPAN" || event.target.innerText.length !== 4 || (event.target.innerText.indexOf('19') !== 0 && event.target.innerText.indexOf('20') !== 0 && event.target.innerText.indexOf('21') !== 0)) {
event.preventDefault();
}
}, { passive: false });
// For old browsers
var $buoop = {
// Browser supported matrix - info here https://github.com/browser-update/browser-update/wiki/Details-on-configuration
required: { e: -4, f: -5, o: -5, s: 9, c: 55, i: 9999 },
api: 2018.06,
no_permanent_hide: true,
reminder: 0,
test: false,
text: "Your browser, {brow_name}, is too old to display correctly the Space Climate Observatory application. <a{up_but}>Update</a> or <a{ignore_but}>Ignore</a>.",
text_fr: "Votre navigateur, {brow_name}, est trop ancien pour pouvoir afficher correctement l'application Space Climate Observatory. <a{up_but}>Mettre à jour</a> ou <a{ignore_but}>Ignorer</a>.",
};
function $buo_f() {
var e = document.createElement("script");
e.src = "//browser-update.org/update.min.js";
document.body.appendChild(e);
};
try { document.addEventListener("DOMContentLoaded", $buo_f, false) }
catch (e) { window.attachEvent("onload", $buo_f) }
</script>
</html>