You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.4 KiB
76 lines
2.4 KiB
2 months ago
|
<!-- <div class="container"></div>
|
||
|
<button id="toggleButton" class="close-button">
|
||
|
<i class="fas fa-times" aria-hidden="true"></i>
|
||
|
</button>
|
||
|
<div id="contentToHide">
|
||
|
<p>这是要隐藏的内容。</p>
|
||
|
<p>点击按钮后,这段文字将被隐藏。</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<script>
|
||
|
// 示例 JavaScript 代码,用于处理点击事件
|
||
|
document.getElementById('toggleButton').addEventListener('click', function() {
|
||
|
var contentToHide = document.getElementById('contentToHide');
|
||
|
contentToHide.classList.toggle('hidden');
|
||
|
});
|
||
|
</script> -->
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Document</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<span>nihap</span>
|
||
|
<p>sandw</p>
|
||
|
</body>
|
||
|
</html>
|
||
|
<div style="margin-left:15%;height:auto;padding: 120px 0 0 0;">
|
||
|
<div style="text-align: end;">
|
||
|
<form action="/zhuxiao/" id="zhuxiao" method="post">
|
||
|
<button class="shangchuang" type="submit" style="color: red;" >账户注销</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
<script>
|
||
|
document.getElementById('zhuxiao').addEventListener('submit', function(event) {
|
||
|
// 阻止表单提交行为
|
||
|
event.preventDefault();
|
||
|
// 弹出确认对话框
|
||
|
if (confirm('您确定要注销吗?')) {
|
||
|
this.submit();
|
||
|
}else {
|
||
|
return;
|
||
|
}
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<div class="sign-box">
|
||
|
<form action="/xiugai/" method="post" id="myform">
|
||
|
<div style="padding: 30px;font-size: 20px;">修改用户名和密码</div>
|
||
|
<div style="padding: 10px;">
|
||
|
<span>当前用户名:{{name}}</span>
|
||
|
<input type="text" placeholder="修改用户名" name="username">
|
||
|
</div>
|
||
|
<input type="password" placeholder="修改密码" name="password">
|
||
|
<div style="padding: 10px;">
|
||
|
<button class="shangchuang" type="submit" >修改提交</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
<script>
|
||
|
document.getElementById('myform').addEventListener('submit', function(event) {
|
||
|
// 阻止表单提交行为
|
||
|
event.preventDefault();
|
||
|
// 弹出确认对话框
|
||
|
if (confirm('您确定要修改吗?')) {
|
||
|
this.submit();
|
||
|
}else {
|
||
|
return;
|
||
|
}
|
||
|
});
|
||
|
</script>
|
||
|
</div>
|
||
|
|