This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
403.html
166 lines (156 loc) · 3.13 KB
/
403.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
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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Forbidden Access</title>
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="./style.css">
</head>
<style>
@import url("https://fonts.googleapis.com/css?family=Comfortaa");
* {
box-sizing: border-box;
}
body,
html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
body {
background-color: #a74006;
font-family: sans-serif;
}
.container {
z-index: 1;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
text-align: center;
padding: 10px;
min-width: 300px;
}
.container div {
display: inline-block;
}
.container .lock {
opacity: 1;
}
.container h1 {
font-family: 'Comfortaa', cursive;
font-size: 100px;
text-align: center;
color: #eee;
font-weight: 100;
margin: 0;
}
.container p {
color: #fff;
}
.lock {
-webkit-transition: 0.5s ease;
transition: 0.5s ease;
position: relative;
overflow: hidden;
opacity: 0;
}
.lock.generated {
-webkit-transform: scale(0.5);
transform: scale(0.5);
position: absolute;
-webkit-animation: 2s move linear;
animation: 2s move linear;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}
.lock ::after {
content: '';
background: #a74006;
opacity: 0.3;
display: block;
position: absolute;
height: 100%;
width: 50%;
top: 0;
left: 0;
}
.lock .bottom {
background: #D68910;
height: 40px;
width: 60px;
display: block;
position: relative;
margin: 0 auto;
}
.lock .top {
height: 60px;
width: 50px;
border-radius: 50%;
border: 10px solid #fff;
display: block;
position: relative;
top: 30px;
margin: 0 auto;
}
.lock .top::after {
padding: 10px;
border-radius: 50%;
}
@-webkit-keyframes move {
to {
top: 100%;
}
}
@keyframes move {
to {
top: 100%;
}
}
@media (max-width: 420px) {
.container {
-webkit-transform: translate(-50%, -50%) scale(0.8);
transform: translate(-50%, -50%) scale(0.8);
}
.lock.generated {
-webkit-transform: scale(0.3);
transform: scale(0.3);
}
}
</style>
<body>
<!-- partial:index.partial.html -->
<div class="container">
<h1>4<div class="lock"><div class="top"></div><div class="bottom"></div>
</div>3</h1><p>Access denied</p>
</div>
<!-- partial -->
<script>
const interval = 500;
function generateLocks() {
const lock = document.createElement('div'),
position = generatePosition();
lock.innerHTML = '<div class="top"></div><div class="bottom"></div>';
lock.style.top = position[0];
lock.style.left = position[1];
lock.classList = 'lock'// generated';
document.body.appendChild(lock);
setTimeout(()=>{
lock.style.opacity = '1';
lock.classList.add('generated');
},100);
setTimeout(()=>{
lock.parentElement.removeChild(lock);
}, 2000);
}
function generatePosition() {
const x = Math.round((Math.random() * 100) - 10) + '%';
const y = Math.round(Math.random() * 100) + '%';
return [x,y];
}
setInterval(generateLocks,interval);
generateLocks();
</script>
</body>
</html>