diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-02-17 11:58:17 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-02-17 12:26:55 +0100 |
commit | 369a475a7001677493b452b9aaea1141de442c53 (patch) | |
tree | a0c81f0876c68827cfa0e856844054e53cb2e741 /app/javascript/packs | |
parent | ab9082b3325dfd193d7130d6c880e85ab2781bc0 (diff) | |
parent | 147b4c2c3afacd6ad9d5c1353c072861eaca5fd2 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - app/serializers/rest/instance_serializer.rb - app/views/layouts/error.html.haml - public/oops.png Took our version (same as upstream but without the things that only make sense in an animation). Additional changes: - app/javascript/flavours/vanilla/theme.yml Include upstream's javascript in error pages.
Diffstat (limited to 'app/javascript/packs')
-rw-r--r-- | app/javascript/packs/error.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/javascript/packs/error.js b/app/javascript/packs/error.js new file mode 100644 index 000000000..685c89065 --- /dev/null +++ b/app/javascript/packs/error.js @@ -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'; + }); +}); |