diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-06-08 10:52:47 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-06-08 10:52:47 -0500 |
| commit | 9122f8acee758794f168989c9da5234bd4c6e688 (patch) | |
| tree | 6d2338c114146a42a1596de25e9270ec8b43ec81 /src | |
| parent | ef8c9f093c0b6ea4b68b116d683e8d7f045ccd66 (diff) | |
| download | invidious-9122f8acee758794f168989c9da5234bd4c6e688.tar.gz invidious-9122f8acee758794f168989c9da5234bd4c6e688.tar.bz2 invidious-9122f8acee758794f168989c9da5234bd4c6e688.zip | |
Add title overlay to embedded videos
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/views/embed.ecr | 2 | ||||
| -rw-r--r-- | src/invidious/views/licenses.ecr | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/invidious/views/embed.ecr b/src/invidious/views/embed.ecr index 7fa5f45b..8b0e6dbd 100644 --- a/src/invidious/views/embed.ecr +++ b/src/invidious/views/embed.ecr @@ -6,6 +6,8 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="thumbnail" content="<%= thumbnail %>"> <%= rendered "components/player_sources" %> + <link rel="stylesheet" href="/css/videojs-overlay.css?v=<%= ASSET_COMMIT %>"> + <script src="/js/videojs-overlay.min.js?v=<%= ASSET_COMMIT %>"></script> <link rel="stylesheet" href="/css/default.css?v=<%= ASSET_COMMIT %>"> <title><%= HTML.escape(video.title) %> - Invidious</title> <style> diff --git a/src/invidious/views/licenses.ecr b/src/invidious/views/licenses.ecr index 0f92d86e..b990ce82 100644 --- a/src/invidious/views/licenses.ecr +++ b/src/invidious/views/licenses.ecr @@ -165,6 +165,20 @@ <tr> <td> + <a href="/js/videojs-overlay.min.js?v=<%= ASSET_COMMIT %>">videojs-overlay.min.js</a> + </td> + + <td> + <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a> + </td> + + <td> + <a href="https://github.com/brightcove/videojs-overlay"><%= translate(locale, "source") %></a> + </td> + </tr> + + <tr> + <td> <a href="/js/videojs-share.min.js?v=<%= ASSET_COMMIT %>">videojs-share.min.js</a> </td> |
