forked from mt-bjtu-practical/Front-end-exercise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
厄其尔_20289001.html
87 lines (74 loc) · 2.51 KB
/
厄其尔_20289001.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<!-- saved from url=(0056)file:///C:/Users/enurb/Desktop/3rd/meituan/meituan1.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="icon" href="https://www.sec.gov/Archives/edgar/data/906163/000090616319000053/nvrlogomaroon.jpg">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login page</title>
<style>
body {
background-image: url(bck.jpg);
background-size: cover;
}
.container {
max-width: 350px;
margin: 0 auto;
padding: 13px;
background-color: #ffffff10;
backdrop-filter: blur(15px);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
border-radius: 20px;
}
h2 {
color: #f6ebeb;
text-align: center;
}
label {
color: #f6ebeb;
display: block;
margin-bottom: 5px;
}
input[type="text"],
input[type="password"],
input[type="submit"] {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
}
input[type="text"],
input[type="password"]{
width: 95%;
}
input[type="submit"] {
background-color: #13173e;
cursor: pointer;
color: #f6ebeb;
}
</style>
</head>
<body>
<div class="container">
<h2>用户登录</h2>
<form id="loginForm">
<label for="username">账号:</label>
<input type="text" id="username" placeholder="输入账号" required="">
<label for="password">密码:</label>
<input type="password" id="password" placeholder="输入密码" required="">
<input type="submit" value="登录">
</form>
</div>
<script>
document.getElementById('loginForm').addEventListener('submit', function (event) {
event.preventDefault();
var username = document.getElementById('username').value;
var password = document.getElementById('password').value;
var user_ = "eziz";
var pass_ = "20289001"
if (username === user_ && password === pass_) {
alert('登录成功!');
} else {
alert('登录失败!用户名或密码错误! ');
}
});
</script>
</body></html>