index.html
4.41 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Welcome on Amda</title>
<link href="js/resources/css/AccueilAmda.css" rel="stylesheet" type="text/css">
<!-- Login -->
<link rel="stylesheet" type="text/css" href="js/resources/css/login.css" />
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<script type="text/javascript">
function setLoginLoader(value) {
var form = document.getElementById('Form_Login');
form.elements['username'].readOnly = value;
form.elements['password'].readOnly = value;
form.elements['login'].disabled = value;
document.getElementById("loader").style.display = value ? 'block' : 'none';
}
function checkForm(form){
if (form.elements['username'].value == "" || form.elements['password'].value == "") {
alert('Please type your username and password');
return false;
}
setLoginLoader(true);
return true;
}
window.onpageshow = function(event) {
var qs = (function(a) {
if (a == "") return {};
var b = {};
for (var i = 0; i < a.length; ++i)
{
var p=a[i].split('=', 2);
if (p.length == 1)
b[p[0]] = "";
else
b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " "));
}
return b;
})(window.location.search.substr(1).split('&'));
if (qs["error"] && qs["error"] == "1") {
alert('Cannot connect to AMDA. \n Please check your username/password');
setLoginLoader(false);
return false;
}
setLoginLoader(false);
};
function checkGuest() {
var random = Math.floor(Math.random()*10);
if ( random == 0 ) random = 1;
var answer = Math.floor(random * 2);
var input = prompt("Please enter " + random + " * 2 = ?", "");
if (input == answer) {
document.getElementById('Btn_GuestLogin').value = 'guest';
setLoginLoader(true);
return true;
}
else {
alert("Sorry " + input);
return false;
}
};
</script>
<div id="centrage">
<div id="trou">
<div id="couvercle"></div>
<div id="TousLesBoutons">
<div id="Btn_FirstVisit" onclick="location.href='help.html';"></div>
<div id="Btn_Rules" onclick="location.href='help/policy.html';"></div>
<form id="Form_Login" method="POST" action="desktop.php" onsubmit="return checkForm(this);">
<div id="loader" class="loader"></div>
<input type="text" name="username" placeholder="LOGIN" id="Btn_EnterLogin" class="PlaceHolder" />
<input type="password" name="password" placeholder="PASSWORD" id="Btn_EnterPassword" class="PlaceHolder"/>
<div id="userLogin">
<div><input id="Btn_Login" name="login" type="submit" value=""/></div>
<div id="textLogin">Login / Registered Users</div>
</div>
</form>
<a href="mailto:amda@irap.omp.eu?subject=AMDA registration" id="Btn_Register"></a>
<div id="Btn_About" onclick="location.href='help/info.html';"></div>
<div id="textAbout">AMDA Info</div>
<div id="Btn_Python" onclick="window.open('https://speasy.readthedocs.io/en/stable/')"></div>
<div id="textPython">Python Access</div>
<a href="http://www.cdpp.eu/" id="Logo_CDPP" target="_blank"></a>
<div id="PaveGuest">
<form action="desktop.php" method="POST" onsubmit="return checkGuest();">
<input id="Btn_GuestLogin" name="username" type="submit" value=""/>
<div id="TitrePaveGuest">Public Access</div>
</form>
</div>
<div id="Logos_partenaires"></div>
<div id="PaveAnnoucements">
<div id="TitrePaveAnnoucement">Announcements</div>
<div id="DateAnnoucement">03/08/2022</div>
<div id="TexteAnnoucement">AMDA DOI: https://doi.org/10.6096/2011</div>
<div id="DateAnnoucement">20/01/2022</div>
<div id="TexteAnnoucement">Solar Orbiter RPW, <br/>Solar Orbiter PAS: Version 2.0,<br/> Fix Cassini LEMMS data,<br/> Fix VEX orbits shared catalog,<br/>New frames available in framesTransformation function</div>
<div id="DateAnnoucement">28/07/2021</div>
<div id="TexteAnnoucement">New data:</br>MMS (including burst mode), <br/>VEX IMA: Version 2.0,<br/> BepiColombo Venus flybys ephemeris,<br/> PSP Venus flybys: ephemeris & data,<br/>JASON3: AMBRE</div>
<div id="DateAnnoucement">28/07/2021</div>
<div id="TexteAnnoucement">Fix remote access to CDAWeb</div>