forked from rDrama/rDrama
replace oneko with marseko
parent
dd2b93340c
commit
39156bcd27
|
@ -7305,6 +7305,6 @@ button, .btn {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#oneko {
|
#marseko {
|
||||||
z-index: 1000000000000000;
|
z-index: 1000000000000000;
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.2 KiB |
|
@ -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");
|
const nekoEl = document.createElement("div");
|
||||||
let nekoPosX = 32;
|
let nekoPosX = 32;
|
||||||
let nekoPosY = 32;
|
let nekoPosY = 32;
|
||||||
|
@ -75,12 +75,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
function create() {
|
function create() {
|
||||||
nekoEl.id = "oneko";
|
nekoEl.id = "marseyko";
|
||||||
nekoEl.style.width = "32px";
|
nekoEl.style.width = "32px";
|
||||||
nekoEl.style.height = "32px";
|
nekoEl.style.height = "32px";
|
||||||
nekoEl.style.position = "fixed";
|
nekoEl.style.position = "fixed";
|
||||||
nekoEl.style.pointerEvents = "none";
|
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.imageRendering = "pixelated";
|
||||||
nekoEl.style.left = "16px";
|
nekoEl.style.left = "16px";
|
||||||
nekoEl.style.top = "16px";
|
nekoEl.style.top = "16px";
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
mousePosY = event.clientY;
|
mousePosY = event.clientY;
|
||||||
};
|
};
|
||||||
|
|
||||||
window.onekoInterval = setInterval(frame, 100);
|
window.marseykoInterval = setInterval(frame, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setSprite(name, frame) {
|
function setSprite(name, frame) {
|
|
@ -99,7 +99,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if SITE_NAME == 'rDrama' %}
|
{% if SITE_NAME == 'rDrama' %}
|
||||||
<script defer src="{{'js/vendor/oneko.js' | asset}}"></script>
|
<script defer src="{{'js/vendor/marseko.js' | asset}}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if IS_DKD() %}
|
{% if IS_DKD() %}
|
||||||
|
|
Loading…
Reference in New Issue