summaryrefslogtreecommitdiff
path: root/assets/visibility.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-07-11 18:54:20 +0200
committerMinteck <contact@minteck.org>2022-07-11 18:54:20 +0200
commitf2824f51f8ed407a8633ba968d35d56ea6a36f49 (patch)
treedb0c625ccd8ae4ada52f4e30956a9627270dec31 /assets/visibility.js
parent5abe8cba55965f70e07e1163239bcc9d797c864a (diff)
downloadbits-client-mane.tar.gz
bits-client-mane.tar.bz2
bits-client-mane.zip
Diffstat (limited to 'assets/visibility.js')
-rw-r--r--assets/visibility.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/assets/visibility.js b/assets/visibility.js
new file mode 100644
index 0000000..f418195
--- /dev/null
+++ b/assets/visibility.js
@@ -0,0 +1,13 @@
+let sensitiveInfoVisible = true;
+
+async function toggleVisibility() {
+ if (sensitiveInfoVisible) {
+ sensitiveInfoVisible = false;
+ document.getElementById("visibility-icon").innerText = "visibility_off";
+ await refresh();
+ } else {
+ sensitiveInfoVisible = true;
+ document.getElementById("visibility-icon").innerText = "visibility";
+ await refresh();
+ }
+} \ No newline at end of file