poprawil?
Deploy to FTP / deploy (push) Successful in 7s

This commit is contained in:
Sebastian Molenda
2026-05-26 22:24:49 +02:00
parent ea84777b97
commit 0386b615b1
3 changed files with 7 additions and 5 deletions
+3 -2
View File
@@ -21,7 +21,7 @@
const readViewport = document.getElementById('read-viewport')
const readTextEl = document.getElementById('read-text')
const nextLineBtn = document.getElementById('next-line-btn')
const progressBar = document.getElementById('read-progress-bar-inner')
let progressBar = null
// ── Load text list from dyktanda.json ────────────────────────────────────
fetch('json/dyktanda.json')
@@ -132,6 +132,7 @@
function updateProgressBar() {
const progress = maxOffset > 0 ? (yOffset / maxOffset) * 100 : 100
progressBar.style.width = `${progress}%`
if (!progressBar) progressBar = document.getElementById('read-progress-bar-inner')
if (progressBar) progressBar.style.width = `${progress}%`
}
})()