diff --git a/fdhview/static/info.js b/fdhview/static/info.js index 15b2a35..e818c4f 100644 --- a/fdhview/static/info.js +++ b/fdhview/static/info.js @@ -15,6 +15,15 @@ function kijkwijzerIcons(codes) { function renderFilms(films) { document.getElementById("films").innerHTML = films.map(f => { const isBoutique = f.screen === "6"; + const ratio = f.seats_sold / f.seats_total; + const start = new Date(f.start); // "2026-10-13T18:00:00" parses as local time + const minsUntil = (start - new Date()) / 60000; + const badge = ratio >= 1 + ? '