From be2bf5155489b103e616845ffedb1a58c3808c48 Mon Sep 17 00:00:00 2001 From: Denise sur Lya Date: Thu, 18 Jun 2020 14:40:06 +0200 Subject: Changement de format pour l'export, ajout des boutons qui vont avec + divers --- static/outilspage.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'static/outilspage.js') diff --git a/static/outilspage.js b/static/outilspage.js index de87963..8da9e88 100644 --- a/static/outilspage.js +++ b/static/outilspage.js @@ -23,3 +23,29 @@ function ajoutelignes() } } + +// Affichage de la textarea "export" +function affiche_export() +{ + document.getElementById("export").style.display = "block" ; + +} + +function affiche_cache(id,elemcourant) +{ + // affiche et/ou cache l'élément id, tout en changeant le this + // en afficher/masquer + elem = document.getElementById(id) + if(elem.style.display == "block") + { + elem.style.display = "none"; + elemcourant.innerHTML = "Afficher" ; + } + else + { + elem.style.display = "block" ; + elemcourant.innerHTML = "Masquer" ; + + } + +} -- cgit v1.2.3