more easteregg functionality
This commit is contained in:
parent
7bfe11502b
commit
6d92ef3d83
2 changed files with 11515 additions and 1 deletions
|
@ -159,6 +159,9 @@ function inputCodeCheck(typedText) {
|
|||
case "drkhsh":
|
||||
drkhsh();
|
||||
break;
|
||||
case "wachtl":
|
||||
wachtl();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -416,13 +419,28 @@ function applyScore(score) {
|
|||
scoreSpan.textContent = `${scoreNum}€`;
|
||||
if(scoreNum <= 0) {
|
||||
setNixieColor('red');
|
||||
setNixieContent('DEATH💀')
|
||||
setNixieContent('DEATH!')
|
||||
}
|
||||
}
|
||||
|
||||
function drkhsh() {
|
||||
resetNixieRainbow();
|
||||
setNixieColor('#a507b5');
|
||||
let rest = document.querySelectorAll(':not(body, .container.container--outer, header, nav, .menu__list, .menu-status, .tube-box, .tube, .tube>span)');
|
||||
rest.forEach((element, index) => {
|
||||
element.style.filter = 'brightness(0.1)';
|
||||
});
|
||||
}
|
||||
|
||||
function wachtl() {
|
||||
fetch('/wachtl.html')
|
||||
.then(response => response.text())
|
||||
.then(data => {
|
||||
let wrapper = document.querySelector('.wrapper.flex');
|
||||
wrapper.style.padding = 0;
|
||||
wrapper.innerHTML = data;
|
||||
})
|
||||
.catch(error => console.error('Error loading HTML file:', error));
|
||||
}
|
||||
|
||||
window.onload = () => {
|
||||
|
|
11496
static/wachtl.html
Normal file
11496
static/wachtl.html
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue