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 54a5ea9dc956a28635216a908a769aadfa80d514
parent 890f1953429424bd585fd3cdfd638eb00be4a639
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Thu, 17 Oct 2024 19:25:32 +0200

feat: use button to make a search engine default

Diffstat:
Massets/css/custom.css | 3---
Mindex.php | 8+++-----
2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/assets/css/custom.css b/assets/css/custom.css @@ -69,7 +69,4 @@ article.selected { article:not(.selected) { background-color: #FF000033; } -article:not(.selected) { - cursor: pointer; -} diff --git a/index.php b/index.php @@ -217,7 +217,6 @@ $search = $searches[$searchid]; ?> <article - onclick="make_default('<?php echo $searchid; ?>');" <?php echo "id=\"" . $searchid . "\""; if ($searchid == $default_search) { @@ -250,10 +249,9 @@ ); ?> </code> - <p style="font-size: 66%;"> - (click here to choose this as your default search engine. This - will set a cookie!) - </p> + <button onclick="make_default('<?php echo $searchid; ?>')"> + Choose as Default + </button> </article> <?php }