diff --git a/flotte.js b/flotte.js index 5d9840b..a3337c0 100644 --- a/flotte.js +++ b/flotte.js @@ -13,40 +13,9 @@ async function chargerFlotte() { corps.append(tr); } } catch (erreur) { - message.textContent = "Impossible de charger la flotte 😕"; + message.textContent = "Impossible de charger la flotte"; console.error(erreur); } } chargerFlotte(); - -const flotte1 = [ - { modele: "Renault Kangoo", immatriculation: "AB-123-CD", km: 45200 }, - { modele: "Peugeot Partner", immatriculation: "EF-456-GH", km: 78900 }, - { modele: "Citroën Berlingo", immatriculation: "IJ-789-KL", km: 12300 }, -]; - -function createLign(car) { - const tr = document.createElement("tr"); - - const tdmodele = document.createElement("td"); - tdmodele.textContent = car.modele; - - const tdimma = document.createElement("td"); - tdimma.textContent = car.immatriculation; - - const tdkm = document.createElement("td"); - tdkm.textContent = car.km; - - tr.append(tdmodele, tdimma, tdkm); - return tr; -} -const flotte = document.getElementById("flotte_tableau"); - -function afficherFlotte(list) { - flotte.innerHTML = ""; - for (const car of list) { - flotte.append(createLign(car)); - } -} -afficherFlotte(flotte1); diff --git a/pages/contact.css b/pages/contact.css index b4239af..5c80a15 100644 --- a/pages/contact.css +++ b/pages/contact.css @@ -141,7 +141,7 @@ td { background-image: linear-gradient( to top left, rgb(0 0 0 / 0.001), - rgb(0 0 0 / 0.1) 30%, + rgb(50 90 50 / 0.8) 0.1%, transparent ); box-shadow: 2px 5px 3px; diff --git a/pages/contact.html b/pages/contact.html index 808185c..d2d85d4 100644 --- a/pages/contact.html +++ b/pages/contact.html @@ -69,15 +69,8 @@

Notre flotte

Chargement…

- - - - - - - - - +
ModèleimmatriculationKm
+