diff --git a/contact.js b/contact.js index 5b5da85..e4ab96d 100644 --- a/contact.js +++ b/contact.js @@ -21,6 +21,7 @@ function rafraichirCompteur() { compteur.textContent = restant; compteur.style.color = restant < 50 ? "red" : "black"; motCaractere.textContent = restant <= 1 ? "caractère" : "caractères"; + localStorage.setItem("brouillon", zoneMessage.value); } zoneMessage.addEventListener("input", rafraichirCompteur); @@ -37,16 +38,29 @@ formulaire.addEventListener("submit", function (evenement) { } }); -function creerNavbar() { +function creerNavbar(pageActive) { return `
`; } -document.body.insertAdjacentHTML("afterbegin", creerNavbar()); +document.body.insertAdjacentHTML("afterbegin", creerNavbar("contact")); + +document.getElementById("theme").addEventListener("click", function () { + document.body.classList.toggle("sombre"); +}); + +const titres = document.querySelectorAll(".q-titre"); + +titres.forEach(function (titre) { + titre.addEventListener("click", function () { + const reponse = titre.nextElementSibling; + reponse.classList.toggle("ouverte"); + }); +}); diff --git a/css/style.css b/css/style.css index a221937..8f48927 100644 --- a/css/style.css +++ b/css/style.css @@ -42,6 +42,7 @@ h1 { position: fixed; bottom: 0; width: 100%; + border-top: 2px solid; } #nav_barre { display: flex; diff --git a/pages/contact.css b/pages/contact.css index a9d25ac..79934ac 100644 --- a/pages/contact.css +++ b/pages/contact.css @@ -7,7 +7,7 @@ body { height: 100%; background-color: lightblue; margin: 0; - padding-bottom: 60px; + padding-bottom: 65px; } #nav_barre { @@ -124,7 +124,7 @@ td { #titre_tableau { font-size: 25px; color: seagreen; - padding-left: 200px; + padding-left: 10px; } .form { @@ -163,7 +163,21 @@ textarea { position: fixed; bottom: 0; width: 100%; + border-top: 2px solid; + padding-bottom: 10px; } #statut_horaires { font-size: 15px; } + +body.sombre { + background-color: #1d2733; + color: white; +} + +.q-reponse { + display: none; +} +.q-reponse.ouverte { + display: block; +} diff --git a/pages/contact.html b/pages/contact.html index 840adfa..9b37a5d 100644 --- a/pages/contact.html +++ b/pages/contact.html @@ -8,9 +8,13 @@ -- Les développeurs de ce site -
++ Les développeurs de ce site +
+L'équipe compte personne(s).
+ + +| Parties crées | ||
|---|---|---|
| Mélissa | -Stagiaire | -Page contact | -
| Guillaume | -Stagiaire | -Page services | -
Grâce à notre service de géolocalisation, accessible 24h/24.
+Oui, sans frais, depuis votre espace client.
+