Co-authored-by: tobi <tobi.smethurst@protonmail.com> Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/88 Co-authored-by: Zoë Bijl <moiety@noreply.codeberg.org> Co-committed-by: Zoë Bijl <moiety@noreply.codeberg.org>
15 lines
303 B
JavaScript
15 lines
303 B
JavaScript
import "packs/public-path";
|
|
import ready from "flavours/glitch/ready";
|
|
|
|
ready(() => {
|
|
const image = document.querySelector("img");
|
|
|
|
image.addEventListener("mouseenter", () => {
|
|
image.src = "/oops.gif";
|
|
});
|
|
|
|
image.addEventListener("mouseleave", () => {
|
|
image.src = "/oops.png";
|
|
});
|
|
});
|