From 18ff396361fece84a99d0e93a8c33cfef2b7c105 Mon Sep 17 00:00:00 2001 From: Oliver Gut Date: Wed, 10 May 2023 18:54:17 +0000 Subject: [PATCH] Improve availability information on small devices --- src/index.html | 2 +- src/javascript.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index d34a0e9..4e26bef 100644 --- a/src/index.html +++ b/src/index.html @@ -47,7 +47,7 @@

🏸 Kursangebot

Legende VerfĂźgbarkeit:
freie Plätze - wenige Plätze + < 5 Plätze Warteliste

diff --git a/src/javascript.html b/src/javascript.html index 7a928e9..fc5733d 100644 --- a/src/javascript.html +++ b/src/javascript.html @@ -71,7 +71,7 @@ const [id, , , , , , , , , , participantLimit, bookings, availableSeats] = event let [badgeState, badgeText] = ['success', 'freie Plätze'] if (availableSeats <= 0) [badgeState, badgeText] = ['danger', 'Warteliste'] - else if (availableSeats <= 5) [badgeState, badgeText] = ['warning', 'wenige Plätze'] + else if (availableSeats < 5) [badgeState, badgeText] = ['warning', 'wenige Plätze'] return `