From e5ab5dfc4806f1759962d59e6928165bf7dbad39 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 8 Jun 2025 21:29:22 +0200 Subject: [PATCH] Enable toggling button to switch between originals/improvements --- static/style.css | 8 ++++++++ templates/floating_button.html | 20 +++++++++++++++----- templates/index.html | 17 ++++++++++------- 3 files changed, 33 insertions(+), 12 deletions(-) diff --git a/static/style.css b/static/style.css index b9c65be..c6e739a 100644 --- a/static/style.css +++ b/static/style.css @@ -8,6 +8,10 @@ body { background: #f4f4f9; } +.hidden { + display: none; +} + .card { border: 1px solid #ccc; padding: 10px; @@ -81,6 +85,10 @@ body { padding: 5px; } +.fab-options li.hidden { + display: none; +} + .fab-label { padding: 2px 5px; align-self: center; diff --git a/templates/floating_button.html b/templates/floating_button.html index f506e65..c86d108 100644 --- a/templates/floating_button.html +++ b/templates/floating_button.html @@ -1,23 +1,33 @@ -
+
    -
  • +
  • Show Originals
    - +
  • -
  • +
  • Show Improved
    - +
  • diff --git a/templates/index.html b/templates/index.html index 861b5b8..0e36661 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,12 +14,15 @@

    The Pollen Prophet

    Making funny since 2025 what ought not bee.

    -
    - {% include "floating_button.html" %} +
    +
    + {% include "floating_button.html" %} +