summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/outilspage.js19
1 files changed, 19 insertions, 0 deletions
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) {
205 //alert(url) ; 205 //alert(url) ;
206 history.pushState({}, null, url); 206 history.pushState({}, null, url);
207} 207}
208
209
210/* Afficher/cacher un truc */
211function affiche_cache(elem, elemcourant)
212{
213 // affiche et/ou cache l'élément elem, tout en changeant l'élément courant (block/none)
214 // en afficher/masquer
215 if(elem.style.display == "block")
216 {
217 elem.style.display = "none";
218 elemcourant.innerHTML = "Afficher" ;
219 }
220 else
221 {
222 elem.style.display = "block" ;
223 elemcourant.innerHTML = "Masquer" ;
224 }
225
226}