From 0a824d30342a47cd9882c1b116f35366b413707d Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 12 Oct 2023 20:15:40 +0000 Subject: [PATCH] add no canvas to old devices --- html/poketube.ejs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/html/poketube.ejs b/html/poketube.ejs index 5a07e702..2c8e293d 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -432,7 +432,32 @@ text-shadow: 1px 1px #000,1px 1px 0.1px #000;!important; .video-sub-info.description { font-family:ubuntu !important; + } + + canvas { + display:none; } + + <% if (lightOrDark(color) == "light") { %> + .player.video-ambient-container { + box-shadow: 0 -8px 5.9em <%=color%>; + } + + <% } %> + + <% if (lightOrDark(color) == "dark") { %> + .player.video-ambient-container { + box-shadow: 0 -8px 5.9em <%=color2%>; + } + + <% } %> + <% if (a) { %> + + .player.video-ambient-container { + box-shadow: 0 0 0em <%=color%>; + } + + <% } %> <% } %>