diff --git a/static-data/www/private/index.html b/static-data/www/private/index.html index 9ea73331..82a00a01 100755 --- a/static-data/www/private/index.html +++ b/static-data/www/private/index.html @@ -30,6 +30,7 @@ + @@ -250,22 +251,21 @@ -
- Transport addresses -
-

- - - -

-

- -

-

- -

-
-
+

Transports

+ +
+

+ + + +

+

+ +

+

+ +

+
Outgoing Connections: diff --git a/static-data/www/private/main.css b/static-data/www/private/main.css index 031bba3b..e3bcfd44 100755 --- a/static-data/www/private/main.css +++ b/static-data/www/private/main.css @@ -56,4 +56,8 @@ z-index: 2; position: fixed; + } + + .torTransportField { + margin-top: 2em; } \ No newline at end of file diff --git a/static-data/www/shared/main/loadTransport.js b/static-data/www/shared/main/loadTransport.js new file mode 100644 index 00000000..4e5e2b6c --- /dev/null +++ b/static-data/www/shared/main/loadTransport.js @@ -0,0 +1,25 @@ +fetch('/gettoraddress', { + headers: { + "token": webpass + }}) + .then((resp) => resp.text()) + .then(function(resp) { + let torBoxes = document.getElementsByClassName('myTor') + Array.from(torBoxes).forEach(element => { + element.value = resp + }) + + }) + +Array.from(document.getElementsByClassName('myTorCopy')).forEach(element => { + element.onclick = function(){ + var copyText = document.getElementsByClassName('myTor')[0] + copyText.select() + document.execCommand("copy") + if (typeof PNotify != 'undefined'){ + PNotify.success({ + text: "Copied to clipboard" + }) + } + } +}) \ No newline at end of file