mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-22 15:47:30 +00:00
Add quality label on video page, move main element
This commit is contained in:
parent
5a5901db7d
commit
0dfa8ca2b6
@ -20,11 +20,11 @@ block content
|
|||||||
script(type="module" src=getStaticURL("html", "/static/js/continuous.js"))
|
script(type="module" src=getStaticURL("html", "/static/js/continuous.js"))
|
||||||
noscript
|
noscript
|
||||||
meta(http-equiv="refresh" content=`${video.lengthSeconds+5};url=/watch?v=${first.videoId}&continuous=1&session-watched=${sessionWatchedNext}`)
|
meta(http-equiv="refresh" content=`${video.lengthSeconds+5};url=/watch?v=${first.videoId}&continuous=1&session-watched=${sessionWatchedNext}`)
|
||||||
main.video-page(class={
|
.video-page(class={
|
||||||
"video-page--recommended-below": settings.recommended_mode === 1,
|
"video-page--recommended-below": settings.recommended_mode === 1,
|
||||||
"video-page--recommended-hidden": settings.recommended_mode === 2
|
"video-page--recommended-hidden": settings.recommended_mode === 2
|
||||||
})
|
})
|
||||||
.main-video-section
|
main.main-video-section
|
||||||
.video-container
|
.video-container
|
||||||
- const format = formats[0]
|
- const format = formats[0]
|
||||||
if format
|
if format
|
||||||
@ -69,7 +69,7 @@ block content
|
|||||||
.button-container
|
.button-container
|
||||||
+subscribe_button(video.authorId, subscribed, `/watch?v=${video.videoId}`).border-look
|
+subscribe_button(video.authorId, subscribed, `/watch?v=${video.videoId}`).border-look
|
||||||
//- button.border-look#theatre Theatre
|
//- button.border-look#theatre Theatre
|
||||||
select(autocomplete="off").border-look#quality-select
|
select(aria-label="Quality" autocomplete="off").border-look#quality-select
|
||||||
each f in formats
|
each f in formats
|
||||||
option(value=f.itag)= f.cloudtube__label
|
option(value=f.itag)= f.cloudtube__label
|
||||||
//-
|
//-
|
||||||
|
Loading…
Reference in New Issue
Block a user