forked from rDrama/rDrama
1
0
Fork 0

replace oneko with marseko

master
Aevann 2023-04-29 00:47:28 +02:00
parent dd2b93340c
commit 39156bcd27
5 changed files with 7 additions and 7 deletions

View File

@ -7305,6 +7305,6 @@ button, .btn {
}
}
#oneko {
#marseko {
z-index: 1000000000000000;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -1,6 +1,6 @@
// based on oneko.js from https://github.com/adryd325/oneko.js, licensed under MIT, with art from https://twitter.com/_Anunnery
// based on marseyko.js from https://github.com/adryd325/marseyko.js, licensed under MIT, with art from https://twitter.com/_Anunnery
(function oneko() {
(function marseyko() {
const nekoEl = document.createElement("div");
let nekoPosX = 32;
let nekoPosY = 32;
@ -75,12 +75,12 @@
};
function create() {
nekoEl.id = "oneko";
nekoEl.id = "marseyko";
nekoEl.style.width = "32px";
nekoEl.style.height = "32px";
nekoEl.style.position = "fixed";
nekoEl.style.pointerEvents = "none";
nekoEl.style.backgroundImage = "url('/i/oneko.gif?x=1')";
nekoEl.style.backgroundImage = "url('/i/marseko.webp?x=1')";
nekoEl.style.imageRendering = "pixelated";
nekoEl.style.left = "16px";
nekoEl.style.top = "16px";
@ -92,7 +92,7 @@
mousePosY = event.clientY;
};
window.onekoInterval = setInterval(frame, 100);
window.marseykoInterval = setInterval(frame, 100);
}
function setSprite(name, frame) {

View File

@ -99,7 +99,7 @@
{% endif %}
{% if SITE_NAME == 'rDrama' %}
<script defer src="{{'js/vendor/oneko.js' | asset}}"></script>
<script defer src="{{'js/vendor/marseko.js' | asset}}"></script>
{% endif %}
{% if IS_DKD() %}