-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
183 lines (162 loc) · 4.61 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
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
180
181
182
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hacking Style Cube with Hidden Click Link</title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<style>
/* Reset default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Full viewport height */
html, body {
height: 100%;
overflow: hidden;
}
/* Gradient background */
body {
background: #000;
display: flex;
justify-content: center;
align-items: center;
perspective: 1000px;
font-family: Arial, sans-serif;
color: #fff;
flex-direction: column;
}
/* Banner */
header {
background-color: #333;
color: #fff;
text-align: center;
padding: 1em 0;
width: 100%;
position: fixed;
top: 0;
z-index: 1000;
}
/* Rotating cube container */
.cube {
width: 300px;
height: 300px;
position: relative;
transform-style: preserve-3d;
animation: rotate 10s infinite linear;
margin-top: 50px;
}
/* Cube faces */
.cube div {
position: absolute;
width: 300px;
height: 300px;
background: rgba(0, 255, 0, 0.9); /* Green color */
border: 2px solid #333;
box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
text-align: center;
line-height: 300px;
font-size: 2em;
border-radius: 10px;
color: #fff;
}
/* Individual faces */
.cube .face1 {
transform: rotateY(0deg) translateZ(150px);
background: linear-gradient(to right, #5efc82, #00b383);
}
.cube .face2 {
transform: rotateY(90deg) translateZ(150px);
background: linear-gradient(to bottom, #00b383, #5efc82);
}
.cube .face3 {
transform: rotateY(180deg) translateZ(150px);
background: linear-gradient(to left, #5efc82, #00b383);
}
.cube .face4 {
transform: rotateY(-90deg) translateZ(150px);
background: linear-gradient(to top, #00b383, #5efc82);
}
.cube .face5 {
transform: rotateX(90deg) translateZ(150px);
background: linear-gradient(to top right, #5efc82, #00b383);
}
.cube .face6 {
transform: rotateX(-90deg) translateZ(150px);
background: linear-gradient(to bottom left, #00b383, #5efc82);
}
/* Animation keyframes */
@keyframes rotate {
from {
transform: rotateY(0deg) rotateX(0deg);
}
to {
transform: rotateY(360deg) rotateX(360deg);
}
}
/* Hidden link */
.hidden-link {
position: fixed;
bottom: 20px;
right: 20px;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 1000;
color: #fff; /* Ensure link is visible */
text-decoration: none; /* Remove underline */
}
.hidden-link.show {
opacity: 1;
}
</style>
</head>
<body>
<header>
<h1>Welcome... that's all</h1>
<h3> If you find were to click but dont click, you beat me...;)</h3>
</header>
<div class="cube">
<div class="face1"><b>.</b></div>
<div class="face2"><b>:</b></div>
<div class="face3"><b>...</b></div>
<div class="face4"><b>::</b></div>
<div class="face5"><b>:·:</b></div>
<div class="face6"><b>:::</b></div>
</div>
<!-- Hidden link -->
<a href="./slackware/rtz.html" class="hidden-link" id="hiddenLink" target="_blank">`</a>
<!-- Script to show hidden link on cube click -->
<script>
const cube = document.querySelector('.cube');
const hiddenLink = document.getElementById('hiddenLink');
cube.addEventListener('click', function() {
if (Math.random() < 0.1) { // Probability of 10% for the link to show
hiddenLink.classList.add('show');
}
});
// Disable right-click
window.addEventListener('contextmenu', function(e) {
e.preventDefault();
alert('LOL! You are Windows user, right?');
});
// Intercept common keyboard shortcuts
window.addEventListener('keydown', function(e) {
if ((e.ctrlKey || e.metaKey) && (e.key === 'u' || e.key === 'U')) {
e.preventDefault();
alert('YUP! You are the typical windows guy, it’s clear...');
}
if ((e.ctrlKey || e.metaKey) && (e.key === 's' || e.key === 'S')) {
e.preventDefault();
alert('Hm... Advanced windows guy appears! or OSX? LOL');
}
});
// beforeunload for save attempts
window.addEventListener('beforeunload', function(e) {
e.preventDefault();
e.returnValue = ''; // This is required for some browsers to show a confirmation dialog
});
</script>
</body>
</html>