commit 90dd8db3656c9c6d7a34ef50d934b1641774b601
parent aeecd6cd0eaac8298252fcd946203eb28d9ab6e5
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Fri, 18 Oct 2024 12:18:46 +0200
feat: wrap FAQs in details-tag
Diffstat:
M | index.php | | | 224 | +++++++++++++++++++++++++++++++++++++++++-------------------------------------- |
1 file changed, 115 insertions(+), 109 deletions(-)
diff --git a/index.php b/index.php
@@ -312,119 +312,125 @@
<h3>About serĉi</h3>
<!-- meaning of name -->
- <h4>What does serĉi mean?</h4>
- <p>
- It is the Esperanto term for
- <a
- href="https://m.dict.cc/esperanto-english/ser%C4%89i.html"
- target="_blank"
- >
- to search
- </a>.
- This may not be the most creative name for such a software
- project but to the best of my knowledge, it is a unique one.
- </p>
+ <details>
+ <summary>What does serĉi mean?</summary>
+ <p>
+ It is the Esperanto term for "to search".This may not be the
+ most creative name for such a software project but to the
+ best of my knowledge, it is a unique one.
+ </p>
+ </details>
<!-- what are keywords -->
- <h4>What are keywords?</h4>
- <p>
- An idea lent from the search Engine
- <a href="https://duckduckgo.com/bangs" target="_blank">
- DuckDuckGo
- </a>, which has been utilized by many others since. They call
- their keywords bangs, but it is the same concept and usability.
- In essence, keywords are shortcuts for searching on other
- websites.
- </p>
- <p>
- For example, you can conduct a search on the website
- <a
- href="<?php echo $searches[$rsi]["website"]; ?>"
- target="_blank"
- >
- <?php echo $searches[$rsi]["name"]; ?>
- </a>
- directly from <?php echo $_SERVER["SERVER_NAME"]; ?> by adding
- the keyword
- <code>!<?php echo $searches[$rsi]["keywords"][0]; ?></code> to
- your search query.
- </p>
- <p>
- You can find all keywords associated with each search engine in
- the <a href="#engines">list above</a>.
- </p>
-
- <!-- no js or cookies -->
- <h4>Choosing a fallback search without cookies or Javascript</h4>
- <p>
- You can simply choose a fallback search by adding the
- <code>fallback</code> URL parameter. For example, if you
- wanted to use
- <a
- href="<?php echo $searches[$rsi]["website"]; ?>"
- target="_blank"
- >
- <?php echo $searches[$rsi]["name"]; ?>
- </a>
- as your fallback search, you can simply add
- <code>/?fallback=<?php echo $rsi; ?></code> to the serĉi
- URL:
- <br>
- <a href="/?fallback=<?php echo $rsi; ?>">
- <?php
- echo "https://" . $_SERVER["SERVER_NAME"] .
- "/?fallback=" . $rsi;
- ?>
- </a>
- </p>
+ <details>
+ <summary>What are keywords?</summary>
+ <p>
+ An idea lent from the search Engine
+ <a href="https://duckduckgo.com/bangs" target="_blank">
+ DuckDuckGo
+ </a>, which has been utilized by many others since. They
+ call their keywords bangs, but it is the same concept and
+ usability. In essence, keywords are shortcuts for searching
+ on other websites.
+ </p>
+ <p>
+ For example, you can conduct a search on the website
+ <a
+ href="<?php echo $searches[$rsi]["website"]; ?>"
+ target="_blank"
+ >
+ <?php echo $searches[$rsi]["name"]; ?>
+ </a>
+ directly from <?php echo $_SERVER["SERVER_NAME"]; ?> by
+ adding the keyword
+ <code>!<?php echo $searches[$rsi]["keywords"][0]; ?></code>
+ to your search query.
+ </p>
+ <p>
+ You can find all keywords associated with each search engine
+ in the <a href="#engines">list above</a>.
+ </p>
+ </details>
<!-- how to use -->
- <h4>How can I use serĉi?</h4>
- <p>
- You can try serĉi directly <a href="#searchbar">on this site</a>
- or
- <a
- href="https://src.jayvii.de/pub/serci/#hosting"
- target="_blank"
- >
- host it yourself
- </a>!
- It barely needs any server resources, no database or lots of
- RAM. serĉi has minimal footprint (also on user data: there are
- <strong>NONE</strong>).
- </p>
- <p>
- Either type your search directly into the
- <a href="#searchbar">search bar at the very top</a>
- or add the search to your browser by rightclicking in the
- URL-bar of your web browser and choose
- <emph>add serĉi - Search with !keywords</emph>.
- </p>
- <p>
- Some browsers (for example Firefox on Android / Fennec) allow to
- configure custom search engines via a so-called search URL.
- Simply list following URL as <emph>search-URL</emph> there and
- choose it as your fallback search option:
- </p>
- <pre>https://<?php echo $_SERVER["SERVER_NAME"]; ?>/?q=%s</pre>
- <p>
- You can also choose the fallback search engine, used by serĉi as
- fallback, when no keyword is given, through the URL instead of
- choosing it from the <a href="#engines">list above</a>, in case
- you do not want serĉi to store any cookie on your device. For
- example, if you wanted to use
- <a
- href="<?php echo $searches[$rsi]["website"]; ?>"
- target="_blank"
- >
- <?php echo $searches[$rsi]["name"]; ?>
- </a>
- as your fallback search, you could use following search-URL:
- </p>
- <pre><?php
- echo "https://" . $_SERVER["SERVER_NAME"] .
- "/?fallback=" . $rsi . "&q=%s";
- ?></pre>
+ <details>
+ <summary>How can I use serĉi?</summary>
+ <p>
+ You can try serĉi directly
+ <a href="#searchbar">on this site</a> or
+ <a
+ href="https://src.jayvii.de/pub/serci/#hosting"
+ target="_blank"
+ >
+ host it yourself
+ </a>!
+ It barely needs any server resources, no database or lots of
+ RAM. serĉi has minimal footprint (also on user data: there
+ are <strong>none</strong>).
+ </p>
+ <p>
+ Either type your search directly into the
+ <a href="#searchbar">search bar at the very top</a>
+ or add the search to your browser by rightclicking in the
+ URL-bar of your web browser and choose
+ <emph>add serĉi - Search with !keywords</emph>.
+ </p>
+ <p>
+ Some browsers (for example Firefox on Android / Fennec)
+ allow to configure custom search engines via a so-called
+ search URL. Simply list following URL as
+ <emph>search-URL</emph> there and choose it as your fallback
+ search option:
+ </p>
+ <pre>https://<?php echo $_SERVER["SERVER_NAME"]; ?>/?q=%s</pre>
+ <p>
+ You can also choose the fallback search engine, used by
+ serĉi as fallback, when no keyword is given, through the URL
+ instead of choosing it from the
+ <a href="#engines">list above</a>, in case you do not want
+ serĉi to store any cookie on your device. For example, if
+ you wanted to use
+ <a
+ href="<?php echo $searches[$rsi]["website"]; ?>"
+ target="_blank"
+ >
+ <?php echo $searches[$rsi]["name"]; ?>
+ </a>
+ as your fallback search, you could use following search-URL:
+ </p>
+ <pre><?php
+ echo "https://" . $_SERVER["SERVER_NAME"] .
+ "/?fallback=" . $rsi . "&q=%s";
+ ?></pre>
+ </details>
+
+ <!-- no js or cookies -->
+ <details>
+ <summary>
+ Choosing a fallback search without cookies or Javascript
+ </summary>
+ <p>
+ You can simply choose a fallback search by adding the
+ <code>fallback</code> URL parameter. For example, if you
+ wanted to use
+ <a
+ href="<?php echo $searches[$rsi]["website"]; ?>"
+ target="_blank"
+ >
+ <?php echo $searches[$rsi]["name"]; ?>
+ </a>
+ as your fallback search, you can simply add
+ <code>/?fallback=<?php echo $rsi; ?></code> to the serĉi
+ URL:
+ <br>
+ <a href="/?fallback=<?php echo $rsi; ?>">
+ <?php
+ echo "https://" . $_SERVER["SERVER_NAME"] .
+ "/?fallback=" . $rsi;
+ ?>
+ </a>
+ </p>
+ </details>
</section>