index.html 3.29 KB
<!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>
<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><input id="Btn_Login" name="login" type="submit" value=""/></div>
</form>
<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');
       return false;
     }

     setLoginLoader(false);
     
  };
</script>
<a href="mailto:amda@irap.omp.eu?subject=AMDA registration" id="Btn_Register"></a>
<a href="mailto:amda@irap.omp.eu?subject=AMDA contact" id="Btn_Contact"></a>
<div id="Btn_About" onclick="location.href='help/info.html';"></div><div id="textAbout">AMDA Info</div>
<a href="http://www.cdpp.eu/" id="Logo_CDPP"></a>
<div id="PaveGuest">
<div id="TitrePaveGuest">Try AMDA as a guest</div>
<div id="TextePaveGuest">login: guest</div>
<div id="TextePaveGuest">password : your e-mail address</div>
</div>
<div id="Logos_partenaires"></div>

<div id="PaveAnnoucements">
<div id="TitrePaveAnnoucement">Announcements </div>
<div id="DateAnnoucement">07/06/2019</div>
<div id="TexteAnnoucement">New data: </BR>Galileo/EPD, Geotail/EPIC, Swarm</BR>Solar irradiance/TIMED/SEE</div>
<div id="TexteAnnoucement">Access to <a href="http://amda-old.cdpp.eu" target="_blank">old version</a></div>
</div>

</div><!--TousLesBoutons-->
</div><!--trou-->
</div><!--centrage-->
</body>
</html>