Add clickable title for embedded videos
This commit is contained in:
parent
fcf377d26b
commit
485459b8b2
|
@ -353,7 +353,7 @@ span > select {
|
||||||
|
|
||||||
/* Overlay */
|
/* Overlay */
|
||||||
.video-js .vjs-overlay {
|
.video-js .vjs-overlay {
|
||||||
background-color: rgba(35, 35, 35, 0.5);
|
background-color: rgba(35, 35, 35, 0.75);
|
||||||
color: rgba(255, 255, 255, 1);
|
color: rgba(255, 255, 255, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,12 +106,12 @@ if (location.pathname.startsWith('/embed/')) {
|
||||||
player.overlay({
|
player.overlay({
|
||||||
overlays: [{
|
overlays: [{
|
||||||
start: 'loadstart',
|
start: 'loadstart',
|
||||||
content: '<h1>' + player_data.title + '</h1>',
|
content: '<h1><a href="' + location.href + '">' + player_data.title + '</a></h1>',
|
||||||
end: 'playing',
|
end: 'playing',
|
||||||
align: 'top'
|
align: 'top'
|
||||||
}, {
|
}, {
|
||||||
start: 'pause',
|
start: 'pause',
|
||||||
content: '<h1>' + player_data.title + '</h1>',
|
content: '<h1><a href="' + location.href + '">' + player_data.title + '</a></h1>',
|
||||||
end: 'playing',
|
end: 'playing',
|
||||||
align: 'top'
|
align: 'top'
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<link rel="stylesheet" href="/css/videojs-overlay.css?v=<%= ASSET_COMMIT %>">
|
<link rel="stylesheet" href="/css/videojs-overlay.css?v=<%= ASSET_COMMIT %>">
|
||||||
<script src="/js/videojs-overlay.min.js?v=<%= ASSET_COMMIT %>"></script>
|
<script src="/js/videojs-overlay.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
<link rel="stylesheet" href="/css/default.css?v=<%= ASSET_COMMIT %>">
|
<link rel="stylesheet" href="/css/default.css?v=<%= ASSET_COMMIT %>">
|
||||||
|
<link rel="stylesheet" href="/css/darktheme.css?v=<%= ASSET_COMMIT %>">
|
||||||
<title><%= HTML.escape(video.title) %> - Invidious</title>
|
<title><%= HTML.escape(video.title) %> - Invidious</title>
|
||||||
<style>
|
<style>
|
||||||
#player {
|
#player {
|
||||||
|
|
Loading…
Reference in a new issue