From 2ba3f2e4e7dade44df600c666c9b1aee482e3d97 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sun, 27 Feb 2022 09:39:46 +0100 Subject: doc(bahnhofshalle): document JS requirement in FAQ Since we are cross-referencing an FAQ section, we also make this convenient by adding ids for all headings and highlighting the currently targeted heading with an underline. This ensurse that it's clear which section to read when clicking on a link even when the screen may not jump around on even normal sized screens. --- bahnhofshalle/index.html | 21 +++++++++++++++------ bahnhofshalle/style.css | 5 +++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/bahnhofshalle/index.html b/bahnhofshalle/index.html index 0e98544..3b5e85c 100644 --- a/bahnhofshalle/index.html +++ b/bahnhofshalle/index.html @@ -62,7 +62,7 @@

faq

-

What the hell is this?

+

What the hell is this?

flipdot-gschichtler is a set of network applications which allow @@ -79,7 +79,7 @@ annoy everyone who is present from the comfort of your own home.

-

How does it work?

+

How does it work?

This server provides a REST API which manages a queue of strings @@ -96,7 +96,7 @@ script to display the strings from the queue.

-

Where's the source code?

+

Where's the source code?

Hosted on GitHub: @@ -104,7 +104,7 @@

-

How do I use the API?

+

How do I use the API?

Long story short: /api/v2/queue @@ -120,16 +120,25 @@ API documentation.

-

Can I get an API token?

+

Can I get an API token?

Authentication is only necessary to delete queue entries, so chances are you don't need one. If you need one regardless, ask - sterni + sternenseemann .

+ +

Why isn't this working for me?

+ +

+ This site uses JavaScript, more specifically + EcmaScript2015. + If you're browser doesn't support this, you should either upgrade to a + modern one or + interact with the API directly.

diff --git a/bahnhofshalle/style.css b/bahnhofshalle/style.css index e51a830..bbec6b6 100644 --- a/bahnhofshalle/style.css +++ b/bahnhofshalle/style.css @@ -36,6 +36,11 @@ a:visited, a:link { color: #0088aa; /* openlab blue */ } +h3:target { + /* highlight a FAQ heading when selected via a link */ + text-decoration: underline; +} + .table-container { max-width: 100%; overflow: auto; -- cgit 1.4.1