diff --git a/sites/events/src/main.js b/sites/events/src/main.js index 3d4d89f..218293e 100644 --- a/sites/events/src/main.js +++ b/sites/events/src/main.js @@ -48,18 +48,22 @@ loadHTML('/footer.html', 'footer'); which the viewer controls. Events with no coordinate data are excluded rather than assumed to be in range. ============================================================ */ +// St. Louis, MO — reference point for circuits restricted by distance. +const ST_LOUIS = { lat: 38.6270, lon: -90.1994 }; + const CONFIG = { circuits: [ { id: "Teqdr6p0aGvO", name: "Away Games 2025/26 ITC Season" }, { id: "t5kk3NvGDMXc", name: "National Tabletop League (NTL) 8-Player Circuit" }, { id: "m4OIU24N0IZO", name: "TEO 2026 Circuit" }, { id: "cY0LeCAPfyiG", name: "2026 Lord Marshal Conference" }, + // The broader national league, not a "circuit" in BCP's own sense — + // restricted to 500mi of St. Louis or this would show ~500 events + // nationwide instead of the ~100 actually worth seeing locally. + { id: "BYaaUfKum7z0", name: "Warhammer Global Rankings 2026", near: { ...ST_LOUIS, miles: 500 } }, ], }; -// St. Louis, MO — reference point for circuits restricted by distance. -const ST_LOUIS = { lat: 38.6270, lon: -90.1994 }; - // Great-circle distance in miles between two lat/lon points (haversine). function milesBetween(lat1, lon1, lat2, lon2) { const R = 3958.8;