Commit 5ad4e0429393e9696c4c2969e197493995aca2b5
Exists in
master
and in
95 other branches
Merge branch 'master' into new-save-plot-request
Showing
10 changed files
with
366 additions
and
53 deletions
Show diff stats
help/ncTimeFormat
1 | 1 | ||
2 | -<h2>netCDF Time Format</h2><br/> | ||
3 | - | ||
4 | - AMDA accepts the following time formats in netCDF files: <br/> | ||
5 | - | 2 | +<h3>netCDF File Format</h3> |
3 | + | ||
4 | +netCDF3<br/> | ||
5 | + | ||
6 | +<h3>netCDF Time Format</h3> | ||
7 | + AMDA accepts the following time formats in netCDF files: | ||
6 | <ul> | 8 | <ul> |
7 | <li> double (seconds from 01/01/1970) | 9 | <li> double (seconds from 01/01/1970) |
8 | <li> string ISO (YYYY-MM-DDTHH:MM:SS.MSK) | 10 | <li> string ISO (YYYY-MM-DDTHH:MM:SS.MSK) |
index.html
@@ -11,22 +11,6 @@ | @@ -11,22 +11,6 @@ | ||
11 | </head> | 11 | </head> |
12 | 12 | ||
13 | <body> | 13 | <body> |
14 | -<div id="centrage"> | ||
15 | - | ||
16 | - | ||
17 | -<div id="trou"> | ||
18 | - | ||
19 | -<div id="couvercle"></div> | ||
20 | - | ||
21 | -<div id="TousLesBoutons"> | ||
22 | -<div id="Btn_FirstVisit" onclick="location.href='help.html';"></div> | ||
23 | -<div id="Btn_Rules" onclick="location.href='help/policy.html';"></div> | ||
24 | -<form id="Form_Login" method="POST" action="desktop.php" onsubmit="return checkForm(this);"> | ||
25 | - <div id="loader" class="loader"></div> | ||
26 | - <input type="text" name="username" placeholder="LOGIN" id="Btn_EnterLogin" class="PlaceHolder" /> | ||
27 | - <input type="password" name="password" placeholder="PASSWORD" id="Btn_EnterPassword" class="PlaceHolder"/> | ||
28 | - <div><input id="Btn_Login" name="login" type="submit" value=""/></div> | ||
29 | -</form> | ||
30 | <script type="text/javascript"> | 14 | <script type="text/javascript"> |
31 | function setLoginLoader(value) { | 15 | function setLoginLoader(value) { |
32 | var form = document.getElementById('Form_Login'); | 16 | var form = document.getElementById('Form_Login'); |
@@ -35,10 +19,8 @@ | @@ -35,10 +19,8 @@ | ||
35 | form.elements['login'].disabled = value; | 19 | form.elements['login'].disabled = value; |
36 | document.getElementById("loader").style.display = value ? 'block' : 'none'; | 20 | document.getElementById("loader").style.display = value ? 'block' : 'none'; |
37 | } | 21 | } |
38 | - | ||
39 | 22 | ||
40 | - function checkForm(form) | ||
41 | - { | 23 | + function checkForm(form){ |
42 | if (form.elements['username'].value == "" || form.elements['password'].value == "") { | 24 | if (form.elements['username'].value == "" || form.elements['password'].value == "") { |
43 | alert('Please type your username and password'); | 25 | alert('Please type your username and password'); |
44 | return false; | 26 | return false; |
@@ -46,7 +28,7 @@ | @@ -46,7 +28,7 @@ | ||
46 | setLoginLoader(true); | 28 | setLoginLoader(true); |
47 | return true; | 29 | return true; |
48 | } | 30 | } |
49 | - | 31 | + |
50 | window.onpageshow = function(event) { | 32 | window.onpageshow = function(event) { |
51 | var qs = (function(a) { | 33 | var qs = (function(a) { |
52 | if (a == "") return {}; | 34 | if (a == "") return {}; |
@@ -70,29 +52,63 @@ | @@ -70,29 +52,63 @@ | ||
70 | 52 | ||
71 | setLoginLoader(false); | 53 | setLoginLoader(false); |
72 | }; | 54 | }; |
55 | + | ||
56 | + function checkGuest() { | ||
57 | + var random = Math.floor(Math.random()*10); | ||
58 | + if ( random == 0 ) random = 1; | ||
59 | + var answer = Math.floor(random * 2); | ||
60 | + var input = prompt("Please enter " + random + " * 2 = ?", ""); | ||
61 | + | ||
62 | + if (input == answer) { | ||
63 | + document.getElementById('Btn_GuestLogin').value = 'guest'; | ||
64 | + setLoginLoader(true); | ||
65 | + return true; | ||
66 | + } | ||
67 | + else { | ||
68 | + alert("Sorry " + input); | ||
69 | + return false; | ||
70 | + } | ||
71 | + }; | ||
73 | </script> | 72 | </script> |
73 | +<div id="centrage"> | ||
74 | + | ||
75 | +<div id="trou"> | ||
76 | +<div id="couvercle"></div> | ||
77 | + | ||
78 | +<div id="TousLesBoutons"> | ||
79 | +<div id="Btn_FirstVisit" onclick="location.href='help.html';"></div> | ||
80 | +<div id="Btn_Rules" onclick="location.href='help/policy.html';"></div> | ||
81 | +<form id="Form_Login" method="POST" action="desktop.php" onsubmit="return checkForm(this);"> | ||
82 | + <div id="loader" class="loader"></div> | ||
83 | + <input type="text" name="username" placeholder="LOGIN" id="Btn_EnterLogin" class="PlaceHolder" /> | ||
84 | + <input type="password" name="password" placeholder="PASSWORD" id="Btn_EnterPassword" class="PlaceHolder"/> | ||
85 | + <div id="userLogin"> | ||
86 | + <div><input id="Btn_Login" name="login" type="submit" value=""/></div> | ||
87 | + <div id="textLogin">Login / Registered Users</div> | ||
88 | + </div> | ||
89 | +</form> | ||
74 | <a href="mailto:amda@irap.omp.eu?subject=AMDA registration" id="Btn_Register"></a> | 90 | <a href="mailto:amda@irap.omp.eu?subject=AMDA registration" id="Btn_Register"></a> |
75 | <a href="mailto:amda@irap.omp.eu?subject=AMDA contact" id="Btn_Contact"></a> | 91 | <a href="mailto:amda@irap.omp.eu?subject=AMDA contact" id="Btn_Contact"></a> |
76 | -<div id="Btn_About" onclick="location.href='help/info.html';"></div><div id="textAbout">AMDA Info</div> | 92 | +<div id="Btn_About" onclick="location.href='help/info.html';"></div> |
93 | +<div id="textAbout">AMDA Info</div> | ||
94 | + | ||
77 | <a href="http://www.cdpp.eu/" id="Logo_CDPP"></a> | 95 | <a href="http://www.cdpp.eu/" id="Logo_CDPP"></a> |
78 | <div id="PaveGuest"> | 96 | <div id="PaveGuest"> |
79 | -<div id="TitrePaveGuest">Try AMDA as a guest</div> | ||
80 | -<div id="TextePaveGuest">login: guest</div> | ||
81 | -<div id="TextePaveGuest">password : your e-mail address</div> | 97 | + <form action="desktop.php" method="POST" onsubmit="return checkGuest();"> |
98 | + <input id="Btn_GuestLogin" name="username" type="submit" value=""/> | ||
99 | + <div id="TitrePaveGuest">Public Access</div> | ||
100 | + </form> | ||
82 | </div> | 101 | </div> |
102 | + | ||
83 | <div id="Logos_partenaires"></div> | 103 | <div id="Logos_partenaires"></div> |
84 | 104 | ||
85 | <div id="PaveAnnoucements"> | 105 | <div id="PaveAnnoucements"> |
86 | -<div id="TitrePaveAnnoucement">Announcements </div> | ||
87 | -<div id="DateAnnoucement">20/01/2020</div> | ||
88 | -<div id="TexteAnnoucement">New data: PHOBOS 2,</BR>Solar Wind at BepiColombo in cruise phase (Tao model)</div> | ||
89 | -<div id="DateAnnoucement">01/10/2019</div> | ||
90 | -<div id="TexteAnnoucement">New data: </BR>Rosetta/LAP,</BR> MESSENGER/FIPS,</BR> MESSENGER/EPS,</BR>Earth Moon/Ephemeris,</BR> Cassini/MAG cruise</div> | ||
91 | -<div id="TexteAnnoucement">Access to <a href="http://amda-old.cdpp.eu" target="_blank">old version</a></div> | 106 | +<div id="TitrePaveAnnoucement">Announcements</div> |
107 | +<div id="DateAnnoucement">03/06/2020</div> | ||
108 | +<div id="TexteAnnoucement">New data : Parker Solar Probe : SWEAP SPANe</div> | ||
109 | +<div id="DateAnnoucement">01/06/2020</div> | ||
110 | +<div id="TexteAnnoucement">JUNO FGM : perijove data is added</div> | ||
111 | +<div id="DateAnnoucement">14/05/2020</div> | ||
112 | +<div id="TexteAnnoucement">Solar wind ballistic delays for all planets, BepiColombo, Solar Orbiter</div> | ||
113 | +<div id="TexteAnnoucement"><b>New data:</b> <BR/>Stereo HET, SIT</BR>Solar Wind Propagation (TAO) : PSP, SolO</div> | ||
92 | </div> | 114 | </div> |
93 | - | ||
94 | -</div><!--TousLesBoutons--> | ||
95 | -</div><!--trou--> | ||
96 | -</div><!--centrage--> | ||
97 | -</body> | ||
98 | -</html> |
js/app/views/IntervalUI.js
@@ -123,6 +123,9 @@ Ext.define('amdaUI.IntervalUI', { | @@ -123,6 +123,9 @@ Ext.define('amdaUI.IntervalUI', { | ||
123 | var stop = this.getStopTime(); | 123 | var stop = this.getStopTime(); |
124 | // if duration computable | 124 | // if duration computable |
125 | if (stop != null && start != null) { | 125 | if (stop != null && start != null) { |
126 | + if ( stop <= start ) { | ||
127 | + form.findField('stopDate').markInvalid('Stop Time must be after Start Time'); | ||
128 | + } | ||
126 | // compute offset | 129 | // compute offset |
127 | var zoneOffset = stop.getTimezoneOffset() - start.getTimezoneOffset(); | 130 | var zoneOffset = stop.getTimezoneOffset() - start.getTimezoneOffset(); |
128 | // compute duration | 131 | // compute duration |
js/resources/css/AccueilAmda.css
1 | -@charset "UTF-8"; @import url("../fonts/stylesheet.css"); /* CSS Document */ body{ text-align: left; background-color: #FFF; } /*โขโขโขโขโขโขโขโขโขโขโขโขโขโข couvercle et trou โขโขโขโขโขโขโขโขโขโขโขโข*/ #trou{ position: relative; margin-right: 50%; margin-left: 50%; left: -1050px; top: -10px; width: 1920px; height: 1170px; z-index: 1; background-attachment: scroll; background-image: url(../images/trou.jpg); background-repeat: no-repeat; } #couvercle{ position: relative; margin-right: auto; margin-left: auto; left: -276px; top: -130px; width: 676px; height: 676px; z-index: 1; background: url(../images/Couvercle_complet.png) 0 0 no-repeat scroll; background-repeat: no-repeat; background-image: url(../images/Couvercle_complet.png); -webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; } #couvercle:hover{ left: -400px; top: -100px; /* -webkit-transform: rotate(-5deg)*/ } /*โขโขโขโขโขโขโขโขโขโขโขโขโขโข boutons โขโขโขโขโขโขโขโขโขโขโขโข*/ #TousLesBoutons{ left: 937px; top: -608px; z-index: 6; position: relative; width: 350px; height: 500px; } #Btn_About, #Btn_FirstVisit, #Btn_Rules, #Btn_Login, #Btn_Register, #Btn_Contact{ background: url(../images/bouton_off.png) 0 0 no-repeat scroll; z-index: 6; position: relative; width: 40px; height: 40px; } #Btn_About:hover, #Btn_FirstVisit:hover, #Btn_Rules:hover, #Btn_Login:hover, #Btn_Register:hover, #Btn_Contact:hover{ background: url(../images/bouton_over.png) 0 0 no-repeat scroll; } #Btn_EnterLogin, #Btn_EnterPassword{ left: 90px; z-index: 6; position: relative; width: 230px; height: 25px; background-color: rgba(0, 0, 0, 1); border-radius:5px 0px 10px 5px; padding: 1px 0px 0px 15px; border:none; } #Btn_EnterLogin:hover, #Btn_EnterPassword:hover{ background-color: rgba(66, 66, 66, 1); } #Btn_EnterLogin, #Btn_EnterPassword{ font-family: orbitronbold; font-size: 10px; text-align: left; } .PlaceHolder { color: #0CF; } /*โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข positionnement des boutons โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข*/ #Btn_FirstVisit{ left: 83px; top: 0px; } #Btn_Rules{ left: 92px; top: 13px; } #Btn_EnterLogin{ top: 35px; } #Btn_EnterPassword{ top: 45px; } #Btn_Login{ left: 83px; top: 75px; border: none; } #Btn_Register{ left: 62px; top: 95px; display: block; } #Btn_Contact{ left: 30px; top: 112px; display: block; } #Btn_About{ left: -10px; top: 125px; } #Logo_CDPP{ width: 209px; height: 144px; display: block; top: -70px; left:400px; z-index: 50; position: absolute; background: url(../images/Logo_CDPP_off.png) 0 0 no-repeat scroll; } #Logo_CDPP:hover{ background: url(../images/Logo_CDPP_over.png) 0 0 no-repeat scroll; z-index: 100; } #Logos_partenaires{ margin-right: auto; margin-left: auto; left:15%; right:10%; width: 1500px; height: 42px; bottom: 50px; z-index: 50; position: fixed; background: url(../images/LogosPartenaires.png) 0px 0px no-repeat scroll; } #PaveGuest{ font-family: orbitronbold; font-size: 15px; color: rgba(0, 0, 42, 0.3); left: 350px; top: -178px; width: 300px; height: 30px; z-index: 100; padding:20px 20px 20px 20px; position: relative; background-color: rgba(255, 255, 255, 0); border-radius:0px 30px 0px 30px; } #TitrePaveGuest{ font-family: orbitronlight; font-size: 17px; color: rgba(0, 0, 0, 0.3); background-color: rgba(255, 100, 255, 0); margin-top:20px; } #TextePaveGuest{ font-family: orbitronlight; font-size: 14px; color: rgba(0, 0, 0, 0.5); background-color: rgba(255, 255, 255, 0.2); padding:5px 10px 2px 5px; border-radius:0px 0px 20px 0px; } /* โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข ANNOUCEMENTSโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข*/ #textAbout { z-index: 6; position: relative; left: 40px; top: 100px; font-family: orbitronlight; font-size: 14px; color: rgba(255, 255, 255, 0.5); font-weight: bold; } /* โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข ANNOUCEMENTSโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข*/ #PaveAnnoucements{ font-family: orbitronbold; font-size: 30px; color: rgba(0, 0, 42, 0.3); left: 300px; top: -100px; width: 300px; height: 300px; z-index: 100; padding:20px 20px 20px 20px; position: relative; background-color: rgba(255, 255, 255, 0); border-radius:0px 30px 0px 30px; } #TitrePaveAnnoucement{ font-family: orbitronlight; font-size: 35px; color: rgba(0, 0, 0, 0.2); background-color: rgba(255, 100, 255, 0); margin-top:20px; } #DateAnnoucement{ font-family: orbitronbold; font-size: 12px; color: rgba(163, 224, 255, 1); background-color: rgba(0, 0, 0, 1); padding:4px 5px 2px 5px; border-radius:3px 3px 3px 3px; width: 100px; } #DateAnnoucementRed{ font-family: orbitronbold; font-size: 12px; color: #F00; background-color: rgba(0, 0, 0, 1); padding:4px 5px 2px 5px; border-radius:3px 3px 3px 3px; width: 100px; } #TexteAnnoucement{ font-family: orbitronlight; font-size: 14px; color: rgba(0, 0, 0, 0.5); background-color: rgba(255, 255, 255, 0.2); padding:5px 10px 5px 10px; border-top:1px solid rgba(255, 255, 255, 1); border-radius:0px 0px 20px 0px; } #TexteAnnoucementRed{ font-family: orbitronbold; font-size: 14px; color: #F00; text-decoration: blink; background-color: rgba(255, 255, 255, 0.2); padding:5px 10px 5px 10px; border-top:1px solid rgba(255, 255, 255, 1); border-radius:0px 0px 20px 0px; } | ||
2 | \ No newline at end of file | 1 | \ No newline at end of file |
2 | +@charset "UTF-8"; | ||
3 | +@import url("../fonts/stylesheet.css"); | ||
4 | +/* CSS Document */ | ||
5 | +body{ | ||
6 | + text-align: left; | ||
7 | + background-color: #FFF; | ||
8 | +} | ||
9 | +/*โขโขโขโขโขโขโขโขโขโขโขโขโขโข couvercle et trou โขโขโขโขโขโขโขโขโขโขโขโข*/ | ||
10 | + | ||
11 | +#trou{ | ||
12 | + position: relative; | ||
13 | + margin-right: 50%; | ||
14 | + margin-left: 50%; | ||
15 | + left: -1050px; | ||
16 | + top: -10px; | ||
17 | + width: 1920px; | ||
18 | + height: 1170px; | ||
19 | + z-index: 1; | ||
20 | + background-attachment: scroll; | ||
21 | + background-image: url(../images/trou.jpg); | ||
22 | + background-repeat: no-repeat; | ||
23 | +} | ||
24 | + | ||
25 | + | ||
26 | +#couvercle{ | ||
27 | + position: relative; | ||
28 | + margin-right: auto; | ||
29 | + margin-left: auto; | ||
30 | + left: -276px; | ||
31 | + top: -130px; | ||
32 | + width: 676px; | ||
33 | + height: 676px; | ||
34 | + z-index: 1; | ||
35 | + background: url(../images/Couvercle_complet.png) 0 0 no-repeat scroll; | ||
36 | + background-repeat: no-repeat; | ||
37 | + background-image: url(../images/Couvercle_complet.png); | ||
38 | + -webkit-transition: all 0.5s ease-in-out; | ||
39 | + -moz-transition: all 0.5s ease-in-out; | ||
40 | + } | ||
41 | + | ||
42 | +#couvercle:hover{ | ||
43 | + left: -400px; | ||
44 | + top: -100px; | ||
45 | + } | ||
46 | +/*โขโขโขโขโขโขโขโขโขโขโขโขโขโข boutons โขโขโขโขโขโขโขโขโขโขโขโข*/ | ||
47 | + | ||
48 | +#TousLesBoutons{ | ||
49 | + left: 937px; | ||
50 | + top: -608px; | ||
51 | + z-index: 6; | ||
52 | + position: relative; | ||
53 | + width: 350px; | ||
54 | + height: 500px; | ||
55 | + } | ||
56 | + | ||
57 | +#Btn_GuestLogin, #Btn_Login{ | ||
58 | + background: url(../images/boutonLogin_off.png) 0 0 no-repeat scroll; | ||
59 | + z-index: 6; | ||
60 | + position: relative; | ||
61 | + width: 50px; | ||
62 | + height: 50px; | ||
63 | + } | ||
64 | + | ||
65 | +#Btn_GuestLogin:hover, #Btn_Login:hover { | ||
66 | + background: url(../images/boutonLogin_over.png) 0 0 no-repeat scroll; | ||
67 | + } | ||
68 | + | ||
69 | +#Btn_About, #Btn_FirstVisit, #Btn_Rules, #Btn_Register, #Btn_Contact{ | ||
70 | + background: url(../images/bouton_off.png) 0 0 no-repeat scroll; | ||
71 | + z-index: 6; | ||
72 | + position: relative; | ||
73 | + width: 40px; | ||
74 | + height: 40px; | ||
75 | + } | ||
76 | + | ||
77 | +#Btn_About:hover, #Btn_FirstVisit:hover, #Btn_Rules:hover, #Btn_Register:hover, #Btn_Contact:hover{ | ||
78 | + background: url(../images/bouton_over.png) 0 0 no-repeat scroll; | ||
79 | + } | ||
80 | + | ||
81 | +#Btn_EnterLogin, #Btn_EnterPassword{ | ||
82 | + left: 90px; | ||
83 | + z-index: 6; | ||
84 | + position: relative; | ||
85 | + width: 230px; | ||
86 | + height: 25px; | ||
87 | + background-color: rgba(0, 0, 0, 1); | ||
88 | + border-radius:5px 0px 10px 5px; | ||
89 | + padding: 1px 0px 0px 15px; | ||
90 | + border:none; | ||
91 | + } | ||
92 | + | ||
93 | +#Btn_EnterLogin:hover, #Btn_EnterPassword:hover{ | ||
94 | + background-color: rgba(66, 66, 66, 1); | ||
95 | + } | ||
96 | + | ||
97 | +#Btn_EnterLogin, #Btn_EnterPassword{ | ||
98 | + font-family: orbitronbold; | ||
99 | + font-size: 10px; | ||
100 | + text-align: left; | ||
101 | + } | ||
102 | + | ||
103 | +.PlaceHolder { | ||
104 | + color: #0CF; | ||
105 | + } | ||
106 | + | ||
107 | +/*โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข positionnement des boutons โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข*/ | ||
108 | + | ||
109 | +#Btn_FirstVisit{ | ||
110 | + left: 83px; | ||
111 | + top: 0px; | ||
112 | + } | ||
113 | + | ||
114 | +#Btn_Rules{ | ||
115 | + left: 92px; | ||
116 | + top: 13px; | ||
117 | + } | ||
118 | + | ||
119 | +#Btn_EnterLogin{ | ||
120 | + top: 35px; | ||
121 | + } | ||
122 | + | ||
123 | +#Btn_EnterPassword{ | ||
124 | + top: 45px; | ||
125 | + } | ||
126 | + | ||
127 | +#Btn_Register{ | ||
128 | + left: 65px; | ||
129 | + top: 80px; | ||
130 | + display: block; | ||
131 | + } | ||
132 | + | ||
133 | +#Btn_Contact{ | ||
134 | + left: 35px; | ||
135 | + top: 93px; | ||
136 | + display: block; | ||
137 | + } | ||
138 | + | ||
139 | +#Btn_About{ | ||
140 | + left: 0px; | ||
141 | + top: 100px; | ||
142 | + } | ||
143 | + | ||
144 | +#Logo_CDPP{ | ||
145 | + width: 209px; | ||
146 | + height: 144px; | ||
147 | + display: block; | ||
148 | + top: -70px; | ||
149 | + left:400px; | ||
150 | + z-index: 50; | ||
151 | + position: absolute; | ||
152 | + background: url(../images/Logo_CDPP_off.png) 0 0 no-repeat scroll; | ||
153 | + } | ||
154 | +#Logo_CDPP:hover{ | ||
155 | + background: url(../images/Logo_CDPP_over.png) 0 0 no-repeat scroll; | ||
156 | + z-index: 100; | ||
157 | +} | ||
158 | + | ||
159 | +#Logos_partenaires{ | ||
160 | + margin-right: auto; | ||
161 | + margin-left: auto; | ||
162 | + left:15%; | ||
163 | + right:10%; | ||
164 | + width: 1500px; | ||
165 | + height: 42px; | ||
166 | + bottom: 50px; | ||
167 | + z-index: 50; | ||
168 | + position: fixed; | ||
169 | + background: url(../images/LogosPartenaires.png) 0px 0px no-repeat scroll; | ||
170 | +} | ||
171 | +/*------------------ Logins -----------------*/ | ||
172 | +#PaveGuest{ | ||
173 | + left: 450px; | ||
174 | + top: -118px; | ||
175 | + position: relative; | ||
176 | + width: 180px; | ||
177 | + height: 50px; | ||
178 | + background-color: rgba(255, 255, 255, 0.2); | ||
179 | + border-radius:10px 10px 10px 10px; | ||
180 | + /* border: 3px solid rgba(255, 255, 255, 0.7); */ | ||
181 | +} | ||
182 | +#Btn_GuestLogin{ | ||
183 | + left: 0px; | ||
184 | + top: 0px; | ||
185 | + border: none; | ||
186 | + color: rgba(255, 255, 255, 0); | ||
187 | + } | ||
188 | + | ||
189 | +#TitrePaveGuest{ | ||
190 | + position: relative; | ||
191 | + left: 50px; | ||
192 | + top: -30px; | ||
193 | + font-family: orbitronbold; | ||
194 | + font-size: 16px; | ||
195 | + color: rgba(0, 107, 179, 0.7); | ||
196 | + font-weight: bold; | ||
197 | +} | ||
198 | +#userLogin { | ||
199 | + position: relative; | ||
200 | + left: 80px; | ||
201 | + top: 68px; | ||
202 | + width:300px; | ||
203 | + height: 50px; | ||
204 | + color: rgba(0, 107, 179, 0.9); | ||
205 | + background-color: rgba(255, 255, 255, 0.2); | ||
206 | + border-radius:10px 10px 10px 10px; | ||
207 | +} | ||
208 | +#Btn_Login{ | ||
209 | + position: relative; | ||
210 | + left: 0px; | ||
211 | + top: 0px; | ||
212 | + border: none; | ||
213 | + } | ||
214 | +#textLogin { | ||
215 | + position: relative; | ||
216 | + left: 50px; | ||
217 | + top: -30px; | ||
218 | + font-family: orbitronbold; | ||
219 | + font-size: 16px; | ||
220 | + color: rgba(0, 107, 179, 0.9); | ||
221 | + font-weight: bold; | ||
222 | +} | ||
223 | +/* โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข ANNOUCEMENTSโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข*/ | ||
224 | +#textAbout { | ||
225 | + z-index: 6; | ||
226 | + position: relative; | ||
227 | + left: 45px; | ||
228 | + top: 90px; | ||
229 | + font-family: orbitronlight; | ||
230 | + font-size: 14px; | ||
231 | + color: rgba(255, 255, 255, 0.5); | ||
232 | + font-weight: bold; | ||
233 | +} | ||
234 | +/* โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข ANNOUCEMENTSโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข*/ | ||
235 | + | ||
236 | +#PaveAnnoucements{ | ||
237 | + font-family: orbitronbold; | ||
238 | + font-size: 30px; | ||
239 | + color: rgba(0, 0, 42, 0.3); | ||
240 | + left: 300px; | ||
241 | + top: -100px; | ||
242 | + width: 300px; | ||
243 | + height: 300px; | ||
244 | + z-index: 100; | ||
245 | + padding:20px 20px 20px 20px; | ||
246 | + position: relative; | ||
247 | + background-color: rgba(255, 255, 255, 0); | ||
248 | + border-radius:0px 30px 0px 30px; | ||
249 | +} | ||
250 | +#TitrePaveAnnoucement{ | ||
251 | + font-family: orbitronlight; | ||
252 | + font-size: 35px; | ||
253 | + color: rgba(0, 0, 0, 0.2); | ||
254 | + background-color: rgba(255, 100, 255, 0); | ||
255 | + margin-top:20px; | ||
256 | +} | ||
257 | +#DateAnnoucement{ | ||
258 | + font-family: orbitronbold; | ||
259 | + font-size: 12px; | ||
260 | + color: rgba(163, 224, 255, 1); | ||
261 | + background-color: rgba(0, 0, 0, 1); | ||
262 | + padding:4px 5px 2px 5px; | ||
263 | + border-radius:3px 3px 3px 3px; | ||
264 | + width: 100px; | ||
265 | +} | ||
266 | +#DateAnnoucementRed{ | ||
267 | + font-family: orbitronbold; | ||
268 | + font-size: 12px; | ||
269 | + color: #F00; | ||
270 | + background-color: rgba(0, 0, 0, 1); | ||
271 | + padding:4px 5px 2px 5px; | ||
272 | + border-radius:3px 3px 3px 3px; | ||
273 | + width: 100px; | ||
274 | +} | ||
275 | +#TexteAnnoucement{ | ||
276 | + font-family: orbitronlight; | ||
277 | + font-size: 14px; | ||
278 | + color: rgba(0, 0, 0, 0.5); | ||
279 | + background-color: rgba(255, 255, 255, 0.2); | ||
280 | + padding:5px 10px 5px 10px; | ||
281 | + border-top:1px solid rgba(255, 255, 255, 1); | ||
282 | + border-radius:0px 0px 20px 0px; | ||
283 | +} | ||
284 | +#TexteAnnoucementRed{ | ||
285 | + font-family: orbitronbold; | ||
286 | + font-size: 14px; | ||
287 | + color: #F00; | ||
288 | + text-decoration: blink; | ||
289 | + background-color: rgba(255, 255, 255, 0.2); | ||
290 | + padding:5px 10px 5px 10px; | ||
291 | + border-top:1px solid rgba(255, 255, 255, 1); | ||
292 | + border-radius:0px 0px 20px 0px; | ||
293 | +} |
14.1 KB
14.7 KB
js/resources/images/trou.jpg
php/classes/FilesMgr.php
@@ -209,7 +209,7 @@ class FilesMgr extends AmdaObjectMgr | @@ -209,7 +209,7 @@ class FilesMgr extends AmdaObjectMgr | ||
209 | if ($result[0] < 0) | 209 | if ($result[0] < 0) |
210 | return $result[0]; | 210 | return $result[0]; |
211 | $varsArr = explode("#",$result[0]); | 211 | $varsArr = explode("#",$result[0]); |
212 | - | 212 | + |
213 | return $varsArr; | 213 | return $varsArr; |
214 | } | 214 | } |
215 | 215 | ||
@@ -757,8 +757,8 @@ class FilesMgr extends AmdaObjectMgr | @@ -757,8 +757,8 @@ class FilesMgr extends AmdaObjectMgr | ||
757 | return "vot"; | 757 | return "vot"; |
758 | } | 758 | } |
759 | 759 | ||
760 | - // check binary at different machines - if it works..... | ||
761 | - if (strpos($file_info[0],"octet-stream") !== false) | 760 | + // netcdf4 - application/x-hdf |
761 | + if (strpos($file_info[0],"octet-stream") !== false || strpos($file_info[0],"x-hdf") !== false) | ||
762 | { | 762 | { |
763 | if (strpos($ext,"cdf") !== false) return "cdf"; | 763 | if (strpos($ext,"cdf") !== false) return "cdf"; |
764 | if (strpos($ext,"nc") !== false) return "nc"; | 764 | if (strpos($ext,"nc") !== false) return "nc"; |
php/classes/Guest.php
@@ -10,12 +10,12 @@ class Guest { | @@ -10,12 +10,12 @@ class Guest { | ||
10 | private $guestXml, $guestXmlFile, $xp, $root; | 10 | private $guestXml, $guestXmlFile, $xp, $root; |
11 | public $Id, $Start, $Ip, $email; | 11 | public $Id, $Start, $Ip, $email; |
12 | 12 | ||
13 | - function __construct($Ip_, $email_){ | 13 | + function __construct($Ip_, $email_ = null){ |
14 | 14 | ||
15 | - if($email_ != null) { | 15 | + if($email_) { |
16 | $this->Start = getdate(); | 16 | $this->Start = getdate(); |
17 | $this->Ip = $Ip_; | 17 | $this->Ip = $Ip_; |
18 | - $this->email = $email_; | 18 | + $this->email = $email_; |
19 | } | 19 | } |
20 | else { | 20 | else { |
21 | $this->Id = substr($Ip_,strlen("guest")); | 21 | $this->Id = substr($Ip_,strlen("guest")); |
@@ -31,7 +31,7 @@ class Guest { | @@ -31,7 +31,7 @@ class Guest { | ||
31 | $this->guestXml->load($this->guestXmlFile); | 31 | $this->guestXml->load($this->guestXmlFile); |
32 | $this->root = $this->guestXml->getElementsByTagName("guests")->item(0); | 32 | $this->root = $this->guestXml->getElementsByTagName("guests")->item(0); |
33 | } | 33 | } |
34 | - $this->xp = new domxpath($this->guestXml); | 34 | + $this->xp = new domxpath($this->guestXml); |
35 | } | 35 | } |
36 | 36 | ||
37 | private function generateXML() { | 37 | private function generateXML() { |
php/classes/UserMgr.php
@@ -436,12 +436,13 @@ class UserMgr | @@ -436,12 +436,13 @@ class UserMgr | ||
436 | 436 | ||
437 | protected function processGuestLogin() | 437 | protected function processGuestLogin() |
438 | { | 438 | { |
439 | - if (!$this->check_email_address($_POST['password'])) | ||
440 | - { | ||
441 | - die('<a href="index.html"><h3>Invalid e-mail address. Please, try once more.</h3></a>'); | ||
442 | - } | 439 | +// if (!$this->check_email_address($_POST['password'])) |
440 | +// { | ||
441 | +// die('<a href="index.html"><h3>Invalid e-mail address. Please, try once more.</h3></a>'); | ||
442 | +// } | ||
443 | 443 | ||
444 | - $passwd = $_POST['password']; | 444 | +// $passwd = $_POST['password']; |
445 | + $passwd = "public"; | ||
445 | $IP = $this->getIPclient(); | 446 | $IP = $this->getIPclient(); |
446 | $Guest = new Guest($IP,$passwd); | 447 | $Guest = new Guest($IP,$passwd); |
447 | // email and IP in guests.login | 448 | // email and IP in guests.login |