From 19183b42a83e4bb1f22f11c244553da8aa6e15cd Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 14 Jun 2026 16:54:13 -0300 Subject: [PATCH] live seat availability: fetch from server webhook, orange/red styling when <10/0 seats, disable sold-out locations --- add.html | 50 +++++++++++++++++++++++++++++++++- assets/css/style.css | 8 ++++++ assets/js/script.js | 64 ++++++++++++++++++++++++++++++++++++++++++++ data/operations.json | 30 ++++++++++----------- index.html | 2 +- 5 files changed, 136 insertions(+), 18 deletions(-) diff --git a/add.html b/add.html index 2ed66f9..75fea11 100644 --- a/add.html +++ b/add.html @@ -299,6 +299,8 @@ } .pricing-config-select:hover { border-color: var(--accent); } .pricing-config-select:focus { border-color: var(--accent); } + .pricing-config-select.low-seats { border-color: var(--warning); box-shadow: 0 0 0 2px rgba(255, 170, 0, 0.2); } + .pricing-config-select.no-seats { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.2); } .pricing-config-input { background: var(--bg); border: 1px solid var(--border); @@ -363,7 +365,7 @@ @@ -539,6 +541,51 @@