mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Move script tags into video view
This commit is contained in:
parent
02b6990240
commit
1305410f4d
1 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
||||||
<% content_for "header" do %>
|
<% content_for "header" do %>
|
||||||
<%= video.info["title"] + " - " %>
|
<link rel="stylesheet" href="/css/video-js.css">
|
||||||
|
<script src="/js/video.js"></script>
|
||||||
|
<script src="/js/videojs.hotkeys.min.js"></script>
|
||||||
|
<title><%= video.info["title"] %> - Invidious</title>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if listen == "true" %>
|
<% if listen == "true" %>
|
||||||
|
@ -71,10 +74,10 @@ var player = videojs('player', options, function() {
|
||||||
<div class="pure-u-1 pure-u-md-1-5">
|
<div class="pure-u-1 pure-u-md-1-5">
|
||||||
<% rvs.each do |rv| %>
|
<% rvs.each do |rv| %>
|
||||||
<% if rv.has_key?("id") %>
|
<% if rv.has_key?("id") %>
|
||||||
<a target="_blank" class="link" href="/watch?v=<%= rv["id"] %>">
|
<a class="link" href="/watch?v=<%= rv["id"] %>">
|
||||||
<img style="width:100%" alt="thumbnail" src="<%= rv["iurlmq"] %>">
|
<img style="width:100%" alt="thumbnail" src="<%= rv["iurlmq"] %>">
|
||||||
</a>
|
</a>
|
||||||
<p><a target="_blank" class="link" href="/watch?v=<%= rv["id"] %>"><%= rv["title"] %></a></p>
|
<p><a class="link" href="/watch?v=<%= rv["id"] %>"><%= rv["title"] %></a></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue