- busStop.html: added the third tab (data-mode=near) and its own panel with the location button, hint and result area; removed the near button from the toolbar and deleted the old on-screen numpad markup - busStop.search.js: MODE_NEAR in setMode, disables the other panels, hides the stop list while ranked results are shown, skips filtering in that mode, and removed the dead initNumpad code - security gate: the tab is revealed only when isSecureContext and navigator.geolocation exist; otherwise it stays hidden and the mode is refused - map.js: re-enable the button after a successful lookup - i18n: stops.modeNear / nearCta / nearHint - bump SW version to 2026.09.27.98 Verified on localhost:8090 - three tabs, near mode shows a map with 8 ranked stops, button re-enables and works again, switching back restores the list; with isSecureContext forced false the tab is hidden and unselectable.
50 lines
1.2 KiB
JSON
50 lines
1.2 KiB
JSON
{
|
|
"provinces": [
|
|
{
|
|
"province_id": 1,
|
|
"province_name_th": "อ่างทอง",
|
|
"province_name_en": "Ang Thong"
|
|
},
|
|
{
|
|
"province_id": 2,
|
|
"province_name_th": "อยุธยา",
|
|
"province_name_en": "Ayutthaya"
|
|
},
|
|
{
|
|
"province_id": 3,
|
|
"province_name_th": "ปทุมธานี",
|
|
"province_name_en": "Pathum Thani"
|
|
},
|
|
{
|
|
"province_id": 4,
|
|
"province_name_th": "กรุงเทพมหานคร",
|
|
"province_name_en": "Bangkok"
|
|
},
|
|
{
|
|
"province_id": 5,
|
|
"province_name_th": "สุพรรณบุรี",
|
|
"province_name_en": "Suphan Buri"
|
|
},
|
|
{
|
|
"province_id": 6,
|
|
"province_name_th": "สระบุรี",
|
|
"province_name_en": "Saraburi"
|
|
},
|
|
{
|
|
"province_id": 7,
|
|
"province_name_th": "ลพบุรี",
|
|
"province_name_en": "Lopburi"
|
|
},
|
|
{
|
|
"province_id": 8,
|
|
"province_name_th": "สิงห์บุรี",
|
|
"province_name_en": "Sing Buri"
|
|
},
|
|
{
|
|
"province_id": 9,
|
|
"province_name_th": "ชัยนาท",
|
|
"province_name_en": "Chai Nat"
|
|
}
|
|
]
|
|
}
|