From 86733522eb9bb5dd804d36ffd26d88999abe1183 Mon Sep 17 00:00:00 2001 From: TopherMayor Date: Thu, 30 Apr 2026 21:21:06 -0700 Subject: [PATCH] Add explicit flight origin selector --- public/index.html | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index e39a5a7..9ee7769 100644 --- a/public/index.html +++ b/public/index.html @@ -136,6 +136,23 @@ min-width: 120px; } #map-search-input::placeholder { color: #7a8499; } + #flight-origin-select { + background: transparent; + border: none; + border-left: 1px solid #252a38; + color: #e0e6f0; + font-size: 0.72rem; + font-weight: 700; + padding: 8px 10px; + outline: none; + cursor: pointer; + flex-shrink: 0; + max-width: 96px; + } + #flight-origin-select option { + background: #13161f; + color: #e0e6f0; + } .provider-tabs { display: flex; align-items: center; @@ -1541,6 +1558,10 @@
🔍 +
@@ -3128,7 +3149,8 @@ function quickBook(type) { const q = (document.getElementById('map-search-input').value || '').trim() || 'Los Cabos Mexico'; - const origin = /ont\b/i.test(q) ? 'ONT' : /lax\b/i.test(q) ? 'LAX' : 'LAX'; + const originSelect = document.getElementById('flight-origin-select'); + const origin = originSelect?.value || (/ont\b/i.test(q) ? 'ONT' : /lax\b/i.test(q) ? 'LAX' : 'LAX'); const depart = '2027-02-03'; const ret = '2027-02-07'; const googleFlightsQuery = `Flights from ${origin} to SJD on ${depart} to ${ret}`;