diff --git a/html/search.ejs b/html/search.ejs index f8d52c2..4dd0125 100644 --- a/html/search.ejs +++ b/html/search.ejs @@ -192,6 +192,12 @@ text-rendering: auto; .video:hover{ border:solid; } + .tabs { + display: table; + font-family:inter; + border-collapse: separate; + table-layout: auto; +} .tabs.tabs-center { margin: auto; } @@ -212,8 +218,6 @@ border:solid; .tabs a.tab:hover { color: #3cb4fa; } - - .tabs a.tab:after { transition: all 0.3s cubic-bezier(1, 0, 0, 1); will-change: transform, box-shadow, opacity; @@ -236,20 +240,7 @@ border:solid; opacity: 1; transform: scale(1, 1); } - - .loading { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: rgba(0, 0, 0, 0.7); - z-index: 9999; - display: flex; - justify-content: center; - align-items: center; -} - + .loading .spinner { display: inline-block; border: 5px solid rgba(255, 255, 255, 0.2); @@ -376,9 +367,24 @@ video[counter].classList.add("shake");
- - - + +
+ <% if (tab) { %> +Videos + +Web + <% } %> + <% if (!tab) { %> +Videos + +Web + <% } %> + + + +
+ <% if (!tab) { %> + <% if (Array.isArray( j.Search.Results.Video)) { %>
<% if (j.Search.Results.DynamicItem) { %> @@ -548,7 +554,22 @@ font-weight: 1000; <% } %>
+ <% } %> + <% if (tab === "web") { %> +
+ + <% results.forEach(x => { %> +
+ + <%= x.title %>
+

<%= x.link %>
+ <%= x.snippet %> +

+
+ + <% }) %> + <% } %>