~cadence/cloudtube

9babaccd3b92105f6c48a9479febf9e202b3193b — Cadence Ember a month ago 6d560b8
Support Netscape Navigator 9
9 files changed, 18 insertions(+), 7 deletions(-)

A html/static/flash/player.swf
A html/static/flash/skin.swf
M pug/includes/layout.pug
R pug/{js-licenses.pug => licenses.pug}
M pug/video.pug
R sass/includes/{js-licenses-page.sass => licenses-page.sass}
M sass/includes/video-list-item.sass
M sass/main.sass
M server.js
A html/static/flash/player.swf => html/static/flash/player.swf +0 -0
A html/static/flash/skin.swf => html/static/flash/skin.swf +0 -0
M pug/includes/layout.pug => pug/includes/layout.pug +1 -1
@@ 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

R pug/js-licenses.pug => pug/licenses.pug +5 -2
@@ 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.)

M pug/video.pug => pug/video.pug +3 -0
@@ 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.

R sass/includes/js-licenses-page.sass => sass/includes/licenses-page.sass +1 -1
@@ 1,3 1,3 @@
.js-licenses-page
  max-width: 600px
  max-width: 800px
  margin: 0 auto

M sass/includes/video-list-item.sass => sass/includes/video-list-item.sass +6 -1
@@ 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

M sass/main.sass => sass/main.sass +1 -1
@@ 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"

M server.js => server.js +1 -1
@@ 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")