aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Buttons.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Buttons.hx')
-rw-r--r--src/client/Buttons.hx9
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");
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage