fixes and patches n stuff

This commit is contained in:
tyuXX 2026-10-21 21:07:54 +00:00
parent 7c7ae8e051
commit 1af973d001
14 changed files with 571 additions and 268 deletions

View file

@ -13,6 +13,11 @@ document.addEventListener('DOMContentLoaded', () => {
const btn = e.target.closest('.station-btn');
if (!btn) return;
if (window.BeKulturPWA && window.BeKulturPWA.isOffline()) {
showAlert('Çevrimdışı moddasınız. İstasyon seçimi için internet bağlantısı gereklidir.', 'danger');
return;
}
const station = btn.dataset.station;
stationPills.querySelectorAll('.station-btn').forEach(b => b.classList.remove('active'));
btn.classList.add('active');