diff --git a/src/thumbtack/static/js/thumbtack.js b/src/thumbtack/static/js/thumbtack.js index 6c4ce13..21caf20 100644 --- a/src/thumbtack/static/js/thumbtack.js +++ b/src/thumbtack/static/js/thumbtack.js @@ -35,4 +35,13 @@ function copyToClipboard(str) { el.select(); document.execCommand('copy'); document.body.removeChild(el); +} + +function toggleKey() { + var x = document.getElementById("key"); + if (x.type === "password") { + x.type = "text"; + } else { + x.type = "password"; + } } \ No newline at end of file diff --git a/src/thumbtack/templates/index.html b/src/thumbtack/templates/index.html index 9ed26dd..fcd0417 100644 --- a/src/thumbtack/templates/index.html +++ b/src/thumbtack/templates/index.html @@ -57,6 +57,20 @@