summaryrefslogtreecommitdiff
path: root/static/outilspage.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/outilspage.js')
-rw-r--r--static/outilspage.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/static/outilspage.js b/static/outilspage.js
index 72a9b91..dac70bf 100644
--- a/static/outilspage.js
+++ b/static/outilspage.js
@@ -44,11 +44,23 @@ function ajoutelignes()
44 44
45} 45}
46 46
47// Affichage de la textarea "export" 47// Affichage de la section "export"
48function affiche_export() 48function affiche_export()
49{ 49{
50 document.getElementById("export").style.display = "block" ; 50 document.getElementById("export").style.display = "block" ;
51 51}
52// Copier vers le presse-papiers
53function copietexte()
54{
55 var elt = document.getElementById("export_texte");
56
57 /* Select the text field */
58 elt.select();
59 elt.setSelectionRange(0, 99999); /* For mobile devices */
60
61 /* Copy the text inside the text field */
62 document.execCommand("copy");
63
52} 64}
53 65
54function affiche_cache(id,elemcourant) 66function affiche_cache(id,elemcourant)