-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
79 lines (70 loc) · 2.53 KB
/
Copy pathmain.js
File metadata and controls
79 lines (70 loc) · 2.53 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
const _0x = [88, 82, 48, 100];
const _logVal = String.fromCharCode(..._0x);
const bootSequence = [
"Initializing Hawkins_Lab_OS v4.0...",
"Loading Kernel Modules...",
"Checking Network Interfaces...",
"Gateway: 192.168.0.1 [CONNECTED]",
"Mounting File System...",
"Verifying Sector 4 Integrity...",
"Error: Data corruption detected at 0x4F",
"System Fragment Dump: " + _logVal,
"Retrying Connection...",
"Security Protocol: Level 4 Active",
"Access Denied: Subject #011",
"System Halt."
];
let logDelay = 200;
bootSequence.forEach((line) => {
setTimeout(() => {
console.log(line);
}, logDelay);
logDelay += 150;
});
const flashlight = document.getElementById('flashlight');
document.addEventListener('mousemove', (e) => {
flashlight.style.setProperty('--x', e.clientX + 'px');
flashlight.style.setProperty('--y', e.clientY + 'px');
});
const _s = document.getElementById('spores');
const _a = document.getElementById('ash-container');
for(let i = 0; i < 50; i++) {
const el = document.createElement('div');
el.className = 'spore';
el.style.left = Math.random() * 100 + '%';
el.style.animationDelay = Math.random() * 30 + 's';
el.style.animationDuration = (Math.random() * 20 + 20) + 's';
_s.appendChild(el);
}
for(let i = 0; i < 30; i++) {
const el = document.createElement('div');
el.className = 'ash';
el.style.left = Math.random() * 100 + '%';
el.style.animationDelay = Math.random() * 15 + 's';
el.style.animationDuration = (Math.random() * 10 + 10) + 's';
_a.appendChild(el);
}
const _b = document.getElementById('blood-container');
function _db() {
const el = document.createElement('div');
el.className = 'blood-drip';
el.style.left = Math.random() * 100 + '%';
const dur = Math.random() * 2 + 2;
el.style.animationDuration = dur + 's';
el.style.width = (Math.random() * 5 + 3) + 'px';
_b.appendChild(el);
setTimeout(() => { el.remove(); }, dur * 1000);
}
setInterval(_db, 300);
setInterval(() => {
if(Math.random() > 0.8) {
flashlight.style.background = 'black';
setTimeout(() => {
flashlight.style.background = 'radial-gradient(circle 250px at var(--x, 50%) var(--y, 50%), transparent 0%, rgba(0,0,0,0.98) 100%)';
}, 100);
}
if(Math.random() > 0.95) {
document.body.style.filter = 'invert(1)';
setTimeout(() => { document.body.style.filter = 'none'; }, 100);
}
}, 2000);