-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
87 lines (87 loc) · 2.58 KB
/
index.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>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网络图片收集图床</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: flex-start; /* 修改为flex-start */
align-items: center;
background-color: #f7f7f7;
padding-top: 10%; /* 添加顶部的padding */
}
h1 {
text-align: center;
margin-bottom: 20px;
}
form {
display: flex;
flex-direction: column;
align-items: center;
}
input[type="text"] {
margin-bottom: 20px;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
width: 70%;
max-width: 500px;
box-sizing: border-box;
font-size: 16px;
height: 40px;
}
input[type="submit"] {
padding: 10px 20px;
border: none;
border-radius: 5px;
background-color: #007bff;
color: white;
cursor: pointer;
font-size: 16px;
}
input[type="submit"]:hover {
background-color: #0056b3;
}
@media (max-width: 768px) {
body {
padding: 10px;
}
input[type="text"] {
width: 100%;
}
}
iframe {
width: 80%;
height: 100vh;
border: none;
border-radius: 15px; /* 添加圆角 */
}
</style>
</head>
<body>
<div>
<h1>❀❀❀一颗树洞❀❀❀</h1>
<h1>❀❀❀欢迎来到网络图片地址整理相册❀❀❀</h1>
<form id="welcomeForm">
<input type="text" id="username" pattern="[a-zA-Z0-9]{6,}" required placeholder="给自己取一个酷酷的名字吧,6个以上英文及数字字符">
<input type="submit" value="进入相册">
</form>
</div>
<script>
document.getElementById('welcomeForm').onsubmit = function(event) {
event.preventDefault();
const username = document.getElementById('username').value;
window.location.href = `/postalb.html?username=${username}`;
};
</script>
<!-- 在这里嵌入iframe -->
<iframe src="./listdbwall.html"></iframe>
</body>
</html>