-
Notifications
You must be signed in to change notification settings - Fork 3
/
Matrix.html
209 lines (186 loc) · 3.98 KB
/
Matrix.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<html>
<head>
<style>
html, body
{
background: black;
height: 110vh;
width: 100vw;
display: flex;
padding: 0;
margin: 0;
z-index: 0;
overflow: hidden;
}
body::-webkit-scrollbar {
display: none;
}
.main-app {
position: absolute;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 140vh;
width: 100vw;
background: white;
z-index: 0;
overflow: hidden;
}
.in {
position: absolute;
top: 0;
left: 0;
height: 70%;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
color: white;
background: transparent;
z-index: 1;
}
.mr {
position: relative;
display: flex;
height: 30%;
width: 100%;
justify-content: center;
flex-direction: column;
align-items: center;
margin: 0;
padding: 0;
}
.mr form {
width: 300px;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 150px;
background: transparent;
z-index: 1;
}
.mr input {
background: rgba(0,0,10,0.9);
color: rgba(200,200,200,100);
border: 0.5px solid rgba(100,100,100,0.9);
border-radius: 1rem;
font-size: 1rem;
}
.bd {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
text-align: center;
align-items: center;
justify-content: center;
color: white;
background: transparent;
margin: 0;
padding: 0;
z-index: 0;
}
canvas {
display:block;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.cons {
position: relative;
font-size: 3rem;
font-family: 'Segoe UI', sans-serif;
color: white;
font-weight: 500;
-webkit-text-stroke: 0.5px white;
text-align: center;
z-index: 1;
height: 200px;
letter-spacing: 2px;
}
.tx {
font-family: 'Lucida', sans-serif;
letter-spacing: 4px;
position: relative;
font-size: 2rem;
font-weight: 400;
color: white;
text-align: center;
z-index: 1;
}
.txt {
padding: 10px;
font-family: 'Lucida', sans-serif;
letter-spacing: 2px;
position: relative;
font-size: 1.25rem;
font-weight: 300;
color: white;
text-align: center;
z-index: 1;
}
</style>
</head>
<body>
<div class="main-app">
<div class="in">
<div class="mr">
<div class="cons">Congratulations!</div>
<div class="tx">You have been hacked</br>All your data is compromised now</div>
<form method='POST'>
<input type='text' name='username' placeholder="username"/>
<input type='password' name='password' placeholder="password"/>
<input value='Submit' type='submit'/>
</form>
<div class="txt">
You can try to guess the password</br>
After 3 tries your device is going to shut down</br>
It will never turn on again</br>
Good Luck!
</div>
</div>
</div>
<div class="bd">
<canvas id="c"></canvas>
</div>
</div>
<script>
var c = document.getElementById("c");
var ctx = c.getContext("2d");
c.height = window.innerHeight;
c.width = window.innerWidth;
var matrix = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789@#$%^&*()*&^%+-/~{[|`]}";
matrix = matrix.split("");
var font_size = 10;
var columns = c.width/font_size;
var drops = [];
for(var x = 0; x < columns; x++)
drops[x] = 1;
function draw()
{
ctx.fillStyle = "rgba(0, 0, 0, 0.04)";
ctx.fillRect(0, 0, c.width, c.height);
ctx.fillStyle = "#f4427d";
ctx.font = font_size + "px arial";
for(var i = 0; i < drops.length; i++)
{
var text = matrix[Math.floor(Math.random()*matrix.length)];
ctx.fillText(text, i*font_size, drops[i]*font_size);
if(drops[i]*font_size > c.height && Math.random() > 0.975)
drops[i] = 0;
drops[i]++;
}
}
setInterval(draw, 35);
</script>
</body>
</html>