Change error graphic to hover-to-play (#10055)

Fix #6060
This commit is contained in:
Eugen Rochko 2019-02-15 23:33:25 +01:00
parent 584f29e62a
commit caf1450292
4 changed files with 26 additions and 8 deletions

View 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';
});
});