From 18d649dab9201c33ce156f5450d2d68dba7d1a47 Mon Sep 17 00:00:00 2001 From: Yannick Francois Date: Tue, 19 Mar 2019 14:38:31 +0100 Subject: [PATCH] =?UTF-8?q?affiche=20uniquement=20les=20options=20n=C3=A9c?= =?UTF-8?q?essaire=20pour=20les=20date?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/dates.html | 3 +-- public/script.js | 13 +++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) 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', () => {