-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathback.html
74 lines (71 loc) · 2.69 KB
/
back.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>入校登记</title>
<script src="static/fakeme.umd.min.js"></script>
<link rel="stylesheet" href="static/bootstrap.min.css" />
<style>
.content{
width:90%;
}
.jobnum{
font-size: 3rem;
}
</style>
</head>
<body style="background-image:url(static/bg16.jpg);">
<div class="container-fluid content">
<br><br>
<div class="alert alert-success">
<strong style="font-size: 2rem;">已成功登记入校</strong>
</div>
<div id="time" style="background:#FFF;width:100%;text-align:center;font-size:32px;font-weight:bold;"></div>
<br>
<ul class="list-group">
<li class="list-group-item" style="font-weight: bold;font-size: 2rem;color:#C71585;">学生信息:</li>
<li id="code_txt" class="list-group-item"> 学号:200203280116</li>
<li id="name_txt" class="list-group-item"> 姓名:庞文权</li>
<li class="list-group-item"> 班级:20大数据1班</li>
</ul>
</div>
<script type="text/javascript">
function settime(){
var date = new Date();//获得当前时间
var yy = date.getFullYear();//年份
var mm = date.getMonth() + 1;//获得月份
mm = (mm < 10 ? "0" + mm : mm);//月份小于10时,前面加个0(例如9 ->09)天,小时,分钟,秒同理
var dd = (date.getDate() < 10 ? "0" + date.getDate() : date.getDate());//天
var hours = (date.getHours() < 10 ? "0" + date.getHours() : date.getHours());//小时
var minutes = (date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes());//分钟
var seconds = (date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds());//秒
document.getElementById("time").innerHTML = yy + '-' + mm + "-" + dd + " " + hours + ':' + minutes + ':' + seconds;
}
settime();
setInterval("settime()", 1000);
</script>
<script type="text/javascript">
let code = function () {
let num = parseInt(Math.random()*40+1);
if (num < 10) {
return '0' + num;
} else {
return num;
}
}
let name = function(){
let fm = new FakeMe({ sex: "male" });
let name = fm.name()[0];
while (true) {
if (name.length != 3) {
name = fm.name()[0];
} else {
return name;
break;
}
}
}
</script>
</body>
</html>