Skip to content

Commit

Permalink
Merge pull request #55 from 0M4NU4L/main
Browse files Browse the repository at this point in the history
System Failure
  • Loading branch information
rishicds authored Nov 12, 2024
2 parents 2feabbc + 190612b commit b680f8b
Showing 1 changed file with 0 additions and 152 deletions.
152 changes: 0 additions & 152 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,31 +232,6 @@ function jumpThroughTime() {
document.getElementById('future-message').innerHTML = randomMessage;
}

function createMemory() {
const memory = document.createElement('button');
memory.innerHTML = 'Stored Memory';
memory.addEventListener('click', () => {
console.log('Memory accessed...');
triggerRandomAlert();
});
document.body.appendChild(memory);
}

document.addEventListener('keydown', (event) => {
if (event.key === 'Escape') {
event.preventDefault();
triggerRandomAlert();
}
});

window.addEventListener('resize', () => {
document.body.style.transition = 'transform 0.5s';
document.body.style.transform = 'scale(0.8)';
setTimeout(() => {
document.body.style.transform = 'scale(1)';
}, 1000);
});

startCreepyMessages();

function improveVanishingAct() {
Expand Down Expand Up @@ -891,133 +866,6 @@ function triggerDisturbance() {

}


function triggerCrash() {
document.body.classList.add('chaotic-mode');

let chaosInterval = setInterval(() => {
let chaosElement = document.createElement('div');
chaosElement.classList.add('chaos-element');
chaosElement.style.top = Math.random() * window.innerHeight + 'px';
chaosElement.style.left = Math.random() * window.innerWidth + 'px';
chaosElement.style.zIndex = Math.floor(Math.random() * 1000); // Random z-index for layering
document.body.appendChild(chaosElement);

chaosElement.style.animation = 'spin-glitch 0.5s infinite linear, move-glitch 0.5s infinite';

let randomText = document.createElement('p');
randomText.classList.add('glitchy-text');
randomText.innerText = 'SYSTEM CRASH!';
randomText.style.top = Math.random() * window.innerHeight + 'px';
randomText.style.left = Math.random() * window.innerWidth + 'px';
document.body.appendChild(randomText);
}, 50);

setTimeout(() => {
clearInterval(chaosInterval);
document.body.classList.remove('chaotic-mode');
document.querySelectorAll('.chaos-element, .glitchy-text').forEach(el => el.remove());
}, 10000);
}

function createMemory() {
let errorMemoryText = document.createElement('div');
errorMemoryText.classList.add('error-memory');
errorMemoryText.innerText = 'ERROR MEMORY';
document.body.appendChild(errorMemoryText);

errorMemoryText.style.top = Math.random() * window.innerHeight + 'px';
errorMemoryText.style.left = Math.random() * window.innerWidth + 'px';

setTimeout(() => errorMemoryText.remove(), 3000);
}

function triggerCrash() {
document.body.classList.add('chaotic-mode');

let chaosInterval = setInterval(() => {
let chaosElement = document.createElement('div');
chaosElement.classList.add('chaos-element');
chaosElement.style.top = Math.random() * window.innerHeight + 'px';
chaosElement.style.left = Math.random() * window.innerWidth + 'px';
chaosElement.style.zIndex = Math.floor(Math.random() * 1000); // Random z-index for layering
document.body.appendChild(chaosElement);

chaosElement.style.animation = 'spin-glitch 0.5s infinite linear, move-glitch 0.5s infinite';

let randomText = document.createElement('p');
randomText.classList.add('glitchy-text');
randomText.innerText = 'SYSTEM CRASH!';
randomText.style.top = Math.random() * window.innerHeight + 'px';
randomText.style.left = Math.random() * window.innerWidth + 'px';
document.body.appendChild(randomText);
}, 50);

setTimeout(() => {
clearInterval(chaosInterval);
document.body.classList.remove('chaotic-mode');
document.querySelectorAll('.chaos-element, .glitchy-text').forEach(el => el.remove());
}, 10000);
}

function createMemory() {
let errorMemoryText = document.createElement('div');
errorMemoryText.classList.add('error-memory');
errorMemoryText.innerText = 'ERROR MEMORY';
document.body.appendChild(errorMemoryText);

errorMemoryText.style.top = Math.random() * window.innerHeight + 'px';
errorMemoryText.style.left = Math.random() * window.innerWidth + 'px';

setTimeout(() => errorMemoryText.remove(), 3000);
}

function createMemory() {
let errorMemoryText = document.createElement('div');
errorMemoryText.classList.add('error-memory');
errorMemoryText.innerText = 'ERROR MEMORY';
document.body.appendChild(errorMemoryText);

errorMemoryText.style.top = Math.random() * window.innerHeight + 'px';
errorMemoryText.style.left = Math.random() * window.innerWidth + 'px';

setTimeout(() => errorMemoryText.remove(), 3000);
}


function createMemory() {
for (let i = 0; i < 70; i++) { // Increase for more elements
let errorMemoryText = document.createElement('div');
errorMemoryText.classList.add('error-memory');
errorMemoryText.innerText = 'ERROR MEMORY';
document.body.appendChild(errorMemoryText);

errorMemoryText.style.position = 'fixed';
errorMemoryText.style.top = Math.random() * window.innerHeight + 'px';
errorMemoryText.style.left = Math.random() * window.innerWidth + 'px';
errorMemoryText.style.animation = 'error-fade 0.5s alternate infinite, rotate-wobble 1s infinite';
}

document.body.classList.add('glitch-background');
setTimeout(() => {
document.body.classList.remove('glitch-background');
document.querySelectorAll('.error-memory').forEach(el => el.remove());
}, 10000);

triggerScreenShake();

triggerCursorFlicker();

triggerRandomColorChanges();

triggerRandomDialogs();

document.addEventListener('mousemove', createMouseTrail);
setTimeout(() => {
document.removeEventListener('mousemove', createMouseTrail);
}, 10000);
}

function triggerScreenShake() {
let body = document.body;
let shakeInterval = setInterval(() => {
Expand Down

0 comments on commit b680f8b

Please sign in to comment.