mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
reverced eye icon state
This commit is contained in:
parent
9f01db2cc7
commit
316a202c8f
1 changed files with 6 additions and 6 deletions
|
@ -237,13 +237,13 @@
|
|||
}
|
||||
|
||||
function togglePrivKeyVisibility() {
|
||||
if (this.classList.contains("fa-eye-slash")) {
|
||||
this.classList.remove("fa-eye-slash");
|
||||
this.classList.add("fa-eye");
|
||||
document.getElementById("priv_key_visible").innerHTML = document.getElementById("priv_key").innerHTML;
|
||||
} else {
|
||||
if (this.classList.contains("fa-eye")) {
|
||||
this.classList.remove("fa-eye");
|
||||
this.classList.add("fa-eye-slash");
|
||||
document.getElementById("priv_key_visible").innerHTML = document.getElementById("priv_key").innerHTML;
|
||||
} else {
|
||||
this.classList.remove("fa-eye-slash");
|
||||
this.classList.add("fa-eye");
|
||||
document.getElementById("priv_key_visible").innerHTML = "••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••";
|
||||
}
|
||||
}
|
||||
|
@ -459,7 +459,7 @@
|
|||
<div id="priv_key_visible" class="item push-right overflow-ellipsis">
|
||||
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••</div>
|
||||
<div class="item">
|
||||
<a class="fas fa-light fa-eye-slash" onclick="(togglePrivKeyVisibility.bind(this))()"></a>
|
||||
<a class="fas fa-light fa-eye" onclick="(togglePrivKeyVisibility.bind(this))()"></a>
|
||||
</div>
|
||||
<div class="item">
|
||||
<a class="fas fa-copy" onclick="copy2clipboard(document.getElementById('priv_key').innerHTML);"></a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue