闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
271 B

  1. import ready from '../mastodon/ready';
  2. ready(() => {
  3. const image = document.querySelector('img');
  4. image.addEventListener('mouseenter', () => {
  5. image.src = '/oops.gif';
  6. });
  7. image.addEventListener('mouseleave', () => {
  8. image.src = '/oops.png';
  9. });
  10. });