]> cat aescling's git repositories - mastodon.git/blob - app/javascript/packs/error.js
Change error graphic to hover-to-play (#10055)
[mastodon.git] / app / javascript / packs / error.js
1 import ready from '../mastodon/ready';
2
3 ready(() => {
4 const image = document.querySelector('img');
5
6 image.addEventListener('mouseenter', () => {
7 image.src = '/oops.gif';
8 });
9
10 image.addEventListener('mouseleave', () => {
11 image.src = '/oops.png';
12 });
13 });
This page took 0.08051 seconds and 4 git commands to generate.