From 19a42bcdf2448218699fe8364e04e9589f0a56ae Mon Sep 17 00:00:00 2001 From: Austin Gibbons Date: Fri, 24 May 2024 16:28:38 -0400 Subject: [PATCH] Add decryption options to UI. --- src/thumbtack/static/js/thumbtack.js | 9 +++++++++ src/thumbtack/templates/index.html | 14 ++++++++++++++ 2 files changed, 23 insertions(+) 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 @@

Path to disk images: {{ image_dir }}<
+ Decryption options +
    + + + + + Show key +
{% endif %}