add schudual function
This commit is contained in:
1 parent
d198430310
commit
88311326e6
252 files changed
+4803
-579
No files matched your search
@@ -13,6 +13,8 @@
|
||||
<meta property="og:description" content="สาย 15 และ 902 จากจตุจักรไปอ่างทอง พร้อมตารางเวลาทั้งวัน">
|
||||
<meta property="og:locale" content="th_TH">
|
||||
<meta name="theme-color" content="#7a4cc0">
|
||||
<link rel="stylesheet" href="../vendor/leaflet/leaflet.css">
|
||||
<link rel="stylesheet" href="../map.css">
|
||||
<link rel="icon" href="../../.image/icons/minibus-512x512.png">
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;600;700;800&family=Noto+Sans+Thai:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600;700&display=swap" rel="stylesheet">
|
||||
@@ -325,6 +327,14 @@
|
||||
</section>
|
||||
|
||||
<!-- 4. การเดินทางมาสถานี -->
|
||||
<section class="block">
|
||||
<h2 class="sec"><svg class="ic" aria-hidden="true"><use href="#ic-map"/></svg> เส้นทางบนแผนที่</h2>
|
||||
<div class="at-map-wrap">
|
||||
<div class="at-map" id="stop-map" role="region" aria-label="แผนที่เส้นทางที่ผ่านสถานีนี้"></div>
|
||||
<p class="at-map-caption" id="stop-map-caption">กำลังโหลดแผนที่…</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="block">
|
||||
<h2 class="sec"><svg class="ic" aria-hidden="true"><use href="#ic-navigation"/></svg> การเดินทางมาสถานี</h2>
|
||||
<div class="ways">
|
||||
@@ -353,5 +363,45 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
/* หน้านี้เป็น static/SEO (ไทยล้วน) — ประกาศคำแปลเฉพาะที่แผนที่ใช้ ไม่ต้องโหลด i18n.js */
|
||||
window.I18N = {
|
||||
t: function (k, v) {
|
||||
var TH = {
|
||||
'map.route': 'สาย',
|
||||
'map.km': 'กม.',
|
||||
'map.legendRoute': 'เส้นทาง',
|
||||
'map.legendStop': 'ป้ายหยุดรถ',
|
||||
'map.legendTerminal': 'สถานีขนส่ง',
|
||||
'map.legendHere': 'ป้ายที่กำลังดู',
|
||||
'map.captionStop': 'เส้นทางที่ผ่านป้ายนี้ {r} · ป้ายตามเส้นทาง {n} แห่ง',
|
||||
'map.stationPinned': 'ปักหมุดตำแหน่งป้ายแล้ว',
|
||||
'map.noStationPin': 'พิกัดป้ายนี้ยังไม่มีในระบบ — แสดงเส้นทางที่ผ่าน',
|
||||
'map.noRoutesHere': 'ยังไม่มีข้อมูลสายรถที่ผ่านป้ายนี้ในระบบ',
|
||||
'map.empty': 'ยังไม่มีข้อมูลเส้นทางสายนี้ในระบบ',
|
||||
'map.offline': 'ออฟไลน์ — แสดงเฉพาะเส้นทาง',
|
||||
'map.thisStop': 'ป้ายที่กำลังดูอยู่',
|
||||
'map.servedBy': 'สายที่ผ่าน',
|
||||
'map.openInMaps': 'เปิดใน Google Maps',
|
||||
'map.viewStopPage': 'ดูรายละเอียดป้ายนี้'
|
||||
};
|
||||
var out = TH[k] || k;
|
||||
if (v) Object.keys(v).forEach(function (x) { out = out.split('{' + x + '}').join(v[x]); });
|
||||
return out;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../vendor/leaflet/leaflet.js"></script>
|
||||
<script src="../map.js"></script>
|
||||
<script>
|
||||
(function () {
|
||||
var el = document.getElementById('stop-map');
|
||||
if (!el || !window.ATMap) return;
|
||||
ATMap.forStop(el, 'chatuchak_minibus_terminal', {
|
||||
base: '../../resource/data/',
|
||||
stopHref: function (code) { return '../index.html#/stops/' + code; }
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user