2024-05-04 21:59:00 +09:00
|
|
|
import '@/entrypoints/public-path';
|
2022-10-11 18:23:59 +09:00
|
|
|
import ready from 'flavours/glitch/ready';
|
2019-02-17 20:02:47 +09:00
|
|
|
|
|
|
|
ready(() => {
|
2024-04-29 17:02:41 +09:00
|
|
|
const image = document.querySelector<HTMLImageElement>('img');
|
|
|
|
|
|
|
|
if (!image) return;
|
2019-02-17 20:02:47 +09:00
|
|
|
|
|
|
|
image.addEventListener('mouseenter', () => {
|
|
|
|
image.src = '/oops.gif';
|
|
|
|
});
|
|
|
|
|
|
|
|
image.addEventListener('mouseleave', () => {
|
|
|
|
image.src = '/oops.png';
|
|
|
|
});
|
2024-04-29 17:02:41 +09:00
|
|
|
}).catch((e: unknown) => {
|
|
|
|
console.error(e);
|
2019-02-17 20:02:47 +09:00
|
|
|
});
|