forked from netptop/siteproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
201 lines (199 loc) · 5.46 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>SiteProxy API</title>
<link
rel="shortcut icon"
href="./favicon.png"
type="image/x-icon"
/>
<link
rel="stylesheet"
href="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/6.0.0/css/all.min.css"
/>
<style>
:root {
--text-color: #000;
--text-color-gray: #888;
--text-color-hover: #fff;
--icon-color: #444;
}
html.dark-mode {
--text-color: #fff;
--text-color-gray: #888;
--text-color-hover: #3c3c3c;
--icon-color: #cbcbcb;
}
* {
margin: 0;
padding: 0;
-webkit-user-select: none;
user-select: none;
}
html {
height: 100%;
}
body {
background-color: var(--text-color-hover);
color: var(--text-color);
font-family: "PingFang SC", "Open Sans", "Microsoft YaHei", sans-serif;
transition: background-color 0.5s, color 0.5s;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
height: 100%;
}
.dark-mode body {
background-color: #2a2a2a;
}
main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
}
a {
text-decoration: none;
color: var(--text-color-gray);
transition: all 0.5s ease;
}
a:hover {
color: var(--text-color);
}
.ico {
margin: 4rem 2rem;
font-size: 6rem;
color: var(--text-color-gray);
}
.title {
font-size: 2rem;
font-weight: bold;
}
.tip {
padding: 8px 12px;
background-color: var(--text-color-gray);
color: var(--text-color-hover);
border-radius: 8px;
font-size: 14px;
}
.text {
margin: 1rem;
}
.control button {
background-color: var(--text-color-hover);
border: var(--text-color) solid;
border-radius: 4px;
padding: 0.5rem 1rem;
transition: all 0.5s ease;
margin: 1rem 0.2rem;
color: var(--text-color);
cursor: pointer;
}
.control button:hover {
border: var(--text-color) solid;
background: var(--text-color);
color: var(--text-color-hover);
}
.control button i {
margin-right: 6px;
}
footer {
line-height: 1.75rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 140px;
}
footer .social {
color: var(--icon-color);
font-size: 15px;
display: flex;
align-items: center;
cursor: pointer;
}
footer .social i {
margin: 0 12px;
}
footer .point::before {
content: "·";
color: var(--text-color-gray);
}
.power,
.icp {
font-size: 14px;
}
</style>
</head>
<body>
<main>
<div class="ico"><i class="fa-solid fa-code"></i></div>
<div class="title">SiteProxy API</div>
<div class="text">服务已正常运行</div>
<div class="tip">本服务为SPlayer提供音乐动力支持</div>
<div class="control">
<button onclick="window.open(`https://music.arsn.cn/search/songs?keywords=%E6%9E%97%E4%BF%8A%E6%9D%B0&page=1`)">
<i class="fa-solid fa-vial"></i>
<span>测试接口</span>
</button>
</div>
</main>
<footer>
<div class="social">
<i class="fa-brands fa-github" onclick="socialJump('github')"></i>
<div class="point"></div>
<i class="fa-solid fa-house" onclick="socialJump('home')"></i>
<div class="point"></div>
<i class="fa-solid fa-envelope" onclick="socialJump('email')"></i>
</div>
<div class="power">
Copyright ©
<script>
document.write(new Date().getFullYear());
</script>
<a href="https://www.arsn.cn/" target="_blank">ArSn</a>
</div>
<div class="icp">
本站内容源自互联网,如有内容侵犯了你的权益,请联系删除相关内容,联系邮箱:[email protected]
</div>
</footer>
<script>
// 跟随系统主题
const darkModeMediaQuery = window.matchMedia(
"(prefers-color-scheme: dark)"
);
const toggleDarkMode = (darkModeMediaQuery) => {
if (darkModeMediaQuery.matches) {
document.documentElement.classList.add("dark-mode");
} else {
document.documentElement.classList.remove("dark-mode");
}
};
darkModeMediaQuery.addListener(toggleDarkMode);
toggleDarkMode(darkModeMediaQuery);
// 按钮事件
const clickFunction = () => {
window.location.href = "https://music.arsn.cn/search/songs?keywords=%E6%9E%97%E4%BF%8A%E6%9D%B0&page=1";
};
// 社交链接跳转
const socialJump = (type) => {
switch (type) {
case "github":
window.location.href = "https://github.com/arsnyeon/";
break;
case "home":
window.location.href = "https://www.arsn.cn/";
break;
case "email":
window.location.href = "mailto:[email protected]";
break;
default:
break;
}
};
</script>
</body>
</html>