fixes and patches n stuff
This commit is contained in:
parent
7c7ae8e051
commit
1af973d001
14 changed files with 571 additions and 268 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue