pub / serci

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

commit 97f241e3c5eda3cdea6e5a025d757f41ffc75717
parent f924fbe59158ffa1eae8f2ec61a28547cff04d6f
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Fri, 12 Jul 2024 12:10:44 +0200

feat: scroll on category-expand

Diffstat:
Massets/css/custom.css | 3+++
Mindex.php | 5++++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/assets/css/custom.css b/assets/css/custom.css @@ -1,3 +1,6 @@ +html { + scroll-behavior: smooth; +} #searchform { width: 100%; display: flex; diff --git a/index.php b/index.php @@ -149,7 +149,9 @@ foreach ($searchcats as $category => $searchids) { ?> - <details> + + <a href="#<?php echo $category; ?>"> + <details id="<?php echo $category; ?>"> <summary><?php echo $categories[$category]["name"]; ?></summary> <table> <tr> @@ -186,6 +188,7 @@ ?> </table> </details> + </a> <?php } ?>