add schudual function
This commit is contained in:
1 parent
d198430310
commit
88311326e6
252 files changed
+4803
-579
No files matched your search
+26
-85
@@ -43,6 +43,9 @@
|
||||
grid-template-columns: 1.3fr 1fr;
|
||||
margin-bottom: 26px;
|
||||
}
|
||||
/* ไม่มีรูปรถใน .image/routes/<รหัส>/ → การ์ดไม่เว้นช่องว่าง */
|
||||
#route-vehicle-card.no-photo { grid-template-columns: 1fr; }
|
||||
#route-vehicle-card.no-photo > .meta { grid-column: 1 / -1; }
|
||||
.mu-vehicle-card > img {
|
||||
grid-column: 1; width: 100%; height: 100%; min-height: 240px;
|
||||
object-fit: cover; display: block;
|
||||
@@ -119,115 +122,53 @@
|
||||
<main class="mu-page">
|
||||
<div class="mu-container">
|
||||
<p class="mu-breadcrumb"><a href="#/">หน้าแรก</a>/ <span data-i18n="nav.routes">รายละเอียดสายรถ</span></p>
|
||||
<h1 class="mu-page-title"><span class="mu-route-chip">101</span> อ่างทอง - ป่าโมก - อยุธยา</h1>
|
||||
<h1 class="mu-page-title"><span class="mu-route-chip" id="route-chip"></span> <span id="route-title"></span></h1>
|
||||
|
||||
<!-- ตัวเลือกสายรถ: เติมจาก resource/data/routes.json (busDetail.init.js) -->
|
||||
<form class="mu-toolbar" onsubmit="return false">
|
||||
<select aria-label="เลือกสายรถ">
|
||||
<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>
|
||||
<select aria-label="เลือกสถานี">
|
||||
<option>บขส.อ่างทอง</option>
|
||||
<option>สถานีขนส่งป่าโมก</option>
|
||||
<option>จุดขึ้นลงรถสองแถว 101 อยุธยา</option>
|
||||
<option>ตลาดเจ้าพรหม</option>
|
||||
</select>
|
||||
<select aria-label="เลือกสายรถ" id="route-select"></select>
|
||||
</form>
|
||||
|
||||
<!-- ============ รถประจำสาย + ติดต่อผู้ประกอบการ (การ์ดเดียว) ============ -->
|
||||
<section class="mu-vehicle-card" aria-label="รถประจำสายและติดต่อผู้ประกอบการ">
|
||||
<img src="../.image/routes/101/car.jpeg" alt="รถของสาย 101" loading="lazy" decoding="async">
|
||||
<!-- รูปรถ/คำอธิบาย/QR/เบอร์โทร: เติมจาก resource/data/captions/caption<รหัสสาย>.json + routes.json -->
|
||||
<section class="mu-vehicle-card" aria-label="รถประจำสายและติดต่อผู้ประกอบการ" id="route-vehicle-card">
|
||||
<img id="route-vehicle-img" alt="" loading="lazy" decoding="async" hidden>
|
||||
<div class="meta">
|
||||
<p class="label" data-i18n="route.vehicle">รถบัสประจำสาย</p>
|
||||
<h2>รถปรับอากาศ · ไม่สูบบุหรี่</h2>
|
||||
<p>40 ที่นั่ง · ให้บริการตลอดเส้นทางอ่างทอง–ป่าโมก–อยุธยา พร้อมที่วางสัมภาระและแอร์เย็นฉ่ำ</p>
|
||||
</div>
|
||||
<div class="mu-vehicle-contact">
|
||||
<div class="mu-contact-item">
|
||||
<span class="ic-wrap tone-green"><svg class="ic" aria-hidden="true"><use href="#ic-message-circle"/></svg></span>
|
||||
<div class="txt">
|
||||
<strong>LINE Official</strong>
|
||||
<span>ติดตามข่าวสาย 101 · เลื่อนเวลา · ไม่มีรถ</span>
|
||||
</div>
|
||||
<img class="mu-qr-img" src="../.image/qrcode/101.png" alt="LINE QR สาย 101" loading="lazy" decoding="async">
|
||||
</div>
|
||||
<a class="mu-contact-item" href="tel:+66649639025">
|
||||
<span class="ic-wrap"><svg class="ic" aria-hidden="true"><use href="#ic-phone"/></svg></span>
|
||||
<div class="txt">
|
||||
<strong>โทรสอบถาม</strong>
|
||||
<span>+66 64 963 9025</span>
|
||||
</div>
|
||||
</a>
|
||||
<h2 id="route-vehicle-title" hidden></h2>
|
||||
<p id="route-vehicle-desc" hidden></p>
|
||||
</div>
|
||||
<div class="mu-vehicle-contact" id="route-contact"></div>
|
||||
</section>
|
||||
|
||||
<!-- ============ สรุปเส้นทาง ============ -->
|
||||
<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>จุดจอดหลัก</p></div>
|
||||
<div class="mu-stat tag-sky"><h3>2</h3><p>จังหวัดที่ผ่าน</p></div>
|
||||
<div class="mu-stat tag-mint"><h3>15</h3><p>รอบต่อวัน</p></div>
|
||||
<div class="mu-stat tag-pink"><h3>09:10</h3><p>รอบถัดไป</p></div>
|
||||
<div class="mu-stat tag-purple"><h3 id="stat-stops">–</h3><p>จุดจอดหลัก</p></div>
|
||||
<div class="mu-stat tag-sky"><h3 id="stat-provinces">–</h3><p>จังหวัดที่ผ่าน</p></div>
|
||||
<div class="mu-stat tag-mint"><h3 id="stat-trips">–</h3><p>รอบต่อวัน</p></div>
|
||||
<div class="mu-stat tag-pink"><h3 id="stat-next">–</h3><p>รอบถัดไป</p></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ============ แผนที่เส้นทาง ============ -->
|
||||
<!-- ============ แผนที่เส้นทาง (Leaflet + GeoJSON จาก QGIS) ============ -->
|
||||
<section class="mu-zone" aria-label="แผนที่เส้นทาง">
|
||||
<div class="mu-zone-head">
|
||||
<span class="mu-zone-tag tag-sky" data-i18n="route.mapTitle">เส้นทางเดินรถ</span>
|
||||
<p class="mu-zone-desc">สาย 101 · บขส.อ่างทอง → ตลาดเจ้าพรหม</p>
|
||||
<p class="mu-zone-desc" data-i18n="route.mapDesc">เส้นทางจริงจากข้อมูล GIS · ป้ายหยุดรถตามเส้นทาง</p>
|
||||
</div>
|
||||
<div class="mu-map-card">
|
||||
<svg viewBox="0 0 400 190" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="แผนที่เส้นทางสาย 101">
|
||||
<defs>
|
||||
<linearGradient id="mapBg" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stop-color="#f0ebff"/>
|
||||
<stop offset="100%" stop-color="#eef6ff"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect width="400" height="190" fill="url(#mapBg)" rx="12"/>
|
||||
<path d="M 60 110 C 130 40 200 160 340 80" stroke="#d8c7f8" stroke-width="9" fill="none" stroke-linecap="round" opacity=".35"/>
|
||||
<path d="M 60 110 C 130 40 200 160 340 80" stroke="#7a4cc0" stroke-width="4" fill="none" stroke-linecap="round"/>
|
||||
<g>
|
||||
<circle cx="60" cy="110" r="16" fill="#7a4cc0"/>
|
||||
<circle cx="60" cy="110" r="10" fill="#fff"/>
|
||||
<text x="60" y="145" text-anchor="middle" font-size="12" fill="#1f2a44" font-weight="700">บขส.อ่างทอง</text>
|
||||
<text x="60" y="160" text-anchor="middle" font-size="10" fill="#6f7b95">ต้นทาง</text>
|
||||
</g>
|
||||
<g>
|
||||
<circle cx="170" cy="70" r="16" fill="#3071b8"/>
|
||||
<circle cx="170" cy="70" r="10" fill="#fff"/>
|
||||
<text x="170" y="45" text-anchor="middle" font-size="12" fill="#1f2a44" font-weight="700">สถานีป่าโมก</text>
|
||||
<text x="170" y="30" text-anchor="middle" font-size="10" fill="#6f7b95">จุดเปลี่ยน</text>
|
||||
</g>
|
||||
<g>
|
||||
<circle cx="270" cy="130" r="16" fill="#1f8765"/>
|
||||
<circle cx="270" cy="130" r="10" fill="#fff"/>
|
||||
<text x="270" y="165" text-anchor="middle" font-size="12" fill="#1f2a44" font-weight="700">จุดขึ้นลงรถสองแถว</text>
|
||||
<text x="270" y="180" text-anchor="middle" font-size="10" fill="#6f7b95">ผ่านทาง</text>
|
||||
</g>
|
||||
<g>
|
||||
<circle cx="340" cy="80" r="16" fill="#bb3a78"/>
|
||||
<circle cx="340" cy="80" r="10" fill="#fff"/>
|
||||
<text x="340" y="55" text-anchor="middle" font-size="12" fill="#1f2a44" font-weight="700">ตลาดเจ้าพรหม</text>
|
||||
<text x="340" y="40" text-anchor="middle" font-size="10" fill="#6f7b95">ปลายทาง</text>
|
||||
</g>
|
||||
</svg>
|
||||
<div class="at-map" id="route-map" role="region" aria-label="แผนที่เส้นทางเดินรถ"></div>
|
||||
<p class="at-map-caption" id="route-map-caption"></p>
|
||||
<div class="at-km-wrap" hidden>
|
||||
<h3><span data-i18n="map.alongRoute">จุดจอดตามเส้นทาง (กม. จากต้นทาง)</span></h3>
|
||||
<ul id="route-map-list"></ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script src="./partials/busDetail.init.js"></script>
|
||||
Reference in new issue
Block a user