prawie dziala
Deploy to FTP / deploy (push) Successful in 1m47s
Build APK / build (push) Successful in 3m50s

This commit is contained in:
Sebastian Molenda
2026-05-27 13:51:51 +02:00
parent d890c6e15d
commit 0b3c8e8a02
709 changed files with 5120 additions and 14724 deletions
@@ -0,0 +1,17 @@
// Back-to-hub button with active-task confirmation
(function () {
document.addEventListener('DOMContentLoaded', () => {
const backBtn = document.getElementById('back-to-hub')
if (!backBtn) return
backBtn.addEventListener('click', (e) => {
const playScreen = document.getElementById('play-screen')
const taskActive = playScreen && !playScreen.classList.contains('hidden')
if (taskActive) {
e.preventDefault()
const ok = confirm('Masz aktywne zadanie. Czy na pewno chcesz wyjść do menu?')
if (ok) window.location.href = backBtn.getAttribute('href')
}
})
})
})()