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