Skip to content
Extraits de code Groupes Projets
Valider daff5f27 rédigé par louis.fourcade@ensiie.fr's avatar louis.fourcade@ensiie.fr
Parcourir les fichiers

fix du classement sortant de l'image

parent 89af8cbb
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -98,21 +98,25 @@ var displayerMoyReview = { ...@@ -98,21 +98,25 @@ var displayerMoyReview = {
'<h4>'+real_im.data[0].title+'</h4>'+ '<h4>'+real_im.data[0].title+'</h4>'+
'<p style="font-size: 15px">'+real_im.data[0].description+'</p>'+ '<p style="font-size: 15px">'+real_im.data[0].description+'</p>'+
'</div>'+ '</div>'+
'<div class="actionrow" style="left: -120px;margin-bottom:15px;">'+ '<div class="actionrow" style="margin-bottom:15px;">'+
'<form method="POST" action="download.php" target="_blank">'+ '<form method="POST" action="download.php" target="_blank">'+
'<input type="hidden" name="urlget" value="'+correctionURLLink(real_im.href)+'">'+ '<input type="hidden" name="urlget" value="'+correctionURLLink(real_im.href)+'">'+
'<input type="hidden" name="nasa_id" value="'+currentID+'">'+ '<input type="hidden" name="nasa_id" value="'+currentID+'">'+
'<input type="hidden" name="title" value="'+real_im.data[0].title+'">'+ '<input type="hidden" name="title" value="'+real_im.data[0].title+'">'+
'<input type="hidden" name="preview" value="'+real_im.links[0].href+'"">'+ '<input type="hidden" name="preview" value="'+real_im.links[0].href+'"">'+
'<input type="image" name="submit" alt="Submit" class="download" width="13%" src="./ressources/icons/dwnld.png" onmouseover="this.src=\'./ressources/icons/dwnldVert.png\'" onmouseout="this.src=\'./ressources/icons/dwnld.png\'">'+ '<table style="margin-right:5%">'+
'<tbody><tr><td align="left" width="10%">'+
'<input type="image" name="submit" alt="Submit" class="download" width="100%" src="./ressources/icons/dwnld.png" onmouseover="this.src=\'./ressources/icons/dwnldVert.png\'" onmouseout="this.src=\'./ressources/icons/dwnld.png\'">'+
'</td>'+
'<td width="51%">'+
'</td>'+
'<td width="29%" style="color:'+color+'; font-size:170%;font-family: abang">'+tab[1]+
'</td>'+
'<td align="right" width="10%" style="color:'+color+'; font-size:170%;font-family: abang">'+tab[2]+
'</td>'+
'</tr></tbody></table>'+
'</form>'+ '</form>'+
'</div>'+ '</div>'+
'<div class="actionrow" style="color:'+color+';left:15px;margin-bottom:15px;right:15px;font-size:35px;font-family: abang">'+
tab[1]+
'</div>'+
'<div class="actionrow" style="color:'+color+';margin-left: 45%;margin-bottom:15px;right:15px;font-size:35px;font-family: abang">'+
tab[2]+
'</div>'+
'</div>'+ '</div>'+
'</div>'+ '</div>'+
'</div>'); '</div>');
...@@ -157,14 +161,6 @@ var displayerNbCDC = { ...@@ -157,14 +161,6 @@ var displayerNbCDC = {
// console.log("ascii:" + tab[0] + ", " + tab[1]); // console.log("ascii:" + tab[0] + ", " + tab[1]);
var currentID = intListToString(tab[0]); var currentID = intListToString(tab[0]);
var nbCDC = parseInt( tab[1]); var nbCDC = parseInt( tab[1]);
console.log(10000*parseInt(tab[2], 10));
setTimeout(affiche_dans_lordre(whereToDisplay, tab, currentID, nbCDC), 100*parseInt(tab[2], 10));
}
);
}
}
function affiche_dans_lordre(whereToDisplay, tab, currentID, nbCDC ) {
if( nbCDC >= 25 ) if( nbCDC >= 25 )
var color = "yellow" var color = "yellow"
else else
...@@ -193,26 +189,37 @@ function affiche_dans_lordre(whereToDisplay, tab, currentID, nbCDC ) { ...@@ -193,26 +189,37 @@ function affiche_dans_lordre(whereToDisplay, tab, currentID, nbCDC ) {
'<h4>'+real_im.data[0].title+'</h4>'+ '<h4>'+real_im.data[0].title+'</h4>'+
'<p style="font-size: 15px">'+real_im.data[0].description+'</p>'+ '<p style="font-size: 15px">'+real_im.data[0].description+'</p>'+
'</div>'+ '</div>'+
'<div class="actionrow" style="left: -120px;margin-bottom:15px;">'+ '<div class="actionrow" style="margin-bottom:15px;">'+
'<form method="POST" action="download.php" target="_blank">'+ '<form method="POST" action="download.php" target="_blank">'+
'<input type="hidden" name="urlget" value="'+correctionURLLink(real_im.href)+'">'+ '<input type="hidden" name="urlget" value="'+correctionURLLink(real_im.href)+'">'+
'<input type="hidden" name="nasa_id" value="'+currentID+'">'+ '<input type="hidden" name="nasa_id" value="'+currentID+'">'+
'<input type="hidden" name="title" value="'+real_im.data[0].title+'">'+ '<input type="hidden" name="title" value="'+real_im.data[0].title+'">'+
'<input type="hidden" name="preview" value="'+real_im.links[0].href+'"">'+ '<input type="hidden" name="preview" value="'+real_im.links[0].href+'"">'+
'<input type="image" name="submit" alt="Submit" class="download" width="13%" src="./ressources/icons/dwnld.png" onmouseover="this.src=\'./ressources/icons/dwnldVert.png\'" onmouseout="this.src=\'./ressources/icons/dwnld.png\'">'+ '<table style="margin-right:5%">'+
'<tbody><tr><td align="left" width="10%">'+
'<input type="image" name="submit" alt="Submit" class="download" width="100%" src="./ressources/icons/dwnld.png" onmouseover="this.src=\'./ressources/icons/dwnldVert.png\'" onmouseout="this.src=\'./ressources/icons/dwnld.png\'">'+
'</td>'+
'<td width="51%">'+
'</td>'+
'<td width="29%" style="color:'+color+'; font-size:170%;font-family: abang">'+tab[1]+
'</td>'+
'<td align="right" width="10%" style="color:'+color+'; font-size:170%;font-family: abang">'+tab[2]+
'</td>'+
'</tr></tbody></table>'+
'</form>'+ '</form>'+
'</div>'+ '</div>'+
'<div class="actionrow" style="color:'+color+';left:15px;margin-bottom:15px;right:15px;font-size:35px;font-family: abang">'+
tab[1]+
'</div>'+
'<div class="actionrow" style="color:'+color+';margin-left: 45%;margin-bottom:15px;right:15px;font-size:35px;font-family: abang">'+
tab[2]+
'</div>'+
'</div>'+ '</div>'+
'</div>'+ '</div>'+
'</div>'); '</div>');
}); });
} }
);
}
}
function affiche_dans_lordre(whereToDisplay, tab, currentID, nbCDC ) {
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter