From 8c77b05fba85a84760d8f8daba02bc54e82e750b Mon Sep 17 00:00:00 2001 From: maia arson crimew Date: Fri, 3 Mar 2023 22:32:39 +0100 Subject: [PATCH] properly credit ari for oneko.js --- src/_includes/components/footer.njk | 2 +- src/static/oneko.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/_includes/components/footer.njk b/src/_includes/components/footer.njk index 88995af..425d1c4 100644 --- a/src/_includes/components/footer.njk +++ b/src/_includes/components/footer.njk @@ -9,7 +9,7 @@ {% endfor %}
-

maia kitten art by vai5000, pixel art maia kitten by A. Marmot

+

credits: maia kitten art by vai5000, pixel art maia kitten by A. Marmot and pointer following kitten code from adryd325/oneko.js

{% for item in footer.badges %} diff --git a/src/static/oneko.js b/src/static/oneko.js index 934af63..73662da 100644 --- a/src/static/oneko.js +++ b/src/static/oneko.js @@ -1,4 +1,4 @@ -// based on: https://www.cssscript.com/cat-follow-cursor-oneko/ (licensed under MIT) and edited for maia kitten support with art from https://twitter.com/_Anunnery +// based on oneko.js from https://github.com/adryd325/oneko.js, licensed under MIT, with art from https://twitter.com/_Anunnery (function oneko() { const nekoEl = document.createElement("div"); @@ -62,6 +62,7 @@ nekoEl.style.width = "32px"; nekoEl.style.height = "32px"; nekoEl.style.position = "fixed"; + nekoEl.style.pointerEvents = "none"; nekoEl.style.backgroundImage = "url('/img/maia_oneko.gif')"; nekoEl.style.imageRendering = "pixelated"; nekoEl.style.left = "16px";