Files
web-at-transit-mock/ui/offline.html
T
Bkk1234 656f65b41c แผนที่จาก GPKG + บทความ 6 ชิ้น + ลดความหนา footer
== แผนที่ / GIS ==
- qgis-to-web.py: อ่าน GPKG ได้ (--from gpkg) + เพิ่ม dream-Watcharapol
- เพิ่ม dream-*.geojson 6 ไฟล์ (เส้นทางที่เสนอ: บ้านภาชี · ชานเมืองอยุธยา · HSR · เมืองทองธานี · ปากเกร็ด · วัชรพล)
- map.js: ATMap.proposal() วาดเส้นจริงจาก geojson (ไม่ใช่เส้นตรง) · smoothFactor 0.5
  · coordOf() รับ coords=[lat,lng] · fitAll รับได้ทั้งจุดเดี่ยวและเส้น · setStyle บน featureGroup

== บทความ (blog) ==
- text3: ถ้าผมได้ออกแบบสายเดินรถเอง (จาก mydream.html) TH+EN
- text4: วิธีเดินทางไปสถานีรถไฟ และสนามบิน (จาก train-airplane.html) TH+EN
- text5/text6: โครงเปล่ารอเติมเนื้อหา (แสวงหา-โพธิ์ทอง · อำเภอเข้าเมือง)
- แผนที่ความฝัน: map.groups 3 กลุ่ม · คลิกเส้น/หมุด/แถวได้ · ป้ายที่มา
- ย่อหน้า: ระยะห่าง 20px + ย่อหน้าหน้าบรรทัด 1.5em

== ตารางเดินรถ ==
- เปลี่ยนชื่อคีย์ dir_* -> direction_* ทุกไฟล์ (backward-compat ในโค้ด)
- 1011: จุดย่อย 2 ทิศ + offsets [0,25,55]
- 954/2194: จุดย่อย station 8 + offsets
- refreshHighlights: วนข้ามวันเมื่อเลยเที่ยวสุดท้าย + ไฮเทลต์ชิปทุกจุด
- 8 other_stop.md: อัปเดตตรงข้อมูลจริง 8 รายการ

== i18n ==
- แยกไฟล์ต่อภาษา ui/locales/{th,en}.json + i18n.js = loader (ลด 28KB -> 6.5KB)
- resource/tools/check-i18n.py ตรวจคีย์ขาด/ซ้ำ
- ข้อความผู้สนับสนุนหน้าแรก + คำแปล EN

== UI ==
- ฝังฟอนต์ K2D (ui/vendor/fonts/) ออฟไลน์ 100%
- cache busting ?v=<SW VERSION> ทุกรูป (ui/imageurl.js)
- footer: ลดความหนา 468 -> 349px + line-height 1.5 กันสระ/วรรณยุกต์ซ้อน
- QR modal + ปุ่มคัดลอกลิงก์ · หน้าอัปเดตล่าสุดใน #/check
- credits: ขอขอบคุณภาพรถ 3 สาย

== เครื่องมือ ==
- bump-version.py · stamp-schedules.py · derive-times.py (จุดอ้างอิง ± นาที)
2026-10-05 03:55:09 +07:00

76 lines
3.2 KiB
HTML

<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#7a4cc0">
<title>ออฟไลน์ | Atroute</title>
<link href="./vendor/fonts/k2d.css" rel="stylesheet">
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
font-family: "K2D", "Noto Sans Thai", "Prompt", system-ui, sans-serif;
color: #1f2a44;
background:
radial-gradient(circle at 15% 15%, rgba(122,76,192,.18), transparent 40%),
radial-gradient(circle at 85% 10%, rgba(48,113,184,.16), transparent 40%),
linear-gradient(180deg, #f0ebff 0%, #ffe8ee 55%, #fff4d6 100%);
}
.card {
max-width: 420px;
width: 100%;
text-align: center;
background: #fff;
border: 1px solid #e7e2f6;
border-radius: 20px;
padding: 36px 28px;
box-shadow: 0 18px 40px rgba(63,43,94,.12);
}
.icon {
width: 72px; height: 72px;
margin: 0 auto 18px;
display: flex; align-items: center; justify-content: center;
border-radius: 20px;
background: linear-gradient(135deg, #7a4cc0, #b07ce0);
color: #fff;
box-shadow: 0 10px 24px rgba(122,76,192,.28);
}
.icon svg { width: 38px; height: 38px; }
h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
p { color: #6f7b95; font-size: 1rem; line-height: 1.6; margin-bottom: 22px; }
button {
display: inline-flex; align-items: center; justify-content: center;
gap: 8px;
min-height: 48px; padding: 12px 24px;
border: none; border-radius: 12px; cursor: pointer;
font-family: inherit; font-size: 1rem; font-weight: 700;
background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff;
box-shadow: 0 8px 18px rgba(124,58,237,.28);
}
button:active { transform: translateY(1px); }
a {
display: inline-block; margin-top: 14px;
color: #7a4cc0; font-size: .95rem; font-weight: 600;
text-decoration: none;
}
</style>
</head>
<body>
<div class="card">
<div class="icon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h.01"/><path d="M8.5 16.429a5 5 0 0 1 7 0"/><path d="M5 12.859a10 10 0 0 1 5.17-2.69"/><path d="M19 12.859a10 10 0 0 0-2.007-1.523"/><path d="M2 8.82a15 15 0 0 1 4.177-2.643"/><path d="M22 8.82a15 15 0 0 0-11.288-3.764"/><path d="m2 2 20 20"/></svg>
</div>
<h1>คุณกำลังออฟไลน์</h1>
<p>เชื่อมต่ออินเทอร์เน็ตไม่ได้ — ไม่สามารถโหลดเนื้อหาล่าสุดได้ โปรดตรวจสอบการเชื่อมต่อแล้วลองใหม่อีกครั้ง</p>
<button type="button" onclick="location.reload()">ลองใหม่</button>
<br>
<a href="./index.html">กลับหน้าแรก</a>
</div>
</body>
</html>