@@ -232,31 +232,6 @@ function jumpThroughTime() {
232232 document . getElementById ( 'future-message' ) . innerHTML = randomMessage ;
233233}
234234
235- function createMemory ( ) {
236- const memory = document . createElement ( 'button' ) ;
237- memory . innerHTML = 'Stored Memory' ;
238- memory . addEventListener ( 'click' , ( ) => {
239- console . log ( 'Memory accessed...' ) ;
240- triggerRandomAlert ( ) ;
241- } ) ;
242- document . body . appendChild ( memory ) ;
243- }
244-
245- document . addEventListener ( 'keydown' , ( event ) => {
246- if ( event . key === 'Escape' ) {
247- event . preventDefault ( ) ;
248- triggerRandomAlert ( ) ;
249- }
250- } ) ;
251-
252- window . addEventListener ( 'resize' , ( ) => {
253- document . body . style . transition = 'transform 0.5s' ;
254- document . body . style . transform = 'scale(0.8)' ;
255- setTimeout ( ( ) => {
256- document . body . style . transform = 'scale(1)' ;
257- } , 1000 ) ;
258- } ) ;
259-
260235startCreepyMessages ( ) ;
261236
262237function improveVanishingAct ( ) {
@@ -891,133 +866,6 @@ function triggerDisturbance() {
891866
892867}
893868
894-
895- function triggerCrash ( ) {
896- document . body . classList . add ( 'chaotic-mode' ) ;
897-
898- let chaosInterval = setInterval ( ( ) => {
899- let chaosElement = document . createElement ( 'div' ) ;
900- chaosElement . classList . add ( 'chaos-element' ) ;
901- chaosElement . style . top = Math . random ( ) * window . innerHeight + 'px' ;
902- chaosElement . style . left = Math . random ( ) * window . innerWidth + 'px' ;
903- chaosElement . style . zIndex = Math . floor ( Math . random ( ) * 1000 ) ; // Random z-index for layering
904- document . body . appendChild ( chaosElement ) ;
905-
906- chaosElement . style . animation = 'spin-glitch 0.5s infinite linear, move-glitch 0.5s infinite' ;
907-
908- let randomText = document . createElement ( 'p' ) ;
909- randomText . classList . add ( 'glitchy-text' ) ;
910- randomText . innerText = 'SYSTEM CRASH!' ;
911- randomText . style . top = Math . random ( ) * window . innerHeight + 'px' ;
912- randomText . style . left = Math . random ( ) * window . innerWidth + 'px' ;
913- document . body . appendChild ( randomText ) ;
914- } , 50 ) ;
915-
916- setTimeout ( ( ) => {
917- clearInterval ( chaosInterval ) ;
918- document . body . classList . remove ( 'chaotic-mode' ) ;
919- document . querySelectorAll ( '.chaos-element, .glitchy-text' ) . forEach ( el => el . remove ( ) ) ;
920- } , 10000 ) ;
921- }
922-
923- function createMemory ( ) {
924- let errorMemoryText = document . createElement ( 'div' ) ;
925- errorMemoryText . classList . add ( 'error-memory' ) ;
926- errorMemoryText . innerText = 'ERROR MEMORY' ;
927- document . body . appendChild ( errorMemoryText ) ;
928-
929- errorMemoryText . style . top = Math . random ( ) * window . innerHeight + 'px' ;
930- errorMemoryText . style . left = Math . random ( ) * window . innerWidth + 'px' ;
931-
932- setTimeout ( ( ) => errorMemoryText . remove ( ) , 3000 ) ;
933- }
934-
935- function triggerCrash ( ) {
936- document . body . classList . add ( 'chaotic-mode' ) ;
937-
938- let chaosInterval = setInterval ( ( ) => {
939- let chaosElement = document . createElement ( 'div' ) ;
940- chaosElement . classList . add ( 'chaos-element' ) ;
941- chaosElement . style . top = Math . random ( ) * window . innerHeight + 'px' ;
942- chaosElement . style . left = Math . random ( ) * window . innerWidth + 'px' ;
943- chaosElement . style . zIndex = Math . floor ( Math . random ( ) * 1000 ) ; // Random z-index for layering
944- document . body . appendChild ( chaosElement ) ;
945-
946- chaosElement . style . animation = 'spin-glitch 0.5s infinite linear, move-glitch 0.5s infinite' ;
947-
948- let randomText = document . createElement ( 'p' ) ;
949- randomText . classList . add ( 'glitchy-text' ) ;
950- randomText . innerText = 'SYSTEM CRASH!' ;
951- randomText . style . top = Math . random ( ) * window . innerHeight + 'px' ;
952- randomText . style . left = Math . random ( ) * window . innerWidth + 'px' ;
953- document . body . appendChild ( randomText ) ;
954- } , 50 ) ;
955-
956- setTimeout ( ( ) => {
957- clearInterval ( chaosInterval ) ;
958- document . body . classList . remove ( 'chaotic-mode' ) ;
959- document . querySelectorAll ( '.chaos-element, .glitchy-text' ) . forEach ( el => el . remove ( ) ) ;
960- } , 10000 ) ;
961- }
962-
963- function createMemory ( ) {
964- let errorMemoryText = document . createElement ( 'div' ) ;
965- errorMemoryText . classList . add ( 'error-memory' ) ;
966- errorMemoryText . innerText = 'ERROR MEMORY' ;
967- document . body . appendChild ( errorMemoryText ) ;
968-
969- errorMemoryText . style . top = Math . random ( ) * window . innerHeight + 'px' ;
970- errorMemoryText . style . left = Math . random ( ) * window . innerWidth + 'px' ;
971-
972- setTimeout ( ( ) => errorMemoryText . remove ( ) , 3000 ) ;
973- }
974-
975- function createMemory ( ) {
976- let errorMemoryText = document . createElement ( 'div' ) ;
977- errorMemoryText . classList . add ( 'error-memory' ) ;
978- errorMemoryText . innerText = 'ERROR MEMORY' ;
979- document . body . appendChild ( errorMemoryText ) ;
980-
981- errorMemoryText . style . top = Math . random ( ) * window . innerHeight + 'px' ;
982- errorMemoryText . style . left = Math . random ( ) * window . innerWidth + 'px' ;
983-
984- setTimeout ( ( ) => errorMemoryText . remove ( ) , 3000 ) ;
985- }
986-
987-
988- function createMemory ( ) {
989- for ( let i = 0 ; i < 70 ; i ++ ) { // Increase for more elements
990- let errorMemoryText = document . createElement ( 'div' ) ;
991- errorMemoryText . classList . add ( 'error-memory' ) ;
992- errorMemoryText . innerText = 'ERROR MEMORY' ;
993- document . body . appendChild ( errorMemoryText ) ;
994-
995- errorMemoryText . style . position = 'fixed' ;
996- errorMemoryText . style . top = Math . random ( ) * window . innerHeight + 'px' ;
997- errorMemoryText . style . left = Math . random ( ) * window . innerWidth + 'px' ;
998- errorMemoryText . style . animation = 'error-fade 0.5s alternate infinite, rotate-wobble 1s infinite' ;
999- }
1000-
1001- document . body . classList . add ( 'glitch-background' ) ;
1002- setTimeout ( ( ) => {
1003- document . body . classList . remove ( 'glitch-background' ) ;
1004- document . querySelectorAll ( '.error-memory' ) . forEach ( el => el . remove ( ) ) ;
1005- } , 10000 ) ;
1006-
1007- triggerScreenShake ( ) ;
1008-
1009- triggerCursorFlicker ( ) ;
1010-
1011- triggerRandomColorChanges ( ) ;
1012-
1013- triggerRandomDialogs ( ) ;
1014-
1015- document . addEventListener ( 'mousemove' , createMouseTrail ) ;
1016- setTimeout ( ( ) => {
1017- document . removeEventListener ( 'mousemove' , createMouseTrail ) ;
1018- } , 10000 ) ;
1019- }
1020-
1021869function triggerScreenShake ( ) {
1022870 let body = document . body ;
1023871 let shakeInterval = setInterval ( ( ) => {
0 commit comments