Skip to content

Commit

Permalink
Add cheat code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed May 1, 2024
1 parent 83f3890 commit e895a50
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
<br/>
<label>
<input type="radio" name="provider" value="cloud">
Cloud
Cloud (Experiments)
</label>
<br/>
<label>
Expand Down Expand Up @@ -395,6 +395,20 @@
}
});

const cheat_code = 'iddqd';
let input_sequence = [];
document.addEventListener('keydown', e => {
input_sequence.push(event.key.toLowerCase());

if (input_sequence.length > cheat_code.length) {
input_sequence.shift();
}

if (input_sequence.join('') === cheat_code) {
document.getElementById('provider').style.display = 'block';
}
});

function getHosts(stick) {
const provider = document.querySelector('input[name="provider"]:checked').value;

Expand Down

0 comments on commit e895a50

Please sign in to comment.