Polishing
This commit is contained in:
parent
f8992fc24b
commit
94fce03750
8 changed files with 48 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue