Add Warhammer Global Rankings 2026 circuit, restricted to 500mi of St. Louis

This is the national ITC league, not a BCP "circuit" — verified it has
523 upcoming events nationwide, so without the distance restriction
this would swamp the page. Filtered to St. Louis + 500mi it's 99,
which matches the point of this page (events the team would actually
consider attending).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SBzcNkW7JcYipnAX6HfgmK
This commit is contained in:
2026-09-04 16:32:15 -05:00
co-authored by Claude Sonnet 5
parent 9337a2a01c
commit 1ed31e1fbf
+7 -3
View File
@@ -48,18 +48,22 @@ loadHTML('/footer.html', 'footer');
which the viewer controls. Events with no coordinate data are which the viewer controls. Events with no coordinate data are
excluded rather than assumed to be in range. 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 = { const CONFIG = {
circuits: [ circuits: [
{ id: "Teqdr6p0aGvO", name: "Away Games 2025/26 ITC Season" }, { id: "Teqdr6p0aGvO", name: "Away Games 2025/26 ITC Season" },
{ id: "t5kk3NvGDMXc", name: "National Tabletop League (NTL) 8-Player Circuit" }, { id: "t5kk3NvGDMXc", name: "National Tabletop League (NTL) 8-Player Circuit" },
{ id: "m4OIU24N0IZO", name: "TEO 2026 Circuit" }, { id: "m4OIU24N0IZO", name: "TEO 2026 Circuit" },
{ id: "cY0LeCAPfyiG", name: "2026 Lord Marshal Conference" }, { 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). // Great-circle distance in miles between two lat/lon points (haversine).
function milesBetween(lat1, lon1, lat2, lon2) { function milesBetween(lat1, lon1, lat2, lon2) {
const R = 3958.8; const R = 3958.8;