diff --git a/Jellyfin.Plugin.Seasonals/Web/marioday.js b/Jellyfin.Plugin.Seasonals/Web/marioday.js index 24c88a5..d8c0943 100644 --- a/Jellyfin.Plugin.Seasonals/Web/marioday.js +++ b/Jellyfin.Plugin.Seasonals/Web/marioday.js @@ -36,8 +36,12 @@ observer.observe(document.body, { function createMarioDay(container) { + // MARK: Mario's running speed across the screen + const marioSpeedSeconds = 18; + const wrapper = document.createElement('div'); wrapper.className = 'mario-wrapper'; + wrapper.style.animationDuration = `${marioSpeedSeconds}s`; const mario = document.createElement('img'); mario.className = 'mario-runner'; @@ -55,7 +59,7 @@ function createMarioDay(container) { // Grab Mario's current screen position to lock the coin's X coordinate const marioRect = wrapper.getBoundingClientRect(); coin.style.left = `${marioRect.left + 16}px`; - coin.style.bottom = '35px'; // Adjust for wrapper's bottom offset + coin.style.bottom = '35px'; // bottom offset container.appendChild(coin); setTimeout(() => coin.remove(), 2000);