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
| <!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Meteo Consorzio Lamma</title>
<script type="text/javascript" language="Javascript">
function initInputonload() {
var mousewheelevt = (/Firefox/i.test(navigator.userAgent)) ? "DOMMouseScroll" : "mousewheel"
if (document.body.attachEvent)
document.body.attachEvent("on" + mousewheelevt, rotateimage);
else if (document.body.addEventListener)
document.body.addEventListener(mousewheelevt, rotateimage, false);
conteneur.innerHTML = "";
initInput();
}
function initInput() {
var url = document.getElementById("affichage").value ;
var type = document.getElementById("type").value;
var region = document.getElementById("region").value;
var n = url.lastIndexOf("/");
url = url.slice(0,n+1) + type + "_" + region + "_web_*.png";
document.getElementById("affichage").value = url;
}
function afficheImages() {
if(document.getElementById("offline").checked) {
afficheImagesHorsConnexion();
return;
}
var url = document.getElementById("affichage").value;
if (url.indexOf("*") === -1) {
document.getElementById("msg").innerHTML = "L'url doit contenir le caractère '*' ! ";
return;
}
var nbrBegin = +document.getElementById("nbrBegin").value;
var nbrEnd = +document.getElementById("nbrEnd").value;
var monImg ;
var conteneur = document.getElementById("conteneur");
conteneur.innerHTML = "";
for (var i= nbrBegin; i<= nbrEnd; i++) {
monImg = document.createElement('img');
monImg.src = url.replace("*", i);
monImg.style.visibility = 'hidden' ;
monImg.style.position = "absolute";
conteneur.appendChild(monImg);
}
document.images[0].style.visibility = "visible";
}
function afficheImagesHorsConnexion() {
var url = document.getElementById("affichage").value;
var n = url.lastIndexOf("/");
var pathImages = "./" + document.title + "_files" + url.slice(n);
var nbrBegin = +document.getElementById("nbrBegin").value;
var nbrEnd = +document.getElementById("nbrEnd").value;
var monImg ;
var conteneur = document.getElementById("conteneur");
conteneur.innerHTML = "";
for (var i= nbrBegin; i<= nbrEnd; i++) {
monImg = document.createElement('img');
monImg.src = pathImages.replace("*", i);
monImg.style.visibility = 'hidden' ;
monImg.style.position = "absolute";
conteneur.appendChild(monImg);
}
document.images[0].style.visibility = "visible";
}
var myimages = document.images;
var currentImage = 0 ;
var nextImage = 0 ;
function rotateimage(e) {
if(myimages.length === 0) return ;
var evt = window.event || e //equalize event object
var delta = evt.detail ? evt.detail * (-120) : evt.wheelDelta //delta returns +120 when wheel is scrolled up, -120 when scrolled down
nextImage = (delta <= -120) ? nextImage + 1 : nextImage - 1 //move image index forward or back, depending on whether wheel is scrolled down or up
nextImage = (nextImage < 0) ? 0 : (nextImage > myimages.length - 1) ? myimages.length - 1 : nextImage
myimages[currentImage].style.visibility = "hidden";
myimages[nextImage].style.visibility = "visible";
currentImage = nextImage ;
if (evt.preventDefault)
//disable default wheel action of scrolling page
evt.preventDefault()
else
return false ;
}
</script>
</head>
<body onload="initInputonload()" style="font-family:verdana; font-size:13px">
<div>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<div class="onoffswitch">
<p style="margin-top: 0; margin-bottom: 0">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="offline" checked>
<label class="onoffswitch-label" for="offline">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</td>
<td>
<p style="margin-top: 0; margin-bottom: 0"><b><font face="Arial" size="5" color="#333333">
<span>
<a target="_blank" href="http://www.lamma.rete.toscana.it/mare/modelli/vento-e-mare" style="text-decoration:none; vertical-align:middle">
Consorzio Lamma</a> </span></font></b>
<select size="1" id="region" onchange="initInput()" name="D1">
<option value="AA">Méditerranée</option>
<option value="H">Med - occ</option>
<option value="AE">Med - cen</option>
<option value="I">Med - ori</option>
<option value="A">Ligure</option>
<option value="D">Mer Tyrrhénienne</option>
<option value="B">Sardaigne</option>
<option value="C">Sicile</option>
<option value="E">Mer Ionienne</option>
<option value="F">Adriatique meridionale</option>
<option value="G">Adriatique septentrionale</option>
<option value="M">Golfe de Gênes</option>
<option value="J">Mer de Sardaigne</option>
<option value="K">Baléares</option>
<option value="R">Valencia</option>
<option value="AB">Canal de Sardaigne</option>
<option value="AC">Tunisie</option>
<option value="Y">Mer d'Alboran</option>
<option value="Z">Golfe du Lion</option>
<option value="Q">Côte d'Azur</option>
<option value="S">Corse</option>
<option value="L">Elbe</option>
<option value="N">Bonifacio</option>
<option value="O">Îles Pontines</option>
<option value="P">Îles Éoliennes</option>
<option value="X">Ustica</option>
<option value="T">Istrie</option>
<option value="U">Îles Tremiti</option>
<option value="W">Golfe de Tarente</option>
<option value="V">Albanie</option>
<option value="AF">Grèce</option>
<option value="AG">Péninsule Chalcidique</option>
<option value="AH">Îles grecques</option>
<option value="AI">Crète</option>
<option value="AL">Turquie</option>
<option value="AN">Chypre</option>
<option value="AM">Israël</option>
<option value="AK">Égypte</option>
<option value="AJ">Crète du sud</option>
<option value="AD">Golfe de Syrte</option>
</select>
<select size="1" id="type" onchange="initInput()" name="D2">
<option value="wind10m">Vent</option>
<option value="mwp">Houle</option>
<option value="swh">Hauteur des vagues</option>
<option value="windgust">Rafales</option>
<option value="sst">Température de la mer</option>
<option value="pcp">Précipitations</option>
<option value="ct">Nuages</option>
</select>
<select size="1" id="nbrEnd" onchange="changementParametre(event)" name="D3" >
<option value="10">1 jour</option>
<option value="36">2 jours</option>
<option value="44">3 jours</option>
<option value="50">4 jours</option>
<option value="57" selected>5 jours</option>
</select>
<input type="button" name="RefreshButton" value="AFFICHER" class="styled-button-1" onclick="afficheImages()">
<style type="text/css">
.styled-button-1 {
cursor: pointer;
-webkit-box-shadow:rgba(0,0,0,0.2) 0 1px 0 0;
-moz-box-shadow:rgba(0,0,0,0.2) 0 1px 0 0;
box-shadow:rgba(0,0,0,0.2) 0 1px 0 0;
color:#707070;
background-color:#EEEEEE;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border:none;
font-family:'Helvetica Neue',Arial,sans-serif;
font-size:16px;
font-weight:700;
height:36px;
padding:4px 16px;
border: 2px solid #999999;
}
</style>
<input type="text" style="display:none" id="affichage" value="http://www.lamma.rete.toscana.it/models/ventoemare/TYPE_REGION_web_*.png" ;="" size="79" name="T1">
<input type="number" style="display:none"id="nbrBegin" onchange="changementParametre(event)" value="1" min="1" max="61" name="T2" size="20">
<b> Ctrl + S</b> pour enregistrer les données.
</td>
<td> <style type="text/css">
.onoffswitch {
position: relative; width: 160px;
-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
display: none;
}
.onoffswitch-label {
display: block; overflow: hidden; cursor: pointer;
border: 2px solid #999999; border-radius: 5px;
}
.onoffswitch-inner {
display: block; width: 200%; margin-left: -100%;
transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
display: block; float: left; width: 50%; height: 34px; padding: 0; line-height: 34px;
font-family:'Helvetica Neue',Arial,sans-serif;
font-size:16px;
font-weight:700;
box-sizing: border-box;
}
.onoffswitch-inner:before {
content: "HORS LIGNE";
padding-left: 10px;
background-color: #F00000; color: #FFFFFF;
}
.onoffswitch-inner:after {
content: "EN LIGNE";
padding-right: 10px;
background-color: #EEEEEE; color: #707070;
text-align: center;
}
.onoffswitch-switch {
display: block; width: 14px; margin: 3px;
background: #FFFFFF;
position: absolute; top: 0; bottom: 0;
right: 136px;
border: 2px solid #999999; border-radius: 5px;
transition: all 0.3s ease-in 0s;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
right: 0px;
}
</style></td>
</tr>
</table>
</div>
<hr>
<div id="conteneur">
<img src="../Nouveau%20dossier2/Meteo%20Consorzio%20Lamma_files2/wind10m_AA_web_1.png" style="visibility: visible; position: absolute;"><img src="../Nouveau%20dossier2/Meteo%20Consorzio%20Lamma_files2/wind10m_AA_web_2.png" style="visibility: hidden; position: absolute;"><img src="../Nouveau%20dossier2/Meteo%20Consorzio%20Lamma_files2/wind10m_AA_web_3.png" style="visibility: hidden; position: absolute;"></div>
</body></html> |
Partager