diff --git a/css/ens.css b/css/ens.css index 7fd0ff8..9b3dfca 100644 --- a/css/ens.css +++ b/css/ens.css @@ -1,12 +1,20 @@ @media only screen and (orientation: portrait){ -.gros-titre{ - width: 90vw; - overflow-x: hidden; - font-weight: bolder; - font-size: small; + .gros-titre{ + width: 90vw; + overflow-x: hidden; + font-weight: bolder; + font-size: small; + } + } + +@media only screen and (min-width: 1000px){ + .gros-titre { + font-size: larger; + font-weight: bolder; + } } body { font-family: Arial, sans-serif; @@ -47,10 +55,7 @@ tr:hover { padding: 20px; } -.gros-titre { - font-size: larger; - font-weight: bolder; -} + .bulle-rouge{ width: fit-content; diff --git a/js/ens.js b/js/ens.js index 0c3ef36..ecdccf5 100644 --- a/js/ens.js +++ b/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; }