-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
56 lines (49 loc) · 1.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title></title>
<link rel="stylesheet" href="css.css"/>
<style>
body {
display: table;
width: 100%;
}
div {
text-align: center;
}
.con {
display: table-cell;
vertical-align: middle;
}
.text {
line-height: 1.5;
}
</style>
</head>
<body>
<div class="con">
<div class="title">跃迁引擎启动=)</div>
<div class="text">“JS的ImagePacks2目录注释工具”现已由<span style="color: red">公共组群</span>管理!</div>
<div class="text">您的页面即将跳转到新的地址!</div>
<div class="text">跃迁进程将于 <span class="count">500</span> 秒后开始</div>
<div class="text"><a href="https://dnfimagepacks2noteuploaders.github.io/DNFImagePacks2Note/" style="color: red">点击这里立即跳转!</a>
</div>
</div>
<script>
var body = document.getElementsByTagName('body')[0];
var title = document.getElementsByClassName('title')[0];
var text = document.getElementsByClassName('text');
var count = document.getElementsByClassName('count')[0];
var countDown = 500;
title.style.fontSize = Math.floor(body.offsetWidth / title.innerText.length) + 'px';
for (i = 0; i < text.length; i++) {
text[i].style.fontSize = Math.floor(body.offsetWidth / text[0].innerText.length) + 'px';
}
window.onload = setInterval(function () {
count.innerText = countDown--
}, 50)
</script>
</body>
</html>