128 lines
5.5 KiB
HTML
128 lines
5.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title></title>
|
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="css/app.css" rel="stylesheet">
|
|
<script src="js/config.js"></script>
|
|
<script src="js/jquery-3.7.1.js"></script>
|
|
</head>
|
|
|
|
<body class="h-100 text-center text-bg-dark content-warp">
|
|
<div class="d-flex w-100 h-100 mx-auto flex-column">
|
|
<header class="mb-auto pb-5">
|
|
<div class="dotblock d-flex justify-content-between px-5 py-4">
|
|
<div class="fs-3">GEAZAN</div>
|
|
<div></div>
|
|
</div>
|
|
<div class="d-flex justify-content-center fw-bold border-black nav">
|
|
<div class="">
|
|
<a href="home.html">HOME</a>
|
|
</div>
|
|
<div class=""><a href="filter.html">FILTER</a></div>
|
|
<div class=""><a href="fs.html">FS</div>
|
|
<div class=""><a href="eq.html">EQ</a></div>
|
|
<div class=""><a href="ducking.html">DUCKING</a></div>
|
|
<div class=""><a href="network.html">NETWORK</a></div>
|
|
<div class="active">
|
|
<a href="security.html">SECURITY</a>
|
|
</div>
|
|
<div class=""><a href="control.html">CONTROL</a></div>
|
|
<div class="last "><a href="system.html">SYSTEM</a></div>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="px-3 d-flex justify-content-center">
|
|
<div class="form">
|
|
<div class="border border-black m-6 password-form">
|
|
<div class=" m-5 mx-auto form" style="width: 500px;">
|
|
<div class="mb-3 row">
|
|
<label for="oldname" class="col-sm-5 col-form-label">Old Username</label>
|
|
<div class="col-sm-7">
|
|
<input class="form-control" id="oldname" placeholder="" />
|
|
</div>
|
|
</div>
|
|
<div class="mb-3 row">
|
|
<label for="newname" class="col-sm-5 col-form-label">New Username</label>
|
|
<div class="col-sm-7">
|
|
<input class="form-control" id="newname" placeholder="" />
|
|
</div>
|
|
</div>
|
|
<div class="mb-3 row">
|
|
<label for="oldpassword" class="col-sm-5 col-form-label">Old Password</label>
|
|
<div class="col-sm-7">
|
|
<input type="password" class="form-control" id="oldpassword">
|
|
</div>
|
|
</div>
|
|
<div class="mb-3 row">
|
|
<label for="newpassword" class="col-sm-5 col-form-label">New Password</label>
|
|
<div class="col-sm-7">
|
|
<input type="password" class="form-control" id="newpassword">
|
|
</div>
|
|
</div>
|
|
<div class="mb-3 row">
|
|
<label for="confirmpassword" class="col-sm-5 col-form-label">Confirm New Password</label>
|
|
<div class="col-sm-7">
|
|
<input type="password" class="form-control" id="confirmpassword">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="mt-5 pb-5">
|
|
<button type="button" id="submit" class="btn btn-dark border border-black px-5">Confirm</button>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<footer class="mt-auto text-white-50">
|
|
<div class="dotblock d-flex justify-content-between px-5 py-4">
|
|
<div class="">Geazan</div>
|
|
<div>www.geazan.com</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
<script>
|
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
//初始化配置
|
|
})
|
|
|
|
$(document).ready(function () {
|
|
$("#submit").on("click", function () {
|
|
let oldname = $("#oldname").val()
|
|
let newname = $("#newname").val()
|
|
let oldpassword = $("#oldpassword").val()
|
|
let newpassword = $("#newpassword").val()
|
|
let confirmpassword = $("#confirmpassword").val()
|
|
|
|
if (oldname.length > 32 || oldname.length < 1) {
|
|
alert('The old user name cannot be empty and contains 1 to 32 characters')
|
|
return
|
|
}
|
|
if (newname.length > 32 || newname.length < 1) {
|
|
alert('The new user name cannot be empty and contains 1 to 32 characters')
|
|
return
|
|
}
|
|
if (oldpassword.length > 16 || oldpassword.length < 5) {
|
|
alert('Old passwords were between 5 and 16 characters long')
|
|
return
|
|
}
|
|
if (newpassword.length > 16 || newpassword.length < 5) {
|
|
alert('The new password must be between 5 and 16 characters long')
|
|
return
|
|
}
|
|
if(newpassword != confirmpassword){
|
|
alert('Confirm that the password is inconsistent with the new password')
|
|
return
|
|
}
|
|
|
|
|
|
alert('submit')
|
|
})
|
|
})
|
|
</script>
|
|
</body>
|
|
|
|
</html> |