From f6a5c4a364471a71641f69afbd7b8fd6f64485b3 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 14 Dec 2025 20:56:39 +0100 Subject: [PATCH] this! --- modules/web.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/web.html b/modules/web.html index a0c37af..e5954f3 100644 --- a/modules/web.html +++ b/modules/web.html @@ -276,7 +276,7 @@ const path = t.path || ""; const official = t.official || false; const displayPath = (official ? "" : "!") + path; - li.textContent = `${String(idx).padStart(2,'0')}: ${displayPath}`; + li.textContent = ` ${String(idx).padStart(2,'0')}: ${displayPath}`; li.dataset.path = path; li.dataset.idx = i; li.addEventListener("click", () => { selectPlaylistItem(i, li); }); @@ -286,6 +286,12 @@ if(p && currentTrackPath.includes(p) && i === currentTrackIndex){ li.classList.add("current"); currentIndex = i; + } else if (i === currentTrackIndex) { + function replaceAt(str, index, replacement) { + if (index < 0 || index >= str.length) return str; // index out of bounds + return str.slice(0, index) + replacement + str.slice(index + 1); + } + li.textContent = replaceAt(li.textContent, 0, ">") } if(currentIndex && (currentIndex+1 === i) && skipNext && (putQueue.length === 0)) { li.style.textDecoration = "line-through";