mirror of
https://github.com/olehomelchenko/minivlat-local-ua.git
synced 2025-12-21 21:22:24 +00:00
Update quiz image handling and add translated pie chart SVG
This commit is contained in:
@@ -85,7 +85,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
timerDisplay.textContent = Math.ceil(timeLeft / 1000); // Display in whole seconds
|
||||
|
||||
const question = questions[currentQuestionIndex];
|
||||
const imageVersion = version === 'translated' ? 'original' : version;
|
||||
const imageVersion = version;
|
||||
const imagePath = `/images/${question.chart}-${imageVersion}.${question.image}`;
|
||||
document.getElementById('chart').innerHTML = `<img src="${imagePath}" alt="${question.chart_uk}">`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user