Update html/watch.ejs

This commit is contained in:
ashley 2025-08-19 00:10:44 +02:00
parent 3a2318c549
commit af8405620d

View File

@ -2915,83 +2915,7 @@ font-size: 13px;margin:0;padding:0;white-space: nowrap;
const userScoreColor = userScore >= 80 ? 'green' : userScore >= 50 ? 'orange' : 'red';
%>
<div class="nerddd" style="background:#272727;padding: 5px;margin-top: 12px;border-radius: 11px;font-family: 'PokeTube Flex';font-stretch: extra-expanded;font-weight: 700;">
<style>
@keyframes gradientAnimation {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
@keyframes glow {
0%, 100% {
box-shadow: 0 0 15px rgba(0,255,255,0.7), inset 0 0 10px rgba(0,255,255,0.3);
}
50% {
box-shadow: 0 0 25px rgba(0,255,255,1), inset 0 0 15px rgba(0,255,255,0.5);
}
}
.ai-buttona {
padding: 0.75rem 1.5rem;
font-size: 15px;
letter-spacing: 0.05em;
text-transform: uppercase;
color: #ffffff;
text-decoration: none;
background: linear-gradient(
90deg,
hsla(235, 21%, 21%, 1) 0%,
hsla(194, 41%, 22%, 1) 50%,
hsla(174, 48%, 20%, 1) 100%
);
background-size: 238% 300%;
border-radius: 2rem;
border: none;
box-shadow: 0 0 15px rgba(0,255,255,0.7), inset 0 0 10px rgba(0,255,255,0.3);
transition: box-shadow 0.2s ease;
margin-top: 1em;
margin-bottom: -1em;
margin-left: 6em;
text-align: center;
animation: none;
}
.ai-button:hover {
box-shadow: 0 0 20px rgba(0,255,255,1), inset 0 0 15px rgba(0,255,255,0.5);
opacity: 0.9;
}
</style>
<%
const variant = Math.random() < 0.5 ? 'A' : 'B';
const showButton = Math.random() < 0.5;
const desc = inv_vid.description || '';
%>
<% if (showButton) { %>
<br><br> <a
href="https://chatgpt.com/?q=<%= encodeURIComponent(
desc +
' Please summarize the selection using precise and concise language. ' +
'Use headers and bulleted lists in the summary, to make it scannable. ' +
'Maintain the meaning and factual accuracy.'
) %>"
target="_blank"
rel="noopener noreferrer"
aria-label="Summarise the video description"
class="ai-buttona"
data-variant="<%= variant %>"
>
Summarise!
</a>
<% } %>
<br><br><br>
<%-String(channelurlfixer(inv_vid.descriptionHtml)).replace(/\n/g, " <br> ").replace(/twitter\.com/g, "twitter.com").replace(/reddit\.com/g, "redlib.matthew.science") %>