From e4ec2d3d510d6138430c48d5dc699c10ff8dc463 Mon Sep 17 00:00:00 2001 From: Denise sur Lya Date: Thu, 22 Jul 2021 14:02:16 +0200 Subject: =?UTF-8?q?petites=20am=C3=A9liorations=20graphiques,=20ic=C3=B4ne?= =?UTF-8?q?,=20etc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/outilspage.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'static/outilspage.js') 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) -- cgit v1.2.3