From 13941d6155fdb4eac3b6ee7f9c9bd74f4ff60a3f Mon Sep 17 00:00:00 2001 From: Ashley <iamashley@duck.com> Date: Fri, 18 Nov 2022 09:52:35 +0000 Subject: [PATCH] add did you mean? prompt --- html/search.ejs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/html/search.ejs b/html/search.ejs index 3e173f84..3b9c3ccf 100644 --- a/html/search.ejs +++ b/html/search.ejs @@ -249,6 +249,18 @@ video[counter].classList.add("shake"); </center> <hr style="clear: both;display: block;border: none;border-bottom: 0.5px solid #2f2f2f;margin: 0 16em;/*! width: 4.5em; */height: 0;"> + <% if (j.Search.Results.DynamicItem) { %> + + <% if (j.Search.Results.DynamicItem.id == "didYouMeanRenderer") { %> +<div style="text-align: left;margin-left: 16em;"> + <p> + Did you mean: <a href="/search?query=<%= h.correctedQueryEndpoint.searchEndpoint.query %>"><i><%= h.correctedQueryEndpoint.searchEndpoint.query %></i></a> ? + </p> + </div> + + <% } %> + <% } %> + <% if (summary.extract_html) { %> <div style="white-space: -moz-pre-wrap !important;white-space: -pre-wrap;white-space: -o-pre-wrap;white-space: pre-wrap;word-wrap: break-word;white-space: -webkit-pre-wrap;word-break: break-all;white-space: normal;padding: ;background: #1c1c1c;padding: 10px;border-radius: 10px;margin-left: 15.6em;margin-right: 15em;margin-top: 10px;"> @@ -270,7 +282,9 @@ video[counter].classList.add("shake"); </div> <% } %> - + + + <% j.Search.Results.Video.forEach(x => { %> <div class="video-list" >