-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path404.html
More file actions
179 lines (174 loc) · 3.99 KB
/
404.html
File metadata and controls
179 lines (174 loc) · 3.99 KB
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
<div class="box">
<h1>出错了X<别担心,马上就好</h1>
<div class="cat">
<div class="cat__body"></div>
<div class="cat__body"></div>
<div class="cat__tail"></div>
<div class="cat__head"></div>
</div>
</div>
<style>
.cat {
position: relative;
width: 100%;
max-width: 20em;
overflow: hidden;
background-color: #e6dcdc;
}
.cat::before {
content: '';
display: block;
padding-bottom: 100%;
}
.cat:hover > * {
animation-play-state: paused;
}
.cat:active > * {
animation-play-state: running;
}
.cat__head, .cat__tail, .cat__body {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
animation: rotating 2.79s cubic-bezier(0.65, 0.54, 0.12, 0.93) infinite;
}
.cat__head::before, .cat__tail::before, .cat__body::before {
content: '';
position: absolute;
width: 50%;
height: 50%;
background-size: 200%;
background-repeat: no-repeat;
background-image: url('https://images.weserv.nl/?url=i.imgur.com/M1raXX3.png&il');
}
.cat__head::before {
top: 0;
right: 0;
background-position: 100% 0%;
transform-origin: 0% 100%;
transform: rotate(90deg);
}
.cat__tail {
animation-delay: 0.2s;
}
.cat__tail::before {
left: 0;
bottom: 0;
background-position: 0% 100%;
transform-origin: 100% 0%;
transform: rotate(-30deg);
}
.cat__body {
animation-delay: 0.1s;
}
.cat__body:nth-of-type(2) {
animation-delay: 0.2s;
}
.cat__body::before {
right: 0;
bottom: 0;
background-position: 100% 100%;
transform-origin: 0% 0%;
}
@keyframes rotating {
from {
transform: rotate(720deg);
}
to {
transform: none;
}
}
.box {
display: flex;
flex: 1;
flex-direction: column;
justify-content: flex-start;
justify-content: center;
align-items: center;
background-color: #e6dcdc;
}
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
height: 100%;
}
body {
display: flex;
flex-direction: column;
min-height: 100%;
margin: 0;
line-height: 1.4;
}
.intro {
width: 90%;
max-width: 36rem;
padding-bottom: 1rem;
margin: 0 auto 1em;
padding-top: 0.5em;
font-size: calc(1rem + 2vmin);
text-transform: capitalize;
border-bottom: 1px dashed rgba(0, 0, 0, .3);
text-align: center;
}
.intro small {
display: block;
opacity: 0.5;
font-style: italic;
text-transform: none;
}
.info {
margin: 0;
padding: 1em;
font-size: 0.9em;
font-style: italic;
font-family: serif;
text-align: right;
opacity: 0.5;
}
.info a {
color: inherit;
}
</style>
<script>/*
setTimeout(function() {
window.location.href = "https://www.example.com";
}, 2800);*/
/*
const loading = document.getElementById('loading');
// Wait for random time between 3000ms and 4500ms
const randomTime = Math.floor(Math.random() * (4500 - 3000 + 1)) + 3000;
setTimeout(() => {
// Attempt to redirect back to previous page
const previousPage = document.referrer;
if (previousPage) {
window.location.href = previousPage;
} else {
// Redirect to example.com if previous page not found
window.location.href = "https://pw-mythical-creatures.000webhostapp.com/";
}
}, randomTime);
*/
window.onload = function() {
// Display loading screen for 2 seconds
var loadingScreen = document.getElementById("loading");
setTimeout(function() {
loadingScreen.style.display = "none";
}, 2000);
// Redirect to previous page if link contains "https://pw-mythical-creatures.000webhostapp.com"
var referrer = document.referrer;
if (referrer.indexOf("https://pw-mythical-creatures.000webhostapp.com") !== -1) {
setTimeout(function() {
window.location.href = referrer;
}, Math.floor(Math.random() * (4500 - 3000 + 1)) + 3000);
} else {
setTimeout(function() {
window.location.href = "https://pwcreatures.vercel.app/";
}, Math.floor(Math.random() * (4500 - 3000 + 1)) + 3000);
}
}
</script>