-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
396 lines (344 loc) · 16.3 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
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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
<!-- saved from url=(0037)https://andu1n.github.io/Key/pzx.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width">
<title>请假外出、返校权限查询通行码</title>
<style>
body {
background: #f2f2f2;
margin: 0;
padding: 0;
font-family: "Microsoft YaHei";
color: #333;
}
#main {
display: flex;
width: 100vw;
flex-direction: column;
position: absolute;
background: #f2f2f2;
min-height: 100vh;
}
#menu {
background: white;
display: inline-block;
height: 50px;
line-height: 50px;
color: #878787;
font-size: 16px;
background: #fff;
position: relative;
border-bottom: .01rem solid #ececec;
padding-left: 5px;
z-index: 2;
}
#menu span {
display: inline-block;
border-bottom: 3px solid #4285f4;
height: 100%;
box-sizing: border-box;
width: 150px;
text-align: center;
}
#button {
margin: 10px;
background: white;
padding: 16px;
font-size: 12px;
font-family: PingFang SC;
font-weight: bold;
color: #333;
}
#button img {
height: 1.25em;
width: 1.25em;
line-height: 100%;
vertical-align: middle;
margin-right: 5px;
}
.title {
color: rgb(135, 135, 135);
font-size: 14px;
font-family: 微软雅黑;
padding: 8px;
padding-left: 16px;
}
.value {
font-size: 14px;
color: rgb(96, 98, 102);
text-decoration: none;
text-align: center;
/* line-height: 50px; */
background: white;
padding: 16px;
}
#title-status {
font-size: 18px;
}
#status {
color: rgb(57, 132, 41);
font-weight: bold;
font-size: 18px;
}
#hint {
height: 50px;
text-align: center;
color: rgb(135, 135, 135);
font-size: 14px;
position: absolute;
width: 100%;
margin-top: 20px;
}
#more {
position: fixed;
bottom: 0;
height: 50px;
background: white;
width: 100%;
padding-left: 20px;
}
#more button {
outline: none;
border: 1px solid #4285f4;
background: unset;
border-radius: 20px;
font-size: 18px;
padding: 5px 20px;
display: inline-block;
margin: 10px;
color: #4285f4;
cursor: pointer;
}
#footer {
position: fixed;
bottom: 0;
height: 120px;
width: 100%;
}
#footer p {
background: white;
padding: 10px;
text-align: center;
color: #4285f4;
cursor: pointer;
}
#modal {
position: absolute;
z-index: 3;
}
#modal .modal-body {
background: white;
width: 700px;
height: 500px;
padding: 20px;
}
#modal table {
margin: 20px;
border: 1px solid;
}
#modal td {
text-align: center;
padding: 10px;
}
#modal .modal-close {
width: 1em;
background: white;
display: inline-block;
height: 1em;
padding: 5px;
border-radius: 100%;
text-align: center;
vertical-align: top;
top: 0;
line-height: 100%;
font-weight: bold;
margin: 20px;
}
.colorful {
position: relative;
height: 42.38px;
margin-top: 7px;
width: 100%;
background-color: #fff;
}
.colorful .color {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
height: 25px;
width: 93%;
background-color: #19A33D;
animation: color 3s steps(1) 2s infinite normal;
}
@keyframes color {
14.28% {
background-color: #943C97;
}
28.57% {
background-color: #F96F1C;
}
42.85% {
background-color: #333BC2;
}
57.14% {
background-color: #E7181F;
}
71.42% {
background-color: #FDF100;
}
85.71% {
background-color: #0094E1;
}
100% {
background-color: #19A33D;
}
}
</style>
</head>
<body>
<div id="hint">网页由 service.bupt.edu.cn 提供</div>
<div id="main">
<div id="button"><img src="./请假外出、返校权限查询通行码_files/first.png">当前部门:信息与通信工程学院
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAYCAYAAACMcW/9AAAB4ElEQVRYR83VO0sDQRAA4Nm9LfMbBBEsBC1EEFGUJblcOEihP8Je8YnYiPhErf0Rlja729j4C6wUE1+o+AAtlMiaHTmJcsYkbi6R3FVX7Mx+Nzs7RwAAhBCCEOIG73F8KKU+UUqNI+JuHIEh03UAPUDE4ZhD34mUcg8AxmIPVUoNIOJhzKH7JABKKScAYDuOWES8SiQSnZ/QEnYaADZihj1mjI1wzm+/oaUxtUQIWYwJNo+IQ+l0+jrw/ICWKrsAAMstxt5prdt833/7cvyCthpLCDlzHGcgOO5wsSpCW4g9oZS6yWTyvPxEq0JbgL0wxnR5nvdSqe1qQoMApdQMIq7/c8/eaK3bwz1ZV0W/Fiul5hFx5Z+wuWKxOJTJZG5q5f+zoqE5OwcAq03G5hhjg+UXJ9LRh4Oa3Aa3hUKhI5vNvtp8vHVFm9wGl4yxXs75gw2y4sC3CWywsnmtdb/v+/c2e9Uc+DYJlFKTiLhlsza05hIAul3Xfa4z7vcvtJ4EQohZQsiaTUzwxwGAvlQq9WizPtJ4qpXYEpsv9eRTFGTkHi3fTEo5BQCbVRAXANAT5bjD+eq+9dUqUgV7ZIxJep53F7WSDV+mShsLIUYppSPGmASl9NRxnB3OeaFRZBD/ATVSvUcGtzefAAAAAElFTkSuQmCC" alt="" style="float: right;width: 9px;height: 5px;margin-top: 10px;"></div>
<div id="button" style="margin-top:-3px;"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAYAAABxlTA0AAAFrUlEQVR4Xu2cW2gcVRjH/99s1zbZ2Uot6ot9EcRLKZSK2toHsxtsrDdsVUTwqUpfvCAtVbOzwU27kxopFa2CpQUfRASlNkHofWdjRYooingpKKJUvIANaPcSmzbzyZQUkk1s9pydL860Z173O//vf37nn2TnnMwQzCVKgETVjTgMYOEQGMAGsDABYXmTYANYmICwvEmwASxMQFjeJNgAFiYgLG8SbAALExCWDyXBK/v/TM8da3sSjIcA3CzsWVCefgR4IOGP7Tzcc/kPYTRqGXCmr3Y3mN8kYFEYhiKiwQw4Zcfe2qqflgBn3Np6Au9s1URkxzPe8vL2ulb8aQPOuNUuAg600jwWYxkveXm7W9erFuAV27mtbaT2K4AFUxoTvgXjCMB/6Zqa7XHMSMKi24nRMV1vy6JlR7pTX+r40gKccaubCHi5sSEBz5Yc+1UdI1EYk91aXQUf7wOY3+DnsJdLdYGIVX1qAc661eMAbpjcjJ/xnPQOVQNRq+9wq0st4Aug4TDCQpfXbR9S9asLuHElj3uOfZNq86jWZ93KLoCeaPDX7zn2C6qewwHM2Obl7U2qzaNan+mr3U/Mgw3+3vMc+xFVz+EAJurxcqmiavOo1me3VLKwqDTRH4EHS076AVXP4QAGFTwn1avaPKr1nW71TgYaft/ygOek16h6Dgkw93pOuqDaPKr1498mDjb8Ed/rOem1qp4N4GmIxR5wsDmkmoRW6z95/spKsxqxBZzZXFlsJbCbQYubnWyIdb8xs1POp/fMpBlLwIUCW0eTtW8A3DjTBCU/n+Mnrj3U0/bThXrEEvD4/kVdEl4z2kx0TzmX2nfRAQ4mlHUrHwCk/FWnGXBN1pz0z5y5b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sD/heGWaSG+I43tQAAAABJRU5ErkJggg==">请假外出、返校权限查询
</div>
<div id="title-name" class="title">姓名</div>
<div id="name" class="value">
张三
</div>
<div id="title-college" class="title">照片</div>
<div id="code" class="value">
<!-- <select id = "picId" onclick = "change()">
<option>lwr</option>
<option>xyy</option>
</select> -->
<img id="picurl" src="./pics.jpg" style="width:115px;height:115px;border-radius:5px;">
</div>
<script>
function change(){
var pic = document.getElementById("picId").value;
console.log(pic);
var p = document.getElementById("picurl");
p.style.display = block;
}
</script>
<div class="colorful">
<div class="color"></div>
</div>
<div class="zhuangtaima">状态码</div>
<div id="code" class="value"><img src="./绿码.jpg" style="width:166.5px;height:166.5px;">
</div>
<div id="status" class="value" style="margin-top:10px;">允许入校</div>
<div id="title-id" class="title">学工号</div>
<div id="id" class="value">2018****</div>
<div id="title-time" class="title">出入校时间</div>
<div id="time" class="value">20**-**-** 11:25:53</div>
<div id="title-college" class="title">学院</div>
<div id="college" class="value">信息与通信工程学院</div>
<div style="height:100px"></div>
</div>
<div id="more">
<button onclick="javascript:clickMore()">更多</button>
</div>
<div id="footer" style="display:none">
<p onclick="javascript:clickModal()">预览表单</p>
<p onclick="javascript:clickCancel()">取消</p>
</div>
<script>
function clickMore() {
var main = document.getElementById("main")
var more = document.getElementById("more");
var footer = document.getElementById("footer");
var modal = document.getElementById("modal");
main.style.filter = "brightness(0.5)";
main.onclick = clickCancel;
more.style.display = "none";
footer.style.display = "";
modal.style.display = "none";
}
function clickCancel() {
var main = document.getElementById("main")
var more = document.getElementById("more");
var footer = document.getElementById("footer");
var modal = document.getElementById("modal");
main.style.filter = "";
main.onclick = undefined;
more.style.display = "";
footer.style.display = "none";
modal.style.display = "none";
}
function clickModal() {
var main = document.getElementById("main")
var more = document.getElementById("more");
var footer = document.getElementById("footer");
var modal = document.getElementById("modal");
main.style.filter = "brightness(0.5)";
main.onclick = clickCancel;
more.style.display = "none";
footer.style.display = "none";
modal.style.display = "";
}
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) { return decodeURI(pair[1]); }
}
return (false);
}
window.onload = function () {
var time = document.getElementById("time");
var timeTD = document.getElementById("time2");
var date = new Date();
time.innerText = `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, 0)}-${(date.getDate()).toString().padStart(2, 0)} ${(date.getHours()).toString().padStart(2, 0)}:${(date.getMinutes()).toString().padStart(2, 0)}:${(date.getSeconds()).toString().padStart(2, 0)}`;
timeTD.innerText = time.innerText;
var keys = ["name", "college", "status", "id"]
keys.map(function (key) {
var data = getQueryVariable(key)
if (!!data) {
try {
var div = document.getElementById(key);
div.innerText = data;
} catch{ }
try {
var td = document.getElementById(`${key}2`);
td.innerText = data;
}
catch{ }
}
})
var app = document.getElementById("main");
var touchstartY;
app.addEventListener("touchstart", function (event) {
var events = event.touches[0] || event;
touchstartY = events.clientY;//获取触摸目标在视口中的y坐标
}, false);
app.addEventListener("touchmove", function (event) {
var events = event.touches[0] || event;
//注意document.body.scrollTop始终为0
var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;//获取滚动部分的高度
var clientHeight = document.documentElement.clientHeight;//获取手机屏幕高度(可视部分高度)
var scrollHeight = document.body.scrollHeight;//所有内容的高度
if (events.clientY > touchstartY && scrollTop === 0 && event.cancelable) {
// console.log(events.clientY, touchstartY)
app.style.top = Math.sqrt(Math.pow(events.clientY - touchstartY, 1.5));
event.preventDefault();//禁止到顶下拉
}
}, false);
app.addEventListener("touchend", function (event) {
app.style.transition = 'top 0.25s';
app.style.top = 0;
setTimeout(() => {
app.style.transition = '';
}, 500);
}, false);
//document.write("请按照规定使用官方途径申请绿码出入校");
}
</script>
<div class="xl-chrome-ext-bar" id="xl_chrome_ext_{4DB361DE-01F7-4376-B494-639E489D19ED}" style="display: none;">
<div class="xl-chrome-ext-bar__logo"></div>
<a id="xl_chrome_ext_download" href="javascript:;" class="xl-chrome-ext-bar__option">下载视频</a>
<a id="xl_chrome_ext_close" href="javascript:;" class="xl-chrome-ext-bar__close"></a>
</div></body></html>