From e756b23d33697bbff49b37c751b76d589c00cd1e Mon Sep 17 00:00:00 2001 From: siinus Date: Sat, 29 Jun 2024 20:03:13 +0300 Subject: [PATCH] Copy audio tunnel command to clipboard (#7) --- www/index.html | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/www/index.html b/www/index.html index d508796..ef9ceec 100644 --- a/www/index.html +++ b/www/index.html @@ -125,6 +125,18 @@ } http.send('mode=' + value); } + + // kopeerime lõikelauale + function toClip(content) { + let tempArea = document.createElement('textarea'); + tempArea.value = content; + document.body.appendChild(tempArea); + tempArea.select(); + + // Teame teame, see on deprecated, aga muud meetodid ei toimi ilma HTTPS'ita + document.execCommand('copy'); + document.body.removeChild(tempArea); + } @@ -154,11 +166,9 @@

- +
- - pactl load-module module-tunnel-sink server=tcp:viido - +pactl load-module module-tunnel-sink server=tcp:viido