2
0

Move JS source from packs to entrypoints (#30037)

This commit is contained in:
Matt Jankowski
2024-04-23 12:45:12 -04:00
committed by GitHub
parent 32ead51e5a
commit 3f6887557b
13 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
import './public-path';
import ready from '../mastodon/ready';
ready(() => {
const image = document.querySelector('img');
image.addEventListener('mouseenter', () => {
image.src = '/oops.gif';
});
image.addEventListener('mouseleave', () => {
image.src = '/oops.png';
});
});