mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-25 23:58:59 +01:00
Clean up area under video and add Theater toggle
This commit is contained in:
parent
7db35edfda
commit
83d06e8584
2 changed files with 82 additions and 89 deletions
|
@ -783,6 +783,23 @@ a.new-button:hover {
|
|||
display: none;
|
||||
}
|
||||
|
||||
.pwp {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: end;
|
||||
gap: 6px;
|
||||
padding: 16px 0px;
|
||||
}
|
||||
.pwp a, .fnt {
|
||||
background: #452f37;
|
||||
border-radius: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 6px 12px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.hj:checked ~ .flying_cmnt {
|
||||
display: grid;
|
||||
position: absolute;
|
||||
|
@ -814,7 +831,7 @@ marquee {
|
|||
}
|
||||
|
||||
#video:target {
|
||||
object-fit:none;
|
||||
object-fit:contain;
|
||||
}
|
||||
|
||||
#secret-theme:target{
|
||||
|
|
|
@ -1001,96 +1001,72 @@ Privacy
|
|||
|
||||
|
||||
<div id="<%=sha384(inv_vid.videoId)%>" class="video-player-container">
|
||||
|
||||
|
||||
<video class="player video-ambient-container" id="video" style="border-radius: 16px;
|
||||
box-sizing: border-box;
|
||||
min-width: 100%;
|
||||
display: block; !important;" autoplay controls>
|
||||
|
||||
<video class="player video-ambient-container" id="video" style="border-radius: 16px; box-sizing: border-box; min-width: 100%; display: block;" autoplay controls>
|
||||
<% if (isvidious) { %>
|
||||
<% if (!qua) { %>
|
||||
<source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=22&local=true" type="video/mp4; codecs="avc1.64001F, mp4a.40.2"" label="hd720" selected="true">
|
||||
|
||||
<% } %>
|
||||
|
||||
<% if (qua === "medium") { %>
|
||||
|
||||
<source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=18&local=true" type="video/mp4; codecs="avc1.64001F, mp4a.40.2"" label="sd360" selected="true">
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
<% } %>
|
||||
<% } %>
|
||||
<% if (!isSchoolProxy) { %>
|
||||
|
||||
<% if (!isvidious) { %>
|
||||
|
||||
<% if (!qua) { %>
|
||||
<source src="https://tube.kuylar.dev/proxy/media/<%=inv_vid.videoId%>/22" type="video/mp4; codecs="avc1.64001F, mp4a.40.2"" label="hd720" selected="true">
|
||||
|
||||
<% } %>
|
||||
|
||||
<% if (qua === "medium") { %>
|
||||
|
||||
<source src="https://tube.kuylar.dev/proxy/media/<%=inv_vid.videoId%>/18" type="video/mp4; codecs="avc1.64001F, mp4a.40.2"" label="sd360" selected="true">
|
||||
<% } %>
|
||||
|
||||
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
<% if (isSchoolProxy) { %>
|
||||
<% if (!qua) { %>
|
||||
<source src="https://tube-proxy.ashley0143.xyz/proxy/media/<%=inv_vid.videoId%>/22" type="video/mp4; codecs="avc1.64001F, mp4a.40.2"" label="hd720" selected="true">
|
||||
|
||||
<% } %>
|
||||
|
||||
<% if (qua === "medium") { %>
|
||||
|
||||
<source src="https://tube-proxy.ashley0143.xyz/proxy/media/<%=inv_vid.videoId%>/18" type="video/mp4; codecs="avc1.64001F, mp4a.40.2"" label="sd360" selected="true">
|
||||
|
||||
<% } %>
|
||||
|
||||
<% } %>
|
||||
|
||||
|
||||
<% if (Array.isArray( inv_vid.captions)) { %>
|
||||
<% inv_vid.captions?.forEach(x => { %>
|
||||
<track src="/api/subtitles?v=<%=inv_vid.videoId%>&h=<%= x.label %>" label="<%= x.label.replace("United States","Simplified - USA") %>" kind="subtitles">
|
||||
|
||||
<% }) %>
|
||||
<% } %>
|
||||
|
||||
<% if (!Array.isArray( inv_vid.captions)) { %>
|
||||
<track src="/api/subtitles?v=<%=inv_vid.videoId%>&h=<%= %>" label="<%= video.Subtitles.Subtitle.language.replace("United States","Simplified - USA") %>" kind="subtitles">
|
||||
|
||||
|
||||
<% } %>
|
||||
|
||||
</video>
|
||||
<% if (!a) { %>
|
||||
|
||||
<% if (!a) { %>
|
||||
<canvas width="12" height="6" class="ambient-canvas" id="ambient-canvas-1"></canvas>
|
||||
<canvas width="12" height="6" class="ambient-canvas" id="ambient-canvas-2"></canvas>
|
||||
|
||||
<% } %>
|
||||
|
||||
<div class="pwp" style="display: flex;justify-content: center;align-items: center;flex-direction: row; column-gap: 3px;margin-top: 2px;max-height: 16px;" align="center">
|
||||
|
||||
<div class="pwp">
|
||||
<% if (!qua) { %>
|
||||
|
||||
<i style="display: block;" title="High Definition [Current]" class="fa-solid fa-high-definition"></i> <a href="/watch?v=<%=inv_vid.videoId%>&quality=medium"><i style="display: block;" title="Standard Definition" class="fa-light fa-standard-definition"></i></a>
|
||||
<a><i style="display: block;" title="High Definition [Current]" class="fa-solid fa-high-definition"></i> High Definition </a>
|
||||
<a href="/watch?v=<%=inv_vid.videoId%>&quality=medium"><i style="display: block;" title="Standard Definition" class="fa-light fa-standard-definition"></i> Standard Definition</a>
|
||||
<% } %>
|
||||
|
||||
<% if (qua) { %>
|
||||
<a href="/watch?v=<%=inv_vid.videoId%>"> <i style="display: block;" title="High Definition" class="fa-light fa-high-definition"></i> </a> <i style="display: block;" title="Standard Definition [Current]" class="fa-solid fa-standard-definition"></i>
|
||||
|
||||
<a href="/watch?v=<%=inv_vid.videoId%>"> <i style="display: block;" title="High Definition" class="fa-light fa-high-definition"></i> High Definition </a>
|
||||
<a><i style="display: block;" title="Standard Definition [Current]" class="fa-solid fa-standard-definition"></i> Standard Definition</a>
|
||||
<% } %>
|
||||
|
||||
<input type="checkbox" class="v" id="box" style="display:none">
|
||||
<label class="h" for="box">
|
||||
<div class="fnt">
|
||||
|
||||
<i title="Stats for nerdys" class="fa-light fa-bug" style="margin-left: 0.9em;display:block;"></i>
|
||||
<i title="Stats for nerdys" class="fa-light fa-bug"></i> Stats
|
||||
</div>
|
||||
|
||||
</label>
|
||||
|
||||
<a onclick="if(document.querySelector('.watch-page').style.display === 'grid') {document.querySelector('.watch-page').style.display = 'flex'} else {document.querySelector('.watch-page').style.display = 'grid'}"><i class="fa-sharp fa-light fa-up-right-and-down-left-from-center"></i> Theater</a>
|
||||
|
||||
<% if (inv.comments) { %>
|
||||
<input type="checkbox" class="hj" id="j" style="display:none">
|
||||
<label class="hj" for="j">
|
||||
|
@ -1101,7 +1077,7 @@ display: block; !important;" autoplay controls>
|
|||
</label>
|
||||
<% } %>
|
||||
|
||||
<a href="#video" class="maxi" id="maximize"> <i style="display: block;" title="Maximise!" class="fa-light fa-maximize"></i> </a>
|
||||
|
||||
|
||||
|
||||
<!-- Stats for nerds -->
|
||||
|
@ -1142,7 +1118,6 @@ display: block; !important;" autoplay controls>
|
|||
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="video-info" >
|
||||
<div class="video-info-panel gradient">
|
||||
<% if (k.Video.Channel.Name == "7clouds") { %>
|
||||
|
@ -3214,10 +3189,11 @@ video.addEventListener('ended', () => {
|
|||
window.addEventListener('load', () => {
|
||||
resumeProgress();
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
<noscript>
|
||||
<style>
|
||||
.auto-play{
|
||||
|
|
Loading…
Reference in a new issue