From 8da62cfdd34686b48c0ef22c1c6158963a2c8579 Mon Sep 17 00:00:00 2001 From: Denise sur Lya Date: Thu, 29 Jul 2021 16:58:10 +0200 Subject: ajout de la page liste --- static/outilspage.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'static') diff --git a/static/outilspage.js b/static/outilspage.js index f0f90b4..15c043d 100644 --- a/static/outilspage.js +++ b/static/outilspage.js @@ -205,3 +205,22 @@ function met_url(aajouter) { //alert(url) ; history.pushState({}, null, url); } + + +/* Afficher/cacher un truc */ +function affiche_cache(elem, elemcourant) +{ + // affiche et/ou cache l'élément elem, tout en changeant l'élément courant (block/none) + // en afficher/masquer + if(elem.style.display == "block") + { + elem.style.display = "none"; + elemcourant.innerHTML = "Afficher" ; + } + else + { + elem.style.display = "block" ; + elemcourant.innerHTML = "Masquer" ; + } + +} -- cgit v1.2.3