-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (55 loc) · 1.52 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
<!doctype html>
<html lang="zh-Hans">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="keywords" content="web前端, javascript" />
<meta name="description" content="学无止境">
<meta property="og:type" content="website">
<meta property="og:title" content="凌晨五点的洛杉矶">
<meta property="og:url" content="http://yoursite.com/index.html">
<meta property="og:site_name" content="凌晨五点的洛杉矶">
<meta property="og:description" content="学无止境">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="凌晨五点的洛杉矶">
<meta name="twitter:description" content="学无止境">
<title>一个瞎捣鼓的地</title>
<style>
body {
margin: 0;
background: cadetblue;
}
div {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0, 0, 0, .1)
}
span {
color: #fff;
font-size: 20px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%)
}
</style>
</head>
<body>
<div><span>装修中...敬请期待...</span></div>
<script>
function ani(text) {
document.getElementsByTagName('span')[0].innerHTML = text;
}
var whichOne = ['', '.', '..', '...'];
var length = 4, index = 0;
setInterval(() => {
ani('装修中...敬请期待' + whichOne[index]);
index = index < length - 1 ? (index + 1) : 0
}, 600);
</script>
</body>
</html>