pub / serci

Search the web with !keywords
git clone https://https://src.jayvii.de/pub/serci.git
Home | Log | Files | Exports | Refs | README | RSS

commit 890f1953429424bd585fd3cdfd638eb00be4a639
parent 052f3db6fb4dd42c277ea314fd19677542bfdc77
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Thu, 17 Oct 2024 18:52:23 +0200

fix: update default_search in searchbar directly

Diffstat:
Mindex.php | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/index.php b/index.php @@ -133,6 +133,7 @@ > <input name="default_search" + id="default_search" type="hidden" value="<?php echo $default_search; ?>" > @@ -362,6 +363,9 @@ "Max-Age=31536000;" + // 60 x 60 x 24 x 365 = 1 year "Domain=" + document.domain + ";" + "SameSite=Strict;"; + // Set value in searchbar + document.getElementById("default_search").value = selection; + // Update Search Engines list var entries = document.querySelectorAll("article") for (let i = 0; i < entries.length; i++) { if (entries[i].id == selection) {