From 7155ffcb5ef169bdc4e7cccc475ce83102edc329 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Thu, 14 May 2026 21:22:20 -0500 Subject: even more minimal and removed playback rate control since i found the intended control on the top on the embed frame oopsies --- static/index.js | 6 ------ static/style.css | 15 ++------------- 2 files changed, 2 insertions(+), 19 deletions(-) (limited to 'static') 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() { diff --git a/static/style.css b/static/style.css index efc90b0..f3c4065 100644 --- a/static/style.css +++ b/static/style.css @@ -1,8 +1,7 @@ html { background: #000; color: #fff } body { margin: 0; font-family: sans-serif } -a { color: lightblue } - -#index { max-width: 800px; margin: auto } +main { max-width: 1000px } +a { color: cornflowerblue } #player { display: block; @@ -12,14 +11,4 @@ a { color: lightblue } box-sizing: border-box; } -#title-bar { - display: flex; - align-items: center; - gap: .25rem; - - #title { flex-grow: 1 } -} - -#details, #comments { max-width: 1000px } - .comment .replies { margin-left: 2rem } -- cgit v1.2.3