Polishing

This commit is contained in:
Cadence Ember 2025-04-07 09:41:30 +12:00
parent f8992fc24b
commit 94fce03750
8 changed files with 48 additions and 19 deletions

View file

@ -3,8 +3,9 @@ function movePlayer() {
const playerExists = pc.querySelector("iframe")
if (!playerExists) return
const pm = document.getElementById("player-marker")
pm.style.display = "block"
pm.style.height = `${pc.clientHeight}px`
pc.style.top = `${Math.round(pm.getBoundingClientRect().top)}px`
}
movePlayer()
document.body.addEventListener("htmx:afterSettle", movePlayer)
document.body.addEventListener("htmx:load", movePlayer)