diff --git a/templates/index.html b/templates/index.html index 3d8dfe0..03a7dad 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1014,6 +1014,12 @@ let videoDuration = data.video_duration || endInit + 60; const segments = data.segments || []; + // Helper za inline styles (procent v stringu) + function pctOfStr(t, total) { + if (!total || total <= 0) return "0"; + return ((t / total) * 100).toFixed(2); + } + const overlay = document.createElement("div"); overlay.className = "modal-overlay"; overlay.innerHTML = ` @@ -1026,20 +1032,20 @@