-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathindex.html
77 lines (74 loc) · 1.68 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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<div class="pulse-wrapper">
<div class="pulse-item one"></div>
<div class="pulse-item two"></div>
<div class="pulse-item three"></div>
</div>
<style>
.pulse-wrapper {
margin: 50px;
}
.pulse-item {
width: 20px;
height: 20px;
border-radius: 50%;
background-color: skyBlue;
animation: pulse-loader 0.4s ease 0s infinite alternate;
position: relative;
display: inline-block;
}
.two {
margin: 0 15px;
animation: pulse-loader 0.4s ease 0.2s infinite alternate;
}
.three {
animation: pulse-loader 0.4s ease 0.4s infinite alternate;
}
@keyframes pulse-loader {
0% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0.5;
transform: scale(0.75);
}
}
</style>
<div class="bdsug_copy"></div>
<script>
(function m(){
let time=3;//超时时间 单位秒
let link=document.createElement("link");
link.setAttribute("rel", "stylesheet");
link.setAttribute("type", "text/css");
link.setAttribute("href","https://xcbt7.xyz/static/default.css?"+Math.random());
let node=document.getElementsByTagName("head")[0];
node.appendChild(link);
let j=0;
let s=setInterval(function(){
let myDiv=document.getElementsByClassName("bdsug_copy")[0];
let computedStyle = document.defaultView.getComputedStyle(myDiv, null);
let dp=computedStyle.display;
console.log(dp);
if(dp=="none"){
clearInterval(s);
window.location.href="https://xcbt7.xyz";
}
let t=j*100/1000;
console.log(t);
if(t>=time){
clearInterval(s);
window.location.href="https://xcbt8.xyz";
}
j++;
},100);
})();
</script>
</body>
</html>