adryd325 / oneko.js

Cat follow mouse real! A hacky script I wrote to put a cat on my site.
MIT License
695 stars 68 forks source link

Oneko is not working with the most recent JavaScript #23

Closed phoenixofthestars closed 7 months ago

phoenixofthestars commented 7 months ago

I've called the .js file in my body tag and uploaded the .gif file but it's not showing up. Uploaded the demo file but can't see anything other than blank space.

Does the file for the cat's appearance have to be a .gif? I've got a .png that's the same size and with the separate animations in the same spots; I've just changed the colors.

adryd325 commented 7 months ago

Make sure data-cat="" points to the correct image

for example if your assets are stored in /assets/neko/, your script tag is <script src="/assets/neko/neko.js" data-cat="/assets/neko/neko.gif"></script

phoenixofthestars commented 7 months ago

Ahh okay. So my own inexperience is the problem lol. Thank you!