bug fix
This commit is contained in:
parent
fbe46f3e27
commit
9102e5d2ae
2 changed files with 22 additions and 15 deletions
13
css/ens.css
13
css/ens.css
|
@ -8,6 +8,14 @@
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@media only screen and (min-width: 1000px){
|
||||
.gros-titre {
|
||||
font-size: larger;
|
||||
font-weight: bolder;
|
||||
}
|
||||
}
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f4f4f4;
|
||||
|
@ -47,10 +55,7 @@ tr:hover {
|
|||
padding: 20px;
|
||||
}
|
||||
|
||||
.gros-titre {
|
||||
font-size: larger;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
|
||||
.bulle-rouge{
|
||||
width: fit-content;
|
||||
|
|
14
js/ens.js
14
js/ens.js
|
@ -173,6 +173,14 @@ async function gen_contenu() {
|
|||
const dataContainer = document.getElementById('data-container');
|
||||
|
||||
if (data.status === "1" && data.msg.documents.length > 0) {
|
||||
|
||||
// Ajout du contenu restant de la carte
|
||||
const commentaireDiv = document.createElement('div');
|
||||
commentaireDiv.classList.add('title');
|
||||
commentaireDiv.textContent = `Commentaire Auteur: ${data.msg.commentaire_auteur || ''}`;
|
||||
document.appendChild(commentaireDiv);
|
||||
|
||||
|
||||
data.msg.documents.forEach(doc => {
|
||||
// Création d'une carte (card)
|
||||
const card = document.createElement('div');
|
||||
|
@ -278,12 +286,6 @@ async function gen_contenu() {
|
|||
});
|
||||
|
||||
|
||||
|
||||
// Ajout du contenu restant de la carte
|
||||
const commentaireDiv = document.createElement('div');
|
||||
commentaireDiv.classList.add('title');
|
||||
commentaireDiv.textContent = `Commentaire Auteur: ${data.msg.commentaire_auteur || ''}`;
|
||||
document.appendChild(commentaireDiv);
|
||||
} else {
|
||||
dataContainer.textContent = data.msg;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue