-
Notifications
You must be signed in to change notification settings - Fork 0
/
403.php
133 lines (112 loc) · 3.64 KB
/
403.php
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
<link rel="icon" href="assets/image/logo-kemhan.png" type="image/x-icon" />
<title>403</title>
<h1>Dilarang!</h1>
<h2>403</h2>
<style>
h1 {
font-size: 15vmin;
margin-bottom: 0;
}
h2 {
font-size: 5vmin;
margin-top: 0;
margin-bottom: 40px;
}
body {
height: 100vh;
display: flex;
flex-direction: column;
background-color: white;
align-items: center;
justify-content: center;
cursor: none;
--mouseStartX: -64;
--mouseStartY: -64;
overflow: hidden;
}
#jail {
position: relative;
border: 2px solid gray;
border-radius: 50%;
width: 32px;
height: 32px;
}
#spinner {
display: none;
position: absolute;
width: 100px;
height: 100px;
left: 50%;
top: 50%;
transform-origin: 50% 50%;
animation: 4s spin linear infinite;
}
body.seenMouse #spinner {
display: block;
}
body.seenMouse #cursor {
position: absolute;
left: 12px;
top: 8px;
animation: 2s dragMouse ease forwards;
width: 32px;
height: 32px;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QAAAAAAAD5Q7t/AAABX0lEQVRYw+3UMUvDUBQF4EOv3Nk2OnjxB4gg6OQo2Nm/5c9w0snJyUWlKAhBEaRgKypiiK/FrdBCad/NdWkgFnHyNUvOEshyPk5eHoilRyy7KCm12fOwNASx9D5d34jlshQEsfTMzEpD5IDSEEVAKYh5wMIRvwFU1ZIkXQxiHqCqNp1ObTwe2+vbe3hEEVAsH41GNhgM7OmpGxSRX0TIsgxZlkFVoarw3kNVsbLSwH18vo9Al1Xtr3LvPbz3iKI6bm/O9gEc/jdgKQfk5WnqsLoawXuPtfXtqxCz/wix9PJv/vz8YsQyPD45NeecEcsFsRwEBxTLiWWXWNpJklgc3xmxtEP21wAgTR02t/ZGAJo6cTGAj4eHNhqNZQD4CLrC7BcbFk/4bIVOt9u1VuvaiOUxVP+STlxz/qVOXEwsb/3+10YU1QFgGmyBP5YRYukQyxGx7CwcUKVKlSpVqiwq37opL7UKP+WdAAAAAElFTkSuQmCC);
}
@keyframes spin {
0% {
transform: translate(-50%, -50%) rotate(360deg);
}
100% {
transform: translate(-50%, -50%) rotate(0deg);
}
}
@keyframes dragMouse {
0% {
left: calc(var(--mouseX)*1px);
top: calc(var(--mouseY)*1px);
}
100% {
left: calc(var(--mouseX)/var(--width)*10px + 12px);
top: calc(var(--mouseY)/var(--height)*10px + 8px);
}
}
</style>
<div id="jail">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 1000 1000" preserveAspectRatio="xMinYMin" id="spinner">
<!-- thank you https://stackoverflow.com/posts/15496546/revisions -->
<defs>
<path id="textPath" d="M 250 500 A 250,250 0 1 1 250 500.0001" />
</defs>
<text x="0" y="0" text-anchor="left" style="font-size:90pt;">
<textPath xlink:href="#textPath" startOffset="0%">MOUSE JAIL</textPath>
<textPath xlink:href="#textPath" startOffset="50%">MOUSE JAIL</textPath>
</text>
</svg>
<div id="cursor"></div>
</div>
<script>
var jail = document.getElementById('jail');
document.addEventListener('mousemove', mouseUpdate, false);
document.addEventListener('mouseenter', mouseUpdate, false);
var seenMouse = false;
function mouseUpdate(e) {
var jailCoords = jail.getBoundingClientRect();
var pageCoords = document.body.getBoundingClientRect();
var x = e.pageX - jailCoords.left;
var y = e.pageY - jailCoords.top;
document.body.style.setProperty('--mouseX', x);
document.body.style.setProperty('--mouseY', y);
document.body.style.setProperty('--width', pageCoords.width);
document.body.style.setProperty('--height', pageCoords.height);
if (!seenMouse) {
document.body.classList.add('seenMouse');
seenMouse = true;
}
}
function mouseLeft(e) {
document.body.classList.remove('seenMouse');
seenMouse = false;
}
document.addEventListener('mouseleave', mouseLeft, false);
</script>