add schudual function
This commit is contained in:
1 parent
d198430310
commit
88311326e6
252 files changed
+4803
-579
No files matched your search
+14
-163
@@ -127,10 +127,10 @@
|
||||
<div class="mu-blob three"></div>
|
||||
<div class="mu-container mu-hero-content">
|
||||
<span class="mu-badge"><svg class="ic" aria-hidden="true"><use href="#ic-clock"/></svg> <span data-i18n="cta.check">เช็กเวลาเดินรถ</span></span>
|
||||
<h1><span data-i18n="check.title">ตารางเวลาเดินรถ</span><br><span class="mu-gradient-text">สาย 101 · อ่างทอง–อยุธยา</span></h1>
|
||||
<p class="mu-hero-lead" data-i18n="check.lead">เลือกสายรถและสถานี แล้วดูรอบรถทุกจุดจอดในหน้าเดียว</p>
|
||||
<h1><span data-i18n="check.title">ตารางเวลาเดินรถ</span><br><span class="mu-gradient-text" id="check-hero-route"></span></h1>
|
||||
<p class="mu-hero-lead" data-i18n="check.lead">เลือกสายรถ แล้วดูรอบรถทุกจุดจอดในหน้าเดียว</p>
|
||||
|
||||
<div class="mu-route-selector">
|
||||
<div class="mu-route-selector single">
|
||||
<div class="mu-select-field">
|
||||
<label for="check-route-select">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 6v6"/><path d="M15 6v6"/><path d="M2 12h19.6"/><path d="M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3"/><circle cx="7" cy="18" r="2"/><path d="M9 18h5"/><circle cx="16" cy="18" r="2"/></svg>
|
||||
@@ -138,46 +138,11 @@
|
||||
</label>
|
||||
<div class="mu-select-box">
|
||||
<svg class="mu-select-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 6v6"/><path d="M15 6v6"/><path d="M2 12h19.6"/><path d="M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3"/><circle cx="7" cy="18" r="2"/><path d="M9 18h5"/><circle cx="16" cy="18" r="2"/></svg>
|
||||
<select id="check-route-select" data-i18n-attr="aria-label:route.selectRoute">
|
||||
<option>สาย 101 - อ่างทอง-ป่าโมก-อยุธยา</option>
|
||||
<option>สาย 902 - กรุงเทพ-อ่างทอง สายเอเซีย</option>
|
||||
<option>สาย 15 - กรุงเทพ-อ่างทอง สายใน</option>
|
||||
<option>สาย 951 - กรุงเทพ-วิเศษ-สุพรรณ</option>
|
||||
<option>สาย 952 - กรุงเทพ-วิเศษชัยชาญ</option>
|
||||
<option>สาย 954 - กรุงเทพ-ท่าช้าง</option>
|
||||
<option>สาย 8 - กรุงเทพ-สรรคบุรี-ชัยนาท</option>
|
||||
<option>สาย 464 - สุพรรณ-อ่างทอง-สระบุรี</option>
|
||||
<option>สาย 641 - อ่างทอง-บ้านแพรก-ลพบุรี</option>
|
||||
<option>สาย 2194 - หัวเวียง-อยุธยา</option>
|
||||
<option>สาย 324 - อ่างทอง-วัดพิกุลทอง</option>
|
||||
<option>สาย 1011 - อ่างทอง-สีบัวทอง</option>
|
||||
<option>สาย 2231 - อ่างทอง-มหานาม</option>
|
||||
<option>สาย 999 - บขส.อ่างทอง สายเอเชีย-เหนือ</option>
|
||||
</select>
|
||||
<svg class="mu-select-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<span class="mu-select-arrow" aria-hidden="true"><svg class="ic"><use href="#ic-arrow-right"/></svg></span>
|
||||
|
||||
<div class="mu-select-field">
|
||||
<label for="check-station-select">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"/><circle cx="12" cy="10" r="3"/></svg>
|
||||
<span data-i18n="route.selectStation">เลือกสถานี</span>
|
||||
</label>
|
||||
<div class="mu-select-box">
|
||||
<svg class="mu-select-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"/><circle cx="12" cy="10" r="3"/></svg>
|
||||
<select id="check-station-select" data-i18n-attr="aria-label:route.selectStation">
|
||||
<option>บขส.อ่างทอง</option>
|
||||
<option>สถานีขนส่งป่าโมก</option>
|
||||
<option>จุดขึ้นลงรถสองแถว 101 อยุธยา</option>
|
||||
<option>ตลาดเจ้าพรหม</option>
|
||||
</select>
|
||||
<select id="check-route-select" data-i18n-attr="aria-label:route.selectRoute"></select>
|
||||
<svg class="mu-select-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="mu-select-hint" id="check-hint" aria-live="polite"></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -185,10 +150,10 @@
|
||||
<section class="mu-summary" aria-label="สรุปเส้นทาง">
|
||||
<div class="mu-container">
|
||||
<div class="mu-summary-grid">
|
||||
<div class="mu-stat tag-purple"><h3>4</h3><p data-i18n="check.kpiStops">จุดจอดหลัก</p></div>
|
||||
<div class="mu-stat tag-sky"><h3>2</h3><p data-i18n="check.kpiProvince">จังหวัดที่ผ่าน</p></div>
|
||||
<div class="mu-stat tag-mint"><h3>15</h3><p data-i18n="check.kpiTrips">รอบต่อวัน</p></div>
|
||||
<div class="mu-stat tag-pink"><h3>09:10</h3><p data-i18n="check.kpiNext">รอบถัดไป</p></div>
|
||||
<div class="mu-stat tag-purple"><h3 id="check-stat-stops">–</h3><p data-i18n="check.kpiStops">จุดจอดหลัก</p></div>
|
||||
<div class="mu-stat tag-sky"><h3 id="check-stat-provinces">–</h3><p data-i18n="check.kpiProvince">จังหวัดที่ผ่าน</p></div>
|
||||
<div class="mu-stat tag-mint"><h3 id="check-stat-trips">–</h3><p data-i18n="check.kpiTrips">รอบต่อวัน</p></div>
|
||||
<div class="mu-stat tag-pink"><h3 id="check-stat-next">–</h3><p data-i18n="check.kpiNext">รอบถัดไป</p></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -199,128 +164,14 @@
|
||||
<div class="mu-zone">
|
||||
<div class="mu-zone-head">
|
||||
<span class="mu-zone-tag tag-purple" data-i18n="check.scheduleAll">ตารางเวลาเดินรถทุกจุดจอด</span>
|
||||
<p class="mu-zone-desc">สาย 101 · บขส.อ่างทอง → ตลาดเจ้าพรหม · 4 จุดจอด</p>
|
||||
<p class="mu-zone-desc" id="check-zone-desc"></p>
|
||||
<p class="mu-zone-desc" id="check-now-line"></p>
|
||||
</div>
|
||||
|
||||
<ul class="mu-schedule-list">
|
||||
<li>
|
||||
<details class="mu-stop-card" open>
|
||||
<summary>
|
||||
<span class="mu-stop-head tone-purple">
|
||||
<span class="mu-stop-kind"><svg class="ic" aria-hidden="true"><use href="#ic-map-pin"/></svg> <span data-i18n="route.origin">ต้นทาง</span></span>
|
||||
<span class="mu-stop-title">
|
||||
<strong>บขส.อ่างทอง</strong>
|
||||
<small>อ่างทอง</small>
|
||||
</span>
|
||||
<span class="mu-stop-chevron">⌄</span>
|
||||
</span>
|
||||
</summary>
|
||||
<div class="mu-stop-body">
|
||||
<p class="mu-stop-sub">ตารางเดินรถ ณ บขส.อ่างทอง</p>
|
||||
<div class="mu-time-grid">
|
||||
<div class="mu-time-chip">07:30</div><div class="mu-time-chip">08:20</div>
|
||||
<div class="mu-time-chip next">09:10</div><div class="mu-time-chip">10:00</div>
|
||||
<div class="mu-time-chip">10:50</div><div class="mu-time-chip">11:50</div>
|
||||
<div class="mu-time-chip">13:00</div><div class="mu-time-chip">14:00</div>
|
||||
<div class="mu-time-chip">15:00</div>
|
||||
</div>
|
||||
<div class="mu-inline-actions">
|
||||
<a class="mu-btn ghost" href="#/stops/at_main_terminal?route=101" data-i18n="check.toStopDetail">ไปหน้ารายละเอียดจุดจอด</a>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<details class="mu-stop-card" open>
|
||||
<summary>
|
||||
<span class="mu-stop-head tone-sky">
|
||||
<span class="mu-stop-kind"><svg class="ic" aria-hidden="true"><use href="#ic-refresh-cw"/></svg> <span data-i18n="route.transfer">จุดเปลี่ยน</span></span>
|
||||
<span class="mu-stop-title">
|
||||
<strong>สถานีขนส่งป่าโมก</strong>
|
||||
<small>อ่างทอง</small>
|
||||
</span>
|
||||
<span class="mu-stop-chevron">⌄</span>
|
||||
</span>
|
||||
</summary>
|
||||
<div class="mu-stop-body">
|
||||
<p class="mu-stop-sub">ไปอ่างทอง <span class="mu-direction-tag" data-i18n="check.direction">ทิศทาง</span></p>
|
||||
<div class="mu-time-grid">
|
||||
<div class="mu-time-chip">07:30</div><div class="mu-time-chip">08:20</div>
|
||||
<div class="mu-time-chip">09:10</div><div class="mu-time-chip">10:00</div>
|
||||
<div class="mu-time-chip">10:50</div><div class="mu-time-chip">11:40</div>
|
||||
<div class="mu-time-chip">12:30</div><div class="mu-time-chip">13:20</div>
|
||||
<div class="mu-time-chip">14:10</div><div class="mu-time-chip">15:00</div>
|
||||
<div class="mu-time-chip">15:50</div><div class="mu-time-chip">16:40</div>
|
||||
<div class="mu-time-chip">17:30</div><div class="mu-time-chip">18:30</div>
|
||||
</div>
|
||||
<p class="mu-stop-sub" style="margin-top:14px;">ไปอยุธยา <span class="mu-direction-tag" data-i18n="check.direction">ทิศทาง</span></p>
|
||||
<div class="mu-time-grid">
|
||||
<div class="mu-time-chip">08:00</div><div class="mu-time-chip">08:50</div>
|
||||
<div class="mu-time-chip">09:40</div><div class="mu-time-chip">10:30</div>
|
||||
<div class="mu-time-chip">11:20</div><div class="mu-time-chip">12:20</div>
|
||||
<div class="mu-time-chip">13:30</div><div class="mu-time-chip">14:30</div>
|
||||
<div class="mu-time-chip">15:30</div>
|
||||
</div>
|
||||
<p class="mu-schedule-note"><svg class="ic" aria-hidden="true"><use href="#ic-triangle-alert"/></svg> เวลารถเปลี่ยนทุกวัน โดยเฉพาะวันหยุด</p>
|
||||
<div class="mu-inline-actions">
|
||||
<a class="mu-btn ghost" href="#/stops/pa_mok_terminal?route=101" data-i18n="check.toStopDetail">ไปหน้ารายละเอียดจุดจอด</a>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<details class="mu-stop-card" open>
|
||||
<summary>
|
||||
<span class="mu-stop-head tone-mint">
|
||||
<span class="mu-stop-kind"><svg class="ic" aria-hidden="true"><use href="#ic-map-pin"/></svg> <span data-i18n="route.pass">ผ่านทาง</span></span>
|
||||
<span class="mu-stop-title">
|
||||
<strong>จุดขึ้นลงรถสองแถว 101 อยุธยา-ป่าโมก-อ่างทอง</strong>
|
||||
<small>อยุธยา</small>
|
||||
</span>
|
||||
<span class="mu-stop-chevron">⌄</span>
|
||||
</span>
|
||||
</summary>
|
||||
<div class="mu-stop-body">
|
||||
<p class="mu-stop-sub" data-i18n="route.empty">ยังไม่มีข้อมูลตารางเวลา</p>
|
||||
<div class="mu-inline-actions">
|
||||
<a class="mu-btn ghost" href="#/stops/route_101_stop_ayutthaya?route=101" data-i18n="check.toStopDetail">ไปหน้ารายละเอียดจุดจอด</a>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<details class="mu-stop-card" open>
|
||||
<summary>
|
||||
<span class="mu-stop-head tone-pink">
|
||||
<span class="mu-stop-kind"><svg class="ic" aria-hidden="true"><use href="#ic-map-pin"/></svg> <span data-i18n="route.destination">ปลายทาง</span></span>
|
||||
<span class="mu-stop-title">
|
||||
<strong>ตลาดเจ้าพรหม</strong>
|
||||
<small>อยุธยา</small>
|
||||
</span>
|
||||
<span class="mu-stop-chevron">⌄</span>
|
||||
</span>
|
||||
</summary>
|
||||
<div class="mu-stop-body">
|
||||
<p class="mu-stop-sub">ตารางเดินรถ ณ ตลาดเจ้าพรหม (อยุธยา)</p>
|
||||
<div class="mu-time-grid">
|
||||
<div class="mu-time-chip">06:30</div><div class="mu-time-chip">07:20</div>
|
||||
<div class="mu-time-chip">08:10</div><div class="mu-time-chip next">09:00</div>
|
||||
<div class="mu-time-chip">09:50</div><div class="mu-time-chip">10:40</div>
|
||||
<div class="mu-time-chip">11:30</div><div class="mu-time-chip">12:20</div>
|
||||
<div class="mu-time-chip">13:10</div><div class="mu-time-chip">14:00</div>
|
||||
<div class="mu-time-chip">14:50</div><div class="mu-time-chip">15:40</div>
|
||||
<div class="mu-time-chip">16:30</div><div class="mu-time-chip">17:30</div>
|
||||
</div>
|
||||
<div class="mu-inline-actions">
|
||||
<a class="mu-btn ghost" href="#/stops/jaoprom_market?route=101" data-i18n="check.toStopDetail">ไปหน้ารายละเอียดจุดจอด</a>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- การ์ดจุดจอด + ชิปเวลา: สร้างจาก resource/data/schedules.json (checkSchedule.init.js) -->
|
||||
<ul class="mu-schedule-list" id="check-schedule-list"></ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script src="./partials/checkSchedule.init.js"></script>
|
||||
Reference in new issue
Block a user