parent
71e28ba399
commit
80388a3ffe
4 changed files with 26 additions and 8 deletions
13
app/javascript/packs/error.js
Normal file
13
app/javascript/packs/error.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
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';
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue