1 Star 0 Fork 10

LiHaiPeng/migration-tools_src

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0007-user-name-input-diversity.patch 913 Bytes
一键复制 编辑 原始数据 按行查看 历史
LiHaiPeng 提交于 2024-09-04 13:15 +08:00 . user name input diversity
From f97cab793cc5b18c836a8ca4bdf82390c4fc3110 Mon Sep 17 00:00:00 2001
From: lihaipeng <lihaipeng@uniontech.com>
Date: Wed, 4 Sep 2024 13:12:51 +0800
Subject: [PATCH] user name input diversity
---
templates/MT_check_root.html | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/templates/MT_check_root.html b/templates/MT_check_root.html
index 5e4ce52..b2a3955 100755
--- a/templates/MT_check_root.html
+++ b/templates/MT_check_root.html
@@ -149,6 +149,18 @@
});
});
+ let uname_id=document.querySelector('#uname_id')
+ uname_id.onfocus=function(){
+ if(uname_id.value=="请输入具有root权限的用户"){
+ uname_id.value=""
+ }
+ }
+ uname_id.onblur=function(){
+ if(uname_id.value==''){
+ uname_id.value="请输入具有root权限的用户"
+ }
+ }
+
</script>
</body>
</html>
--
2.43.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/nperl-li/migration-tools_src.git
git@gitee.com:nperl-li/migration-tools_src.git
nperl-li
migration-tools_src
migration-tools_src
master

搜索帮助