Port upstream's javascript to the error page

lolsob-rspec
Thibaut Girka 2019-02-17 12:02:47 +01:00
parent da24c6aced
commit 9b89a7b2f2
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,13 @@
import ready from 'flavours/glitch/util/ready';
ready(() => {
const image = document.querySelector('img');
image.addEventListener('mouseenter', () => {
image.src = '/oops.gif';
});
image.addEventListener('mouseleave', () => {
image.src = '/oops.png';
});
});

View File

@ -7,7 +7,7 @@ pack:
filename: packs/common.js
stylesheet: true
embed: packs/public.js
error:
error: packs/error.js
home:
filename: packs/home.js
preload: