test: 🥴

This commit is contained in:
ThatOneCalculator 2022-12-17 17:55:08 -08:00
parent ddb9b5a077
commit 290045beb2
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "calckey", "name": "calckey",
"version": "13.0.5-rc.2", "version": "13.0.5-rc.3",
"codename": "aqua", "codename": "aqua",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -170,15 +170,17 @@ async function sleep(seconds) {
return new Promise((resolve) => setTimeout(resolve, seconds * 1000)); return new Promise((resolve) => setTimeout(resolve, seconds * 1000));
} }
async function easterEgg(): Promise<void> { function easterEgg() {
iconClicks++; iconClicks++;
instanceIcon.style.animation = 'unset'; instanceIcon.style.animation = 'unset';
await sleep(0.1); console.log(iconClicks);
sleep(0.1);
const normalizedCount = (iconClicks % 3) + 1; const normalizedCount = (iconClicks % 3) + 1;
instanceIcon.style.animation = `iconShake${normalizedCount} 0.${normalizedCount}s 1`; instanceIcon.style.animation = `iconShake${normalizedCount} 0.${normalizedCount}s 1`;
if (iconClicks % 3 === 0) { if (iconClicks % 3 === 0) {
console.log('here');
defaultStore.state.woozyMode = !defaultStore.state.woozyMode; defaultStore.state.woozyMode = !defaultStore.state.woozyMode;
await sleep(0.4); sleep(0.4);
instanceIcon.style.animation = 'unset'; instanceIcon.style.animation = 'unset';
instanceIcon.style.animation = 'swpinY 0.9s 1'; instanceIcon.style.animation = 'swpinY 0.9s 1';
} }