-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallpages.min.js
9 lines (9 loc) · 1.4 KB
/
allpages.min.js
1
2
3
4
5
6
7
8
9
let position=0;let velocity=1;let oldposition=0;var blurstate=0;document.addEventListener('keydown',function(event){switch(blurstate){case 0:if(event.keyCode==66){blurstate++;}else{blurstate=0;}
break;case 1:if(event.keyCode==76){blurstate++;}else{blurstate=0;}
break;case 2:if(event.keyCode==85){blurstate++;}else{blurstate=0;}
break;case 3:if(event.keyCode==82){var csselement=document.createElement("style");csselement.innerHTML=".menubar,.peopleinspace,.person,.weather,.typing-text,.download-div,#project-one,.blog-widget,.blog-post,.stopwatch-widget,.stopwatch-toggle-button,.stopwatch-clear-button,.stopwatch-clock,.stopwatch-hands,.typing-test-widget,.typing-words,.typing-results,.matrix-widget {backdrop-filter: blur(1vw);}";document.body.appendChild(csselement);blurstate=0;}else{blurstate=0;}
break;}});var neonstate=0;document.addEventListener('keydown',function(event){switch(neonstate){case 0:if(event.keyCode==78){neonstate++;}else{neonstate=0;}
break;case 1:if(event.keyCode==69){neonstate++;}else{neonstate=0;}
break;case 2:if(event.keyCode==79){neonstate++;}else{neonstate=0;}
break;case 3:if(event.keyCode==78){var csselement=document.createElement("style");csselement.innerHTML=".layer4{background:url(/assets/images/jj-ying-azCTGObXR14-unsplash.webp);background-attachment: fixed;background-size: cover;background-position: center;}";document.body.appendChild(csselement);neonstate=0;}else{neonstate=0;}
break;}});