top of page
bottom of page
if (typeof window === "undefined") return;
function nextQuestion(step) {
const current = document.getElementById('q' + step);
const next = document.getElementById('q' + (step + 1));
if (!current || !next) return;
current.classList.add('hidden');
next.classList.remove('hidden');
const progress = document.getElementById('quiz-progress');
if (progress) progress.style.width = (step + 1) * 33 + '%';
}
function showResult() {
// výpočet, text, zobrazení výsledku
}