From 9e3eded0a0f1f02b3565e09ca7a9421328bb0b89 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Sun, 10 Mar 2024 09:15:04 +0000 Subject: [PATCH] remove "by" on author --- html/search.ejs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/html/search.ejs b/html/search.ejs index e73e966b..71f51a06 100644 --- a/html/search.ejs +++ b/html/search.ejs @@ -535,7 +535,7 @@ font-weight: 1000; ><%= x.title %>
<%= x.viewCountText %> <%= x.publishedText %> - By <%=x.author %> + <%=x.author %>
@@ -659,21 +659,21 @@ font-weight: 1000; changeFavicon("<%- media_proxy_url %>/proxy?url=https://static.wikia.nocookie.net/omori/images/d/d8/Something_Float_%282018_Demo%29.gif") var textList = [ "sunny... i love you", - "SUNNY... I'm... sorry..." + "SUNNY... I'm... sorry...", + "liar.", + "143", ]; - // Select four different text elements var textElements = document.querySelectorAll('.title'); textElements.forEach(function(element, index) { - element.textContent = textList[index % textList.length]; // Use modulo to cycle through textList + element.textContent = textList[index % textList.length]; }); var backgroundClasses = ['something-background-a', 'something-background-b', 'something-background-c']; - // Loop through each thumbnail element and assign a random background image class - thumbnails.forEach(function(thumbnail) { + thumbnails.forEach(function(thumbnail) { var randomIndex = Math.floor(Math.random() * backgroundClasses.length); thumbnail.classList.add(backgroundClasses[randomIndex]); });