]> git.immae.eu Git - perso/Denise/oms.git/blobdiff - static/outilspage.js
petites améliorations graphiques, icône, etc
[perso/Denise/oms.git] / static / outilspage.js
index 72a9b91150ebd94a9c53bca9639687576b5348ea..dac70bff4ec7867ceb2f2f83fceb57f3ac652863 100644 (file)
@@ -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)