bug fix
This commit is contained in:
parent
fbe46f3e27
commit
9102e5d2ae
2 changed files with 22 additions and 15 deletions
15
css/ens.css
15
css/ens.css
|
@ -1,12 +1,20 @@
|
||||||
@media only screen and (orientation: portrait){
|
@media only screen and (orientation: portrait){
|
||||||
|
|
||||||
.gros-titre{
|
.gros-titre{
|
||||||
width: 90vw;
|
width: 90vw;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@media only screen and (min-width: 1000px){
|
||||||
|
.gros-titre {
|
||||||
|
font-size: larger;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
|
@ -47,10 +55,7 @@ tr:hover {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gros-titre {
|
|
||||||
font-size: larger;
|
|
||||||
font-weight: bolder;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bulle-rouge{
|
.bulle-rouge{
|
||||||
width: fit-content;
|
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');
|
const dataContainer = document.getElementById('data-container');
|
||||||
|
|
||||||
if (data.status === "1" && data.msg.documents.length > 0) {
|
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 => {
|
data.msg.documents.forEach(doc => {
|
||||||
// Création d'une carte (card)
|
// Création d'une carte (card)
|
||||||
const card = document.createElement('div');
|
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 {
|
} else {
|
||||||
dataContainer.textContent = data.msg;
|
dataContainer.textContent = data.msg;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue