X-Git-Url: https://git.immae.eu/?p=perso%2FDenise%2Foms.git;a=blobdiff_plain;f=static%2Foutilspage.js;h=dac70bff4ec7867ceb2f2f83fceb57f3ac652863;hp=72a9b91150ebd94a9c53bca9639687576b5348ea;hb=e4ec2d3d510d6138430c48d5dc699c10ff8dc463;hpb=f1e65b5e6bc5e0803f359f93c8e795a61f61b4a6 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() } -// 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)