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 2d4b89e90ebc012fa60a5a86d05ef39853e46ccf
parent 471defa78a952175ec01a6fe0eb4cb52057527b8
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Fri, 18 Oct 2024 00:21:04 +0200

fix: remove unnecessary javascript

Diffstat:
Mindex.php | 20+-------------------
1 file changed, 1 insertion(+), 19 deletions(-)

diff --git a/index.php b/index.php @@ -437,24 +437,6 @@ } </script> - <!-- Script to scroll entire category table into view --> - <script> - scroll_to = function(id) { - var obj = document.getElementById(id); - // use a delay of 1ms so animations are already accounted for - setTimeout( - function() { - obj.scrollIntoView({ - behavior: "smooth", - block: "start", - inline: "nearest" - }); - }, - 1 - ); - } - </script> - <!-- Script to search through the list of search engines --> <script> search_engines = function(bar) { @@ -483,7 +465,7 @@ // filter through search engines list search_engines("engines_searchbar"); // Scroll back to search bar - setTimeout(scroll_to("engines"), 500); + setTimeout(function() { document.location = "#engines"; }, 500); } </script>