Update chart dimensions for responsive design and enhance quiz completion alert localization

This commit is contained in:
2025-01-28 05:09:30 +02:00
parent a25a54b0d1
commit 92c128a342
17 changed files with 62 additions and 35 deletions

View File

@@ -44,7 +44,7 @@ document.addEventListener('DOMContentLoaded', function () {
// Check if there is a completed quiz
const allQuizzes = JSON.parse(localStorage.getItem('allQuizzes') || '{}');
if (allQuizzes[quizId] && allQuizzes[quizId].completed) {
alert("You have already completed the quiz. Redirecting to the questionnaire.");
alert("Ви вже пройшли дослідження. Дякуємо! Перенаправлення на головну сторінку тесту.");
window.location.href = 'index.html';
return;
}