เรื่องราวและที่มาของเว็บนี้ — อ่านเรียงตามบล็อกด้านล่างได้เลย
+ขอบคุณที่เข้ามาอ่านบางบทความก็มีสาระบางบทความก็ไม่มีสาระ
+' + t('blog.notFound') + '
'; + } + return; + } + + if (!posts.length) { + host.innerHTML = '' + t('blog.empty') + '
'; + return; + } + + var bar = document.getElementById('blog-bar'); + var count = document.getElementById('blog-count'); + if (count) count.textContent = t('blog.count') + ' ' + posts.length + ' ' + t('blog.items'); + if (bar) bar.hidden = false; + + var mode = getView(); + function paint() { + host.className = mode === 'list' ? 'mode-list' : 'mode-grid'; + host.innerHTML = ''; + (mode === 'list' ? renderList : renderGrid)(posts, host); + document.querySelectorAll('.mu-view-btn').forEach(function (b) { + b.classList.toggle('active', b.getAttribute('data-view') === mode); + b.setAttribute('aria-pressed', String(b.getAttribute('data-view') === mode)); + }); + } + paint(); + + document.querySelectorAll('.mu-view-btn').forEach(function (b) { + b.addEventListener('click', function () { + mode = b.getAttribute('data-view'); + setView(mode); + paint(); + }); + }); + }); + } + + if (document.readyState === 'loading') { + document.addEventListener('DOMContentLoaded', init); + } else { + init(); + } +})(); diff --git a/ui/partials/busStop.html b/ui/partials/busStop.html index 0800ba2..0c4b268 100644 --- a/ui/partials/busStop.html +++ b/ui/partials/busStop.html @@ -96,25 +96,6 @@ border-color: #c8b4ec; } - .mu-province-strip { - display:flex; - flex-wrap:wrap; - gap:8px; - margin: 14px 0 18px; - } - .mu-province-strip a { - background: linear-gradient(135deg, #ffffff, #f6f8ff); - border: 1px solid #e7e3f7; - padding: 8px 14px; - border-radius: 999px; - color: #5b3b71; - text-decoration:none; - font-size:.84rem; - font-weight:700; - box-shadow: 0 6px 14px rgba(63,43,94,.05); - } - .mu-province-strip a.active { background: linear-gradient(135deg, #7a4cc0, #8b5cf6); color:#fff; border-color: transparent; } - .mu-stop-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); @@ -258,7 +239,7 @@รวมสถานีขนส่งหลัก จุดจอดท้องถิ่น สถานีรถตู้ และจุดเอกชนในโทน soft gradient ที่ดูสะอาดตา ใช้งานได้ทั้งบนมือถือและเดสก์ท็อป
แผนที่ย่อของเครือข่ายป้าย
-
+