mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 19:37:34 -07:00
fix: 🥴
This commit is contained in:
parent
72e34d8d39
commit
16d724ee7a
2 changed files with 11 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "calckey",
|
||||
"version": "13.0.5-rc.3",
|
||||
"version": "13.0.5-rc.4",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<div class="_formRoot">
|
||||
<div class="_formBlock fwhjspax" :style="{ backgroundImage: `url(${ $instance.bannerUrl })` }">
|
||||
<div class="content">
|
||||
<img ref="instanceIcon" :src="!defaultStore.state.woozyMode ? '/static-assets/woozy.png' : $instance.iconUrl || $instance.faviconUrl || '/favicon.ico'" aria-label="none" class="icon" @click="easterEgg"/>
|
||||
<img ref="instanceIcon" :src="$instance.iconUrl || $instance.faviconUrl || '/favicon.ico'" aria-label="none" class="icon" @click="easterEgg"/>
|
||||
<div class="name">
|
||||
<b>{{ $instance.name || host }}</b>
|
||||
</div>
|
||||
|
@ -109,6 +109,7 @@ import { i18n } from '@/i18n';
|
|||
import { definePageMetadata } from '@/scripts/page-metadata';
|
||||
import { deviceKind } from '@/scripts/device-kind';
|
||||
import { iAmModerator } from '@/account';
|
||||
import { instance } from '@/instance';
|
||||
import { defaultStore } from '@/store';
|
||||
import 'swiper/scss';
|
||||
import 'swiper/scss/virtual';
|
||||
|
@ -172,7 +173,7 @@ async function sleep(seconds) {
|
|||
|
||||
function easterEgg() {
|
||||
iconClicks++;
|
||||
instanceIcon.style.animation = 'unset';
|
||||
instanceIcon.style.animation = '';
|
||||
console.log(iconClicks);
|
||||
sleep(0.1);
|
||||
const normalizedCount = (iconClicks % 3) + 1;
|
||||
|
@ -181,8 +182,14 @@ function easterEgg() {
|
|||
console.log('here');
|
||||
defaultStore.state.woozyMode = !defaultStore.state.woozyMode;
|
||||
sleep(0.4);
|
||||
instanceIcon.style.animation = 'unset';
|
||||
instanceIcon.style.animation = '';
|
||||
instanceIcon.style.animation = 'swpinY 0.9s 1';
|
||||
if (iconClicks % 6 === 0) {
|
||||
instanceIcon.src = instance.iconUrl || instance.faviconUrl || '/favicon.ico'
|
||||
}
|
||||
else {
|
||||
instanceIcon.src = '/static-assets/woozy.png';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue