mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 13:37:51 +01:00
add thumb versions
This commit is contained in:
parent
4f32bcb58a
commit
32f7446960
1 changed files with 9 additions and 4 deletions
|
@ -646,10 +646,15 @@ height: 100%;
|
||||||
<% if (!isMobile) { %>
|
<% if (!isMobile) { %>
|
||||||
<div class="channel-info-container" style="text-align: center;">
|
<div class="channel-info-container" style="text-align: center;">
|
||||||
|
|
||||||
<% if (j?.Channel?.Metadata?.Banners.Thumbnail) { %>
|
<% if (j?.Channel?.Metadata?.Banners.Thumbnail) { %>
|
||||||
|
<% for (let i = 5; i >= 1; i--) { %>
|
||||||
|
<% if (j.Channel.Metadata.Banners.Thumbnail[i]?.['$t']) { %>
|
||||||
|
<img src="<%- media_proxy_url %>/proxy?url=<%= j.Channel.Metadata.Banners.Thumbnail[i].$t %>" style="height: 30em; object-fit: cover; pointer-events: none;" id="thumbnail_version_<%= i %>">
|
||||||
|
<% break; %>
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
||||||
|
|
||||||
<img src="<%- media_proxy_url %>/proxy?url=<%=j.Channel?.Metadata.Banners.Thumbnail[2].$t%>" style="height: 30em;object-fit: cover;pointer-events:none;">
|
|
||||||
<% } %>
|
|
||||||
|
|
||||||
<div class="channel-info" style="margin-bottom: 3em;margin-left:2em;margin-top: -11em;">
|
<div class="channel-info" style="margin-bottom: 3em;margin-left:2em;margin-top: -11em;">
|
||||||
<a href="/avatars/<%=j.Channel?.Metadata.Avatars.Thumbnail?.$t.replace("https://yt3.googleusercontent.com/", "")%>" class="avatar">
|
<a href="/avatars/<%=j.Channel?.Metadata.Avatars.Thumbnail?.$t.replace("https://yt3.googleusercontent.com/", "")%>" class="avatar">
|
||||||
|
|
Loading…
Reference in a new issue