-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
211 lines (185 loc) · 4.62 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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex,nofollow" />
<meta name="viewport" content="width=device-width">
<link rel="shortcut icon" href="https://github.com/xrgzs/sdlp/assets/26499123/1b2af287-6ee9-4795-9404-83b9687d7cf4">
<script src="https://s4.zstatic.net/npm/marked/marked.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="https://s4.zstatic.net/ajax/libs/highlight.js/11.9.0/languages/nginx.min.js"></script>
<title>SDLP</title>
<style>
:root {
--body-bg: #fff;
--container-bg: #f0f0f0da;
--code-bg: #e9e9e9da;
--text-color: #404f46;
--theme-color: #48ad70;
}
@media (prefers-color-scheme: dark) {
:root {
--body-bg: #212121;
--container-bg: #242424d9;
--code-bg: #1a1a1abf;
--text-color: #e4e4e4e3;
--theme-color: #85ad95;
}
}
body,
html {
height: 100%;
display: flex;
flex-direction: column;
color: var(--text-color);
}
body {
background-image: url('wall/alist.php');
background-color: var(--body-bg);
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
background-position: center;
}
.container {
width: 888px;
margin: auto;
margin-bottom: 2%;
background-color: var(--container-bg);
border-radius: 10px;
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
@media (max-width: 888px) {
width: 90%;
padding: 5% 5%;
}
}
ul {
padding-left: 20px;
}
ul li {
line-height: 2.3;
}
a {
color: var(--theme-color);
word-break: break-word;
}
footer {
text-align: center;
margin-top: auto;
background-color: var(--container-bg);
border-radius: 18px;
backdrop-filter: blur(18px);
font-size: 0.9em;
}
img {
border-radius: 10px;
max-width: 100%;
}
h2 {
background-color: var(--theme-color);
color: var(--body-bg);
padding: 5px 12.5px;
border-radius: 4px;
display: inline-block;
}
h1,
h3 {
color: var(--theme-color);
}
code {
padding: 2px 4px 2px;
border-radius: 3px;
margin: 2px;
background-color: var(--code-bg);
word-break: break-all;
}
pre code.hljs {
display: block;
overflow-x: auto;
padding: 1em
}
code.hljs {
padding: 3px 5px;
border-radius: 10px;
}
.hljs {
color: var(--text-color);
}
.hljs-keyword,
.hljs-link,
.hljs-literal,
.hljs-section,
.hljs-selector-tag,
.hljs-comment,
.hljs-deletion,
.hljs-meta,
.hljs-quote {
color: var(--text-color);
}
.hljs-addition,
.hljs-attribute,
.hljs-built_in,
.hljs-bullet,
.hljs-name,
.hljs-string,
.hljs-symbol,
.hljs-template-tag,
.hljs-template-variable,
.hljs-title,
.hljs-type,
.hljs-variable {
color: var(--theme-color);
}
.hljs-doctag,
.hljs-keyword,
.hljs-literal,
.hljs-name,
.hljs-section,
.hljs-selector-tag,
.hljs-strong,
.hljs-title,
.hljs-type {
font-weight: 700
}
.hljs-emphasis {
font-style: italic
}
</style>
<body>
<div class="container">
<div style="padding: 2% 5%;">
<div id="content">
<div align="center">
<img src="https://github.com/xrgzs/sdlp/assets/26499123/1b2af287-6ee9-4795-9404-83b9687d7cf4"
alt="XRSOFT_LOGO_ROUND_1024" width="20%">
<h1>SDLP</h1>
<p>Xiaoran Studio's APIs</p>
<button onclick="loadMore()"
style="background-color: var(--theme-color); color: var(--body-bg); border: none; border-radius: 5px; padding: 10px 20px; cursor: pointer;">
加载更多
</button>
<p></p>
</div>
</div>
<script>
function loadMore() {
fetch('readme.md')
.then(response => response.text())
.then(text => {
const html = marked.parse(text.replace(/your-domain/g, window.location.host));
document.getElementById('content').innerHTML = html;
hljs.highlightAll();
})
.catch(error => {
console.error('Error fetching or parsing data:', error);
});
};
</script>
</div>
</div>
<footer>
<p>© 2025 <a href='https://www.xrgzs.top/'>Xiaoran Studio</a></p>
</footer>
</body>
</html>