-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod.html
349 lines (310 loc) · 14.2 KB
/
mod.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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<!DOCTYPE html>
<html lang="cn">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>mod</title>
<!-- MDB icon -->
<link rel="icon" href="img/mdb-favicon.ico" type="image/x-icon" />
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.15.2/css/all.css"
/>
<!-- Google Fonts Roboto -->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"
/>
<!-- Dark MDB theme -->
<script type="text/javascript">
function setStyle(title) {
//预定义变量
var i, links;
//用DOM方法获得所有的link元素
links = document.getElementsByTagName("link");
for(i=0; links[i]; i++) {
//判断此link元素的rel属性中是否有style关键字
//即此link元素是否为样式表link
//同时判断此link元素是否含有title属性
if(links[i].getAttribute("rel").indexOf("style") != -1
&& links[i].getAttribute("title")) {
//先不管三七二十一把它设为disabled
links[i].disabled = true;
//再判断它的title中是否有我们指定的关键字
if(links[i].getAttribute("title").indexOf(title) != -1)
//如果有则将其激活
links[i].disabled = false;
}
}
}
</script>
<link rel="stylesheet" type="text/css"
title="主题A" href="css/mdb.min.css" />
<link rel="alternate stylesheet" type="text/css"
title="主题B" href="css/mdb.dark.min.css" />
<!-- Regular MDB theme -->
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<script type="text/javascript">
function changeStyle(t) {
$('link[title]').each(function() {
this.disabled = true;
this.disabled = this.title != t;
});
return false;
}
</script>
<header>
<!-- Intro settings -->
<style>
#intro {
/* Margin to fix overlapping fixed navbar */
margin-top: 58px;
}
@media (max-width: 991px) {
#intro {
/* Margin to fix overlapping fixed navbar */
margin-top: 45px;
}
}
</style>
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
<!-- Container wrapper -->
<div class="container-fluid">
<!-- Navbar brand -->
<a class="navbar-brand" href="/index.html">PixalOJ</a>
<!-- Toggle button -->
<button
class="navbar-toggler"
type="button"
data-mdb-toggle="collapse"
data-mdb-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
<i class="fas fa-bars"></i>
</button>
<!-- Collapsible wrapper -->
<div
class="collapse navbar-collapse"
id="navbarSupportedContent"
>
<!-- Left links -->
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/index.html"
>首页</a
>
</li>
<li class="nav-item">
<a class="nav-link" href="/px2/problems.html">题库</a>
</li>
<!-- Navbar dropdown -->
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdown"
role="button"
data-mdb-toggle="dropdown"
aria-expanded="false"
>
社区
</a>
<!-- Dropdown menu -->
<ul
class="dropdown-menu"
aria-labelledby="navbarDropdown"
>
<li><a class="dropdown-item" href="https://github.com/PixalOJ/px2/discussions">讨论</a></li>
<li>
<a class="dropdown-item" href="#">题解</a>
</li>
<li>
<hr class="dropdown-divider" />
</li>
<li>
<a class="dropdown-item" href="#"
>反馈/建议</a
>
</li>
</ul>
</li>
<li class="nav-item">
<a
class="nav-link"
href="/px2/competition.html"
>比赛</a
>
</li>
<li class="nav-item">
<a
class="nav-link disabled"
href="#"
tabindex="-1"
aria-disabled="true"
>团队(不可用)</a
>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdown"
role="button"
data-mdb-toggle="dropdown"
aria-expanded="false"
>
博客
</a>
<!-- Dropdown menu -->
<ul
class="dropdown-menu"
aria-labelledby="navbarDropdown"
>
<a class="dropdown-item" href="/px2/blogcenter.html">博客中心</a>
<li>
<a class="dropdown-item" href="https://pixaloj.github.io/PixalBlog">Pixal
OJ官方博客</a>
</li>
<li>
<hr class="dropdown-divider" />
</li>
<li>
<a class="dropdown-item" href="https://pixaloj.github.io/px2/blogsign.html"
>我要登记</a
>
</li>
</ul>
</li>
<!-- Left links -->
</div>
<ul class="navbar-nav ms-auto d-flex flex-row">
<a href="#" onclick="setStyle('主题A')"><button type="button" class="btn btn-light btn-rounded">
Light
</button></a>
<a href="#" onclick="setStyle('主题B')"><button type="button" class="btn btn-dark btn-rounded">
Dark
</button></a>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle hidden-arrow d-flex align-items-center" href="#"
id="navbarDropdownMenuLink" role="button" data-mdb-toggle="dropdown" aria-expanded="false">
<img src="https://mdbootstrap.com/img/Photos/Avatars/img (31).jpg" class="rounded-circle" height="22"
alt="" loading="lazy" />
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="/px2/admin.html#dash">公开后台</a></li>
<li><a class="dropdown-item" href="#">设置</a></li>
<li><a class="dropdown-item" href="#">退出</a></li>
</ul>
</li>
</ul>
</div>
<!-- Collapsible wrapper -->
<!-- Container wrapper -->
</nav>
<!-- Navbar -->
<br>
<br>
<!-- Start your project here-->
<!-- Section: Components -->
<div id="intro" class="p-5 text-center bg-grey">
<h1><strong>Temp</strong></h1>
<p>Lorem epsum</p>
</div>
</header>
<main class="my-5">
<div class="container">
</div>
</main>
<footer class="">
<!-- Grid container -->
<div class="container p-2">
<!--Grid row-->
<div class="row">
<!--Grid column-->
<div class="col-lg-4 col-md-6 mb-4 mb-md-0">
<h5 class="text-uppercase">状态</h5>
<ul class="list-unstyled">
<li>
<a href="#!" class="text">服务状态</a>
</li>
</ul>
</div>
<div class="col-lg-4 col-md-6 mb-4 mb-md-0">
<h5 class="text-uppercase">支持</h5>
<ul class="list-unstyled">
<li>
<a href="/support/" class="text">帮助</a>
</li>
</ul>
</div>
<!--Grid column-->
<div class="col-lg-4 col-md-6 mb-4 mb-md-0">
<h5 class="text-uppercase">备用网址</h5>
<ul class="list-unstyled">
<li>
<a href="https://px2.pages.dev">Cloudflare</a>
</li>
</ul>
</div>
<!--Grid column-->
<!--Grid column-->
<div class="col-lg-4 col-md-6 mb-4 mb-md-0">
<ul class="list-unstyled">
<li>
Supported by
<a href="https://apple.com" class="text-light"><button type="button" class="btn btn-dark btn-floating btn-lg">
<i class="fab fa-apple"></i></a>
</li>
</ul>
</div>
<!--Grid column-->
</div>
<!--Grid row-->
</div>
<!-- Grid container -->
<!-- Copyright -->
<div class="row">
<!--Grid column-->
<div class="col-lg-6 col-md-12 mb-4">
<div class="card mb-4">
<div class="card-body">
<p class="card-text">
© 2021 PixalOJ.
</p>
</div>
</div>
</div>
</button>
<!--Grid column-->
<div class="col-lg-6 col-md-12 mb-4">
<div class="card mb-4">
<div class="card-body">
<p class="card-text text-end">
PixalOJ
</p>
</a>
</div>
</div>
</div>
<!--Grid column-->
</div>
<!--Grid row-->
</footer>
<!-- End your project here-->
<!-- MDB -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- Custom scripts -->
<script type="text/javascript">
</script>
</body>
</html>