X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=static%2Foutilspage.js;h=dac70bff4ec7867ceb2f2f83fceb57f3ac652863;hb=9d7f1506a59fdda338491f6df8c1e5bd2e442ab8;hp=5d1fc4165d75b61b627ebdfe819fdfad94531e10;hpb=6ac2173a3eedadc718dadd54002878b5d3d9661b;p=perso%2FDenise%2Foms.git diff --git a/static/outilspage.js b/static/outilspage.js index 5d1fc41..dac70bf 100644 --- a/static/outilspage.js +++ b/static/outilspage.js @@ -44,11 +44,23 @@ function ajoutelignes() } -// Affichage de la textarea "export" +// Affichage de la section "export" function affiche_export() { document.getElementById("export").style.display = "block" ; - +} +// Copier vers le presse-papiers +function copietexte() +{ + var elt = document.getElementById("export_texte"); + + /* Select the text field */ + elt.select(); + elt.setSelectionRange(0, 99999); /* For mobile devices */ + + /* Copy the text inside the text field */ + document.execCommand("copy"); + } function affiche_cache(id,elemcourant) @@ -145,16 +157,36 @@ function change_mode_dates(mode) } } -function revele_enfants() +function ajoute_enfants() { - // révèle tous les champs pour enfants additionnels - var listelt = document.getElementsByClassName("enfants_cache_def") ; - for(i=0; i Texte associé : ' ; + elt.innerHTML = 'Âge : Texte associé : Tracer : ' ; eltul.appendChild(elt) ; }