From 3a8c3ee0465495c5ed99fce6e3d3b96eab524140 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 18 Nov 2022 11:14:48 +0000 Subject: [PATCH] new search page !!!! --- html/search.ejs | 109 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 85 insertions(+), 24 deletions(-) diff --git a/html/search.ejs b/html/search.ejs index 3b9c3ccf..0048e296 100644 --- a/html/search.ejs +++ b/html/search.ejs @@ -94,6 +94,19 @@ summary:hover{ margin: auto; } + .shelf { + max-width: 51em; + margin: auto; + display: flex; + flex-direction: column; + row-gap: 16px; + padding: 16px; +background: #111111; +border: #333333 solid; +border-radius: 19px; +margin-top: 1em; + } + @font-face { font-family: 'Ginto Nord'; font-weight: 800; @@ -115,6 +128,11 @@ summary:hover{ line-height:24px; margin-top:12px } + + .wiki > p { + margin-top: -2em; +} + .sticky-top { position: sticky; @@ -239,51 +257,86 @@ video[counter].classList.add("shake"); <% if (Array.isArray( j.Search.Results.Video)) { %>
- +

<%=j.Search.estimatedResults.toLocaleString()%> Results (estimated)

Next Page

- -

- -
-
- <% if (j.Search.Results.DynamicItem) { %> - <% if (j.Search.Results.DynamicItem.id == "didYouMeanRenderer") { %> + +

+ <% if (j.Search.Results.DynamicItem) { %> + + <% if (j.Search.Results.DynamicItem.id == "didYouMeanRenderer") { %>

- Did you mean: <%= h.correctedQueryEndpoint.searchEndpoint.query %> ? + Did you mean: <%= h.correctedQueryEndpoint.searchEndpoint.query %> :3

- <% } %> - <% } %> + <% } %> <% } %> - - <% if (summary.extract_html) { %> -
+ +
+ + + <% if (!continuation) { %> + + <% if (summary.extract_html) { %> +
-
From da web
- +
From da web From wikipedia under CC-BY-SA 3.0 +
+
<%-summary.extract_html%> -

+ - From wikipedia under CC-BY-SA 3.0 -

+

- <% } %> + <% } %> <% } %> + + <% if (j.Search.Results.CardList) { %> + + <% if (j.Search.Results.CardList.title == "People also search for") { %> + - + +
+ + <% } %> <% } %> + <% j.Search.Results.Video.forEach(x => { %>
@@ -306,9 +359,17 @@ video[counter].classList.add("shake");
+ + + + <% }) %> + + + + + +

- <% }) %> -

<% if (continuation) { %>