From 82eab8808856045d16b0c45c037209faf04fe9bc Mon Sep 17 00:00:00 2001 From: moepoi Date: Wed, 10 Nov 2021 12:01:15 +0700 Subject: [PATCH] Add login.js --- public/js/login.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 public/js/login.js diff --git a/public/js/login.js b/public/js/login.js new file mode 100644 index 0000000..4055726 --- /dev/null +++ b/public/js/login.js @@ -0,0 +1,8 @@ +function revealhidePassword() { + const x = document.getElementById("exampleDropdownFormPassword1"); + if (x.type === "password") { + x.type = "text"; + } else { + x.type = "password"; + } +} \ No newline at end of file