Move JS source from packs to entrypoints (#30037)
This commit is contained in:
14
app/javascript/entrypoints/error.js
Normal file
14
app/javascript/entrypoints/error.js
Normal 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';
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user