diff options
Diffstat (limited to 'src/client/Buttons.hx')
| -rw-r--r-- | src/client/Buttons.hx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/Buttons.hx b/src/client/Buttons.hx index e5c36a0..b8e4a16 100644 --- a/src/client/Buttons.hx +++ b/src/client/Buttons.hx @@ -19,6 +19,15 @@ class Buttons { initChatInput(main); initNavBar(main); + final passIcon = ge("#guestpass_icon"); + passIcon.onclick = e -> { + final isOpen = passIcon.classList.toggle("glyphicon-eye-open"); + passIcon.classList.toggle("glyphicon-eye-close"); + final pass:InputElement = cast ge("#guestpass"); + if (isOpen) pass.type = "password"; + else pass.type = "text"; + } + final smilesBtn = ge("#smilesbtn"); smilesBtn.onclick = e -> { smilesBtn.classList.toggle("active"); |
