mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-21 23:27:30 +00:00
Support Netscape Navigator 9
This commit is contained in:
parent
6d560b8507
commit
9babaccd3b
BIN
html/static/flash/player.swf
Normal file
BIN
html/static/flash/player.swf
Normal file
Binary file not shown.
BIN
html/static/flash/skin.swf
Normal file
BIN
html/static/flash/skin.swf
Normal file
Binary file not shown.
@ -43,4 +43,4 @@ html
|
||||
h3.footer__colhead About
|
||||
ul.footer__list
|
||||
li: a(href="/privacy") Privacy policy
|
||||
li: a(href="/js-licenses" data-jslicense=1) JavaScript licenses
|
||||
li: a(href="/licenses" data-jslicense=1) Licenses
|
||||
|
@ -1,11 +1,12 @@
|
||||
extends includes/layout.pug
|
||||
|
||||
block head
|
||||
title JavaScript license information
|
||||
title License information
|
||||
|
||||
block content
|
||||
main.js-licenses-page
|
||||
h1 JavaScript license information
|
||||
h1 License information
|
||||
h2 JavaScript
|
||||
table#jslicense-labels1
|
||||
thead
|
||||
tr
|
||||
@ -20,3 +21,5 @@ block content
|
||||
td: a(href=file)= file
|
||||
td: a(href="http://www.gnu.org/licenses/agpl-3.0.html") GNU-AGPL-3.0-or-later
|
||||
td: a(href=file)= file
|
||||
h2 Flash
|
||||
p Flash playback is provided by #[a(href="https://github.com/gokercebeci/f4player/") f4player by Goker Cebeci.] (HTML 5 playback is still preferred where possible; Flash is only tried on ancient browsers.)
|
@ -32,6 +32,9 @@ block content
|
||||
source(src=format.url type=format.type)
|
||||
each t in video.captions
|
||||
track(label=t.label kind="subtitles" srclang=t.languageCode src=t.url)
|
||||
// fallback: flash player
|
||||
- let flashvars = new URLSearchParams({skin: "/static/flash/skin.swf", video: format.url})
|
||||
embed(type="application/x-shockwave-flash" src="/static/flash/player.swf" id="f4Player" width=1280 height=720 flashvars=flashvars.toString() allowscriptaccess="always" allowfullscreen="true" bgcolor="#000000")
|
||||
else
|
||||
video(src="")#video.video
|
||||
.stream-notice The server provided no playback streams.
|
||||
|
@ -1,3 +1,3 @@
|
||||
.js-licenses-page
|
||||
max-width: 600px
|
||||
max-width: 800px
|
||||
margin: 0 auto
|
@ -1,6 +1,10 @@
|
||||
@use "colors.sass" as c
|
||||
@use "_dimensions.sass" as dimensions
|
||||
|
||||
// navigator hacks
|
||||
.thumbnail > .thumbnail__options-container
|
||||
float: right
|
||||
|
||||
.thumbnail
|
||||
$more-size: 24px
|
||||
|
||||
@ -33,7 +37,8 @@
|
||||
&::-webkit-details-marker
|
||||
display: none
|
||||
|
||||
&__options-container
|
||||
// "&__more" is needed for navigator hacks
|
||||
&__more &__options-container
|
||||
position: absolute
|
||||
z-index: 1
|
||||
top: $more-size
|
||||
|
@ -9,7 +9,7 @@
|
||||
@use "includes/settings-page.sass"
|
||||
@use "includes/cant-think-page.sass"
|
||||
@use "includes/privacy-page.sass"
|
||||
@use "includes/js-licenses-page.sass"
|
||||
@use "includes/licenses-page.sass"
|
||||
@use "includes/filters-page.sass"
|
||||
@use "includes/forms.sass"
|
||||
@use "includes/nav.sass"
|
||||
|
@ -25,7 +25,7 @@ const constants = require("./utils/constants")
|
||||
server.addPugDir("pug/errors")
|
||||
server.addRoute("/cant-think", "pug/cant-think.pug", "pug")
|
||||
server.addRoute("/privacy", "pug/privacy.pug", "pug")
|
||||
server.addRoute("/js-licenses", "pug/js-licenses.pug", "pug")
|
||||
server.addRoute("/licenses", "pug/licenses.pug", "pug")
|
||||
|
||||
server.addStaticHashTableDir("html/static/js")
|
||||
server.addStaticHashTableDir("html/static/js/elemjs")
|
||||
|
Loading…
Reference in New Issue
Block a user