-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
246 lines (240 loc) · 6.27 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>我的小站</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f0f0f0; /* 默认背景颜色 */
font-family: Arial, sans-serif;
}
.header {
display: flex;
flex-direction: row;
justify-content: center;
width: 100%;
margin-bottom: 40px;
}
.header h1, .header h2, .header h3 {
margin: 0 10px;
}
.button-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
margin-bottom: 20px;
}
.button {
background-color: #3498db;
color: white;
border: none;
padding: 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 10px;
transition: background-color 0.3s;
}
.button:hover {
background-color: #2980b9;
}
body {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f0f0f0; /* 默认背景颜色 */
font-family: Arial, sans-serif;
}
.header {
display: flex;
flex-direction: row;
justify-content: center;
width: 100%;
margin-bottom: 40px;
}
.header h1, .header h2, .header h3 {
margin: 0 10px;
}
.button-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
}
.button {
background-color: #3498db;
color: white;
border: none;
padding: 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 10px;
transition: background-color 0.3s;
}
.button:hover {
background-color: #2980b9;
}
body {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}
.header {
display: flex;
flex-direction: row;
justify-content: center;
width: 100%;
margin-bottom: 40px;
}
.header h1, .header h2, .header h3 {
margin: 0 10px;
}
.button-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
}
.button {
background-color: #3498db;
color: white;
border: none;
padding: 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 10px;
transition: background-color 0.3s;
}
.button:hover {
background-color: #2980b9;
}
</style>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<h1>欢迎来到我的小站👏</h1>
<h2>by梅布斯乔治</h2>
<h3>实名🙋:张晓雨</h3>
<div class="button-container">
<button class="button" onclick="location.href='project.html'">我的项目</button>
<button class="button" onclick="location.href='README.md'">个人信息</button>
<button class="button" onclick="location.href='https://github.com/Mbilse'">看看主页</button>
<button class="button" onclick="location.href='https://github.com/Mbilse/Mbilse.github.io'">看看仓库</button>
<button class="button" onclick="location.href='mydpy.html'">我的朋友</button>
<button class="button" onclick="location.href='more.html'">更多</button>
<button class="button" onclick="location.href='settings'">设置</button>
<button class="button" onclick="promptForColor()">输入口令</button>
</div>
<script>
function changeColor(color) {
const colors = {
'gray': '#f0f0f0',
'blue': '#3498db',
'green': '#2ecc71',
'red': '#e74c3c'
};
document.body.style.backgroundColor = colors[color];
}
function promptForColor() {
const buttons = document.querySelectorAll('.button');
const colorCode = prompt('请贴粘从网站端复制的口令:');
switch (colorCode) {
case 'color000000':
changeColor('gray');
break;
case 'color000001':
changeColor('blue');
break;
case 'color000002':
changeColor('green');
break;
case 'color000003':
changeColor('red');
break;
case 'b-color000000':
buttons.forEach(btn => btn.style.backgroundColor = '#000000'); // 黑色
break;
case 'b-color000001':
buttons.forEach(btn => btn.style.backgroundColor = '#3498db'); // 蓝色
break;
case 'b-color000002':
buttons.forEach(btn => btn.style.backgroundColor = '#2ecc71'); // 绿色
break;
case 'b-color000003':
buttons.forEach(btn => btn.style.backgroundColor = '#e74c3c'); // 红色
break;
case 'wpe000000':
// 选择颜色作为背景
const color = prompt('颜色(英语)或十六进制:');
document.body.style.background = color;
break;
case 'b-color000004':
buttons.forEach(btn => btn.style.backgroundColor = '#f0f0f0'); // 灰色
break;
case 'z-color000000':
buttons.forEach(btn => btn.style.color = '#000000'); // 黑色
break;
case 'z-color000004':
buttons.forEach(btn => btn.style.color = '#f0f0f0'); // 灰色
break;
case 'z-color000005':
buttons.forEach(btn => btn.style.color = '#ffffff'); // 白色
break;
case 'z-color000001':
buttons.forEach(btn => btn.style.color = '#3498db'); // 蓝色
break;
case 'z-color000002':
buttons.forEach(btn => btn.style.color = '#2ecc71'); // 绿色
break;
case 'z-color000003':
buttons.forEach(btn => btn.style.color = '#e74c3c'); // 红色
break;
case 'dgm000000':
buttons.forEach(btn => {
btn.style.borderRadius = '50%'; // 圆形
});
break;
case 'dgm000001':
buttons.forEach(btn => {
btn.style.borderRadius = '10px'; // 圆角矩形
});
break;
case 'dgm000002':
buttons.forEach(btn => {
btn.style.borderRadius = '0px'; // 矩形
});
break;
default:
alert('无效的口令!');
}
}
</script>
</body>
</html>