Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
P
Pimaza
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Déploiement
Releases
Registre de conteneur
Registre de modèles
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Naze à Gilles
Pimaza
Validations
89af8cbb
Valider
89af8cbb
rédigé
5 years ago
par
Romain DUPONT
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
fix css rang
parent
165f7759
Aucune branche associée trouvée
Branches contenant la validation
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
1
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
public/js/picture_displayer.js
+46
-46
46 ajouts, 46 suppressions
public/js/picture_displayer.js
avec
46 ajouts
et
46 suppressions
public/js/picture_displayer.js
+
46
−
46
Voir le fichier @
89af8cbb
...
...
@@ -110,7 +110,7 @@ var displayerMoyReview = {
'
<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:
350px;
;margin-bottom:15px;right:15px;font-size:35px;font-family: abang">
'
+
'
<div class="actionrow" style="color:
'
+
color
+
'
;margin-left:
45%
;margin-bottom:15px;right:15px;font-size:35px;font-family: abang">
'
+
tab
[
2
]
+
'
</div>
'
+
'
</div>
'
+
...
...
@@ -166,52 +166,52 @@ var displayerNbCDC = {
function
affiche_dans_lordre
(
whereToDisplay
,
tab
,
currentID
,
nbCDC
)
{
if
(
nbCDC
>=
25
)
var
color
=
"
yellow
"
else
{
if
(
nbCDC
>=
10
)
var
color
=
"
blue
"
;
else
var
color
=
"
white
"
;
}
var
place
=
parseInt
(
tab
[
2
]
);
if
(
place
>
1
)
tab
[
2
]
+=
"
eme
"
else
tab
[
2
]
+=
"
er
"
// console.log("decode:" +currentID);
// console.log(currentID);
requestHandler
.
retrieveJsonFromUrl
(
'
https://images-api.nasa.gov/search?nasa_id=
'
+
currentID
,
function
(
json
)
{
var
real_im
=
json
.
collection
.
items
[
0
];
$
(
'
#
'
+
whereToDisplay
+
'
row
'
).
append
(
'
<div class="view container">
'
+
'
<div class="hover-container" style="margin: 3px">
'
+
'
<img class="img-fluid" style="margin: 4px" src=
'
+
real_im
.
links
[
0
].
href
+
'
>
'
+
'
<div class="content">
'
+
'
<div class="text scrollbar">
'
+
'
<h4>
'
+
real_im
.
data
[
0
].
title
+
'
</h4>
'
+
'
<p style="font-size: 15px">
'
+
real_im
.
data
[
0
].
description
+
'
</p>
'
+
'
</div>
'
+
'
<div class="actionrow" style="left: -120px;margin-bottom:15px;">
'
+
'
<form method="POST" action="download.php" target="_blank">
'
+
'
<input type="hidden" name="urlget" value="
'
+
correctionURLLink
(
real_im
.
href
)
+
'
">
'
+
'
<input type="hidden" name="nasa_id" value="
'
+
currentID
+
'
">
'
+
'
<input type="hidden" name="title" value="
'
+
real_im
.
data
[
0
].
title
+
'
">
'
+
'
<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
\'
">
'
+
'
</form>
'
+
'
</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: 350px;;margin-bottom:15px;right:15px;font-size:35px;font-family: abang">
'
+
tab
[
2
]
+
'
</div>
'
+
'
</div>
'
+
var
color
=
"
yellow
"
else
{
if
(
nbCDC
>=
10
)
var
color
=
"
blue
"
;
else
var
color
=
"
white
"
;
}
var
place
=
parseInt
(
tab
[
2
]
);
if
(
place
>
1
)
tab
[
2
]
+=
"
eme
"
else
tab
[
2
]
+=
"
er
"
// console.log("decode:" +currentID);
// console.log(currentID);
requestHandler
.
retrieveJsonFromUrl
(
'
https://images-api.nasa.gov/search?nasa_id=
'
+
currentID
,
function
(
json
)
{
var
real_im
=
json
.
collection
.
items
[
0
];
$
(
'
#
'
+
whereToDisplay
+
'
row
'
).
append
(
'
<div class="view container">
'
+
'
<div class="hover-container" style="margin: 3px">
'
+
'
<img class="img-fluid" style="margin: 4px" src=
'
+
real_im
.
links
[
0
].
href
+
'
>
'
+
'
<div class="content">
'
+
'
<div class="text scrollbar">
'
+
'
<h4>
'
+
real_im
.
data
[
0
].
title
+
'
</h4>
'
+
'
<p style="font-size: 15px">
'
+
real_im
.
data
[
0
].
description
+
'
</p>
'
+
'
</div>
'
+
'
</div>
'
);
});
'
<div class="actionrow" style="left: -120px;margin-bottom:15px;">
'
+
'
<form method="POST" action="download.php" target="_blank">
'
+
'
<input type="hidden" name="urlget" value="
'
+
correctionURLLink
(
real_im
.
href
)
+
'
">
'
+
'
<input type="hidden" name="nasa_id" value="
'
+
currentID
+
'
">
'
+
'
<input type="hidden" name="title" value="
'
+
real_im
.
data
[
0
].
title
+
'
">
'
+
'
<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
\'
">
'
+
'
</form>
'
+
'
</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>
'
);
});
}
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter