== ระบบพาร์ทเนอร์ (affiliate) ==
- resource/data/affiliates.json — ข้อมูล 11 โปรแกรม (8 ใน footer) + ที่วางลิงก์แนะนำ
- home.init.js: initSponsors() สร้างไทล์ marquee จาก JSON (ไม่ฮาร์ดโค้ดใน HTML)
· มี affiliate_link → <a target=_blank rel="noopener sponsored">
· ยังไม่มีลิงก์ → <span> แสดงรูปเฉย ๆ (กดไม่ได้ ไม่พาไปหน้าเปล่า)
· โหลด JSON ไม่ได้ → คงไทล์ fallback ที่ฝังใน HTML (8 ไทล์)
- เติมลิงก์ affiliate แล้ว 6 แบรนด์: 7-Eleven · Shopee · Lazada · airasia MOVE ·
busonlineticket · Trip.com
== ระบบสถิติ (ฝั่งเบราว์เซอร์ ไม่มี backend) ==
- ui/popular.js — "สายที่เปิดดูบ่อย" ใน footer
· score = hits × 0.5^(อายุวัน/30) — กันคะแนนเฟ้อ (ครึ่งชีวิต 30 วัน)
· ทิ้งข้อมูลที่ตายเกิน 180 วันอัตโนมัติ · เก็บ 2 ตัวเลข/สาย (~24 ไบต์)
· ไม่มีข้อมูล → ใช้ค่าเริ่มต้น 101/902/15/464
- ui/visitors.js — นับผู้เข้าชมจริง (ฐาน 12,834)
· กันเฟ้อ 3 ชั้น: sessionStorage (F5 ไม่นับ) → 1 ครั้ง/วัน → dayKey กันล้าง session
· กดตัวเลข 5 ครั้ง → ช่องกรอกรหัส (SHA-256 ไม่เก็บรหัสจริงในโค้ด) → รีเซ็ตเป็น 0
- หัวข้อ footer เปลี่ยนเป็น "สายที่เปิดดูบ่อย" / "Most Viewed Routes"
== ความปลอดภัยของรูป ==
- images.zip: ลบ EXIF/GPS ทั้งหมด 12 ไฟล์ (piexif — ไม่แตะ pixel data, คง ICC profile)
· ตัด .image/partners/_original/ ออก (ไฟล์สำรองที่ไม่ควรแจก)
· ตรวจแล้ว: GPS=0 · EXIF=0 · รูปเสีย=0 · 39.4 MB → 37 MB
- tcl999-angthong.jpg ย่อ 4032×3024 (2.5 MB) → 700×525 (86 KB) สำหรับใช้บนเว็บ
== UI ==
- nav (mu-topbar) z-index 50 → 1100 + isolation:isolate ที่กรอบแผนที่
(Leaflet ใช้ z-index ถึง 1000 — เดิมปุ่มซูม/ป๊อปอัปทะลุขึ้นทับ nav)
- รูปสำรองสถานี: ไม่มีรูป → แสดง minibus-512x512 (.is-fallback ใช้ object-fit:contain)
- affiliate.json เป็น CRLF ตาม pattern เดิมของโปรเจกต์
22 lines
3.7 KiB
JSON
22 lines
3.7 KiB
JSON
{
|
|
"date": "2026-10-05",
|
|
"th": {
|
|
"title": "กฎหมาย 4 หมวดรถประจำทาง กับทางออกของอ่างทอง",
|
|
"tag": "ความฝัน",
|
|
"body": [
|
|
"ตามกฎหมายควบคุมการขนส่งทางบกแบ่งรถประจำทางออกเป็น 4 หมวด ได้แก่ 1.รถประจำทางในเขตเทศบาล 2.รถจากต่างจังหวัดเข้ากรุงเทพ 3.รถจากจังหวัดหนึ่งถึงอีกจังหวัดหนึ่ง 4.รถภายในจังหวัด",
|
|
"กรมการขนส่งใช้ระบบให้นิติบุคคล พวก บริษัท ห้างหุ้นส่วน หรือสหกรณ์ใครสนใจก็เข้าไปของใบอนุญาต ซึ่งหลักการนี้ก็ใช้มาตั้งแต่ ปี 2520 กว่าๆ ถึงจะออกกฎระเบียบรองๆตามสภาพบ้านเมืองแต่ปัจจุบันเราก็เห็นสภาพกันอยู่ว่ามันแย่แค่ไหน",
|
|
"อยากเสนอให้ องค์กรปกครองส่วนท้องถิ่นเข้ามาเดินรถ หมวด1 และหมวด4 ไม่ว่าจะดำเนินการเอง จ้างเหมาเอกชนหรือทำข้อตกลงสำรองจ่ายเฉพาะส่วนต่างที่เอกชน เราก็อาจจะเห็นบางจังหวัดเริ่มทำบ้างแล้ว แต่สำหรับอ่างทองจะเอาเงินจากไหนมาจัดบริการแบบนี้ ส่วนรถหมวด 2 และ 3 ถึงเราจะอยากให้อุดหนุนแต่มันก็เลยคำว่า บริการพื้นฐานไปแล้วก็คงได้แต่ส่งกำลังใจให้มีกำไรและจัดบริการดีๆ"
|
|
]
|
|
},
|
|
"en": {
|
|
"title": "The 4 bus categories — and a way forward for Ang Thong",
|
|
"tag": "A dream",
|
|
"body": [
|
|
"Under the law governing land transport, buses are divided into 4 categories: (1) buses within a municipality, (2) buses from the provinces into Bangkok, (3) buses from one province to another, and (4) buses within a province.",
|
|
"The Department of Land Transport works on a juristic-person system — companies, partnerships and cooperatives. Anyone interested applies for a licence. This principle has been in place since around 1977; the rules have been adjusted bit by bit to match the times, but today we can all see for ourselves just how bad things have become.",
|
|
"I'd like to propose that local administrative organisations step in to run the category 1 and category 4 routes — whether by operating them themselves, contracting out to the private sector, or agreeing to subsidise only the shortfall, with the private operator covering the rest. A few provinces have started doing this already. But where would Ang Thong get the money to fund a service like this? As for categories 2 and 3, even if we'd like to subsidise them, they're already beyond what counts as a basic service — so all we can do is send our encouragement for them to stay profitable and keep running a good service."
|
|
]
|
|
}
|
|
}
|