diff --git a/public/dates.html b/public/dates.html index e78304fe..64fb3938 100644 --- a/public/dates.html +++ b/public/dates.html @@ -25,8 +25,7 @@
-

Je ajouter des horaires - pour chaque jour.

+

Je ajouter des horaires.

diff --git a/public/script.js b/public/script.js index 887309c1..54c73dd9 100644 --- a/public/script.js +++ b/public/script.js @@ -116,6 +116,19 @@ if($('#validation-pool-title') && localStorage["title"]) { } + +if($('#ajouterDesHoraires')) { + ajouterDesHoraires.addEventListener('change', () => { + if (ajouterDesHoraires.value == 'veux') { + console.log("je veux") + identiquesDifferentsPourChaqueJour.style.display = 'inline' + } else { + console.log("je ne veux pas") + identiquesDifferentsPourChaqueJour.style.display = 'none' + } + }); +} + const addDeleteParentEvent = () => { $$(".remove").forEach((element) => { element.addEventListener('click', () => {