From 68bd753f1b77f39c1dd5609620ce29f9b8b412b5 Mon Sep 17 00:00:00 2001
From: fei.wang <wf18701153496@163.com>
Date: 星期一, 13 五月 2024 17:52:13 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/webapp/js/Login/script.js |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/webapp/js/Login/script.js b/src/webapp/js/Login/script.js
new file mode 100644
index 0000000..21d9010
--- /dev/null
+++ b/src/webapp/js/Login/script.js
@@ -0,0 +1,17 @@
+function addcl() {
+    let parent = this.parentNode.parentNode;
+    parent.classList.add("focus");
+}
+
+function remcl() {
+    let parent = this.parentNode.parentNode;
+    if (this.value == "") {
+        parent.classList.remove("focus");
+    }
+}
+
+
+inputs.forEach(input => {
+    input.addEventListener("focus", addcl);
+    input.addEventListener("blur", remcl);
+});
\ No newline at end of file

--
Gitblit v1.9.3