@@ -246,31 +246,6 @@ function jumpThroughTime() {
246246 document . getElementById ( 'future-message' ) . innerHTML = randomMessage ;
247247}
248248
249- function createMemory ( ) {
250- const memory = document . createElement ( 'button' ) ;
251- memory . innerHTML = 'Stored Memory' ;
252- memory . addEventListener ( 'click' , ( ) => {
253- console . log ( 'Memory accessed...' ) ;
254- triggerRandomAlert ( ) ;
255- } ) ;
256- document . body . appendChild ( memory ) ;
257- }
258-
259- document . addEventListener ( 'keydown' , ( event ) => {
260- if ( event . key === 'Escape' ) {
261- event . preventDefault ( ) ;
262- triggerRandomAlert ( ) ;
263- }
264- } ) ;
265-
266- window . addEventListener ( 'resize' , ( ) => {
267- document . body . style . transition = 'transform 0.5s' ;
268- document . body . style . transform = 'scale(0.8)' ;
269- setTimeout ( ( ) => {
270- document . body . style . transform = 'scale(1)' ;
271- } , 1000 ) ;
272- } ) ;
273-
274249startCreepyMessages ( ) ;
275250
276251function improveVanishingAct ( ) {
@@ -910,133 +885,6 @@ function triggerDisturbance() {
910885
911886}
912887
913-
914- function triggerCrash ( ) {
915- document . body . classList . add ( 'chaotic-mode' ) ;
916-
917- let chaosInterval = setInterval ( ( ) => {
918- let chaosElement = document . createElement ( 'div' ) ;
919- chaosElement . classList . add ( 'chaos-element' ) ;
920- chaosElement . style . top = Math . random ( ) * window . innerHeight + 'px' ;
921- chaosElement . style . left = Math . random ( ) * window . innerWidth + 'px' ;
922- chaosElement . style . zIndex = Math . floor ( Math . random ( ) * 1000 ) ; // Random z-index for layering
923- document . body . appendChild ( chaosElement ) ;
924-
925- chaosElement . style . animation = 'spin-glitch 0.5s infinite linear, move-glitch 0.5s infinite' ;
926-
927- let randomText = document . createElement ( 'p' ) ;
928- randomText . classList . add ( 'glitchy-text' ) ;
929- randomText . innerText = 'SYSTEM CRASH!' ;
930- randomText . style . top = Math . random ( ) * window . innerHeight + 'px' ;
931- randomText . style . left = Math . random ( ) * window . innerWidth + 'px' ;
932- document . body . appendChild ( randomText ) ;
933- } , 50 ) ;
934-
935- setTimeout ( ( ) => {
936- clearInterval ( chaosInterval ) ;
937- document . body . classList . remove ( 'chaotic-mode' ) ;
938- document . querySelectorAll ( '.chaos-element, .glitchy-text' ) . forEach ( el => el . remove ( ) ) ;
939- } , 10000 ) ;
940- }
941-
942- function createMemory ( ) {
943- let errorMemoryText = document . createElement ( 'div' ) ;
944- errorMemoryText . classList . add ( 'error-memory' ) ;
945- errorMemoryText . innerText = 'ERROR MEMORY' ;
946- document . body . appendChild ( errorMemoryText ) ;
947-
948- errorMemoryText . style . top = Math . random ( ) * window . innerHeight + 'px' ;
949- errorMemoryText . style . left = Math . random ( ) * window . innerWidth + 'px' ;
950-
951- setTimeout ( ( ) => errorMemoryText . remove ( ) , 3000 ) ;
952- }
953-
954- function triggerCrash ( ) {
955- document . body . classList . add ( 'chaotic-mode' ) ;
956-
957- let chaosInterval = setInterval ( ( ) => {
958- let chaosElement = document . createElement ( 'div' ) ;
959- chaosElement . classList . add ( 'chaos-element' ) ;
960- chaosElement . style . top = Math . random ( ) * window . innerHeight + 'px' ;
961- chaosElement . style . left = Math . random ( ) * window . innerWidth + 'px' ;
962- chaosElement . style . zIndex = Math . floor ( Math . random ( ) * 1000 ) ; // Random z-index for layering
963- document . body . appendChild ( chaosElement ) ;
964-
965- chaosElement . style . animation = 'spin-glitch 0.5s infinite linear, move-glitch 0.5s infinite' ;
966-
967- let randomText = document . createElement ( 'p' ) ;
968- randomText . classList . add ( 'glitchy-text' ) ;
969- randomText . innerText = 'SYSTEM CRASH!' ;
970- randomText . style . top = Math . random ( ) * window . innerHeight + 'px' ;
971- randomText . style . left = Math . random ( ) * window . innerWidth + 'px' ;
972- document . body . appendChild ( randomText ) ;
973- } , 50 ) ;
974-
975- setTimeout ( ( ) => {
976- clearInterval ( chaosInterval ) ;
977- document . body . classList . remove ( 'chaotic-mode' ) ;
978- document . querySelectorAll ( '.chaos-element, .glitchy-text' ) . forEach ( el => el . remove ( ) ) ;
979- } , 10000 ) ;
980- }
981-
982- function createMemory ( ) {
983- let errorMemoryText = document . createElement ( 'div' ) ;
984- errorMemoryText . classList . add ( 'error-memory' ) ;
985- errorMemoryText . innerText = 'ERROR MEMORY' ;
986- document . body . appendChild ( errorMemoryText ) ;
987-
988- errorMemoryText . style . top = Math . random ( ) * window . innerHeight + 'px' ;
989- errorMemoryText . style . left = Math . random ( ) * window . innerWidth + 'px' ;
990-
991- setTimeout ( ( ) => errorMemoryText . remove ( ) , 3000 ) ;
992- }
993-
994- function createMemory ( ) {
995- let errorMemoryText = document . createElement ( 'div' ) ;
996- errorMemoryText . classList . add ( 'error-memory' ) ;
997- errorMemoryText . innerText = 'ERROR MEMORY' ;
998- document . body . appendChild ( errorMemoryText ) ;
999-
1000- errorMemoryText . style . top = Math . random ( ) * window . innerHeight + 'px' ;
1001- errorMemoryText . style . left = Math . random ( ) * window . innerWidth + 'px' ;
1002-
1003- setTimeout ( ( ) => errorMemoryText . remove ( ) , 3000 ) ;
1004- }
1005-
1006-
1007- function createMemory ( ) {
1008- for ( let i = 0 ; i < 70 ; i ++ ) { // Increase for more elements
1009- let errorMemoryText = document . createElement ( 'div' ) ;
1010- errorMemoryText . classList . add ( 'error-memory' ) ;
1011- errorMemoryText . innerText = 'ERROR MEMORY' ;
1012- document . body . appendChild ( errorMemoryText ) ;
1013-
1014- errorMemoryText . style . position = 'fixed' ;
1015- errorMemoryText . style . top = Math . random ( ) * window . innerHeight + 'px' ;
1016- errorMemoryText . style . left = Math . random ( ) * window . innerWidth + 'px' ;
1017- errorMemoryText . style . animation = 'error-fade 0.5s alternate infinite, rotate-wobble 1s infinite' ;
1018- }
1019-
1020- document . body . classList . add ( 'glitch-background' ) ;
1021- setTimeout ( ( ) => {
1022- document . body . classList . remove ( 'glitch-background' ) ;
1023- document . querySelectorAll ( '.error-memory' ) . forEach ( el => el . remove ( ) ) ;
1024- } , 10000 ) ;
1025-
1026- triggerScreenShake ( ) ;
1027-
1028- triggerCursorFlicker ( ) ;
1029-
1030- triggerRandomColorChanges ( ) ;
1031-
1032- triggerRandomDialogs ( ) ;
1033-
1034- document . addEventListener ( 'mousemove' , createMouseTrail ) ;
1035- setTimeout ( ( ) => {
1036- document . removeEventListener ( 'mousemove' , createMouseTrail ) ;
1037- } , 10000 ) ;
1038- }
1039-
1040888function triggerScreenShake ( ) {
1041889 let body = document . body ;
1042890 let shakeInterval = setInterval ( ( ) => {
0 commit comments