aboutsummaryrefslogtreecommitdiff
path: root/static/index.js
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-05-14 21:22:20 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-05-14 21:22:20 -0500
commit7155ffcb5ef169bdc4e7cccc475ce83102edc329 (patch)
tree17ed94d210609271a1cb4c6b535c4f82b7a65fbf /static/index.js
parent556ae86fa227872dea81f36923daef42a1296062 (diff)
downloadembedtube-7155ffcb5ef169bdc4e7cccc475ce83102edc329.tar.xz
embedtube-7155ffcb5ef169bdc4e7cccc475ce83102edc329.zip
even more minimal and removed playback rate control since i found the intended control on the top on the embed frame oopsies
Diffstat (limited to 'static/index.js')
-rw-r--r--static/index.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/static/index.js b/static/index.js
index 0213a18..b852619 100644
--- a/static/index.js
+++ b/static/index.js
@@ -1,15 +1,9 @@
/* setup player */
let player
const titleBar = document.getElementById("title")
-const playbackRate = document.getElementById("pb-rate")
function onPlayerReady(_e) {
document.title = titleBar.textContent = player.videoTitle
- player.getAvailablePlaybackRates()
- .forEach(r => playbackRate.options.add(
- new Option(`${r}x`, r, false, r == player.getPlaybackRate())
- ))
- playbackRate.addEventListener("change", e => player.setPlaybackRate(parseFloat(e.target.value)))
}
function onYouTubeIframeAPIReady() {