From 190612b4a02c03fd43192222b71f5a6ecf5e5757 Mon Sep 17 00:00:00 2001 From: 0M4NU4L <147267321+0M4NU4L@users.noreply.github.com> Date: Mon, 11 Nov 2024 23:30:31 +0530 Subject: [PATCH] System Failure --- script.js | 152 ------------------------------------------------------ 1 file changed, 152 deletions(-) diff --git a/script.js b/script.js index 4ac7ba1..d854133 100644 --- a/script.js +++ b/script.js @@ -246,31 +246,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() { @@ -910,133 +885,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(() => {