« get me outta code hell

show group track number range in sidebar - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2020-10-29 13:18:22 -0300
committer(quasar) nebula <towerofnix@gmail.com>2020-10-29 13:18:22 -0300
commit106a96fbb4dcb146b808ddd5f08000fd458b8ff0 (patch)
tree99c194052bbd6d5c05bb1fbd1ebdf8e25348e9ac /upd8.js
parent8419ad1e5431184f309a0f1ee4547f20fb1813c1 (diff)
show group track number range in sidebar
Diffstat (limited to 'upd8.js')
-rw-r--r--upd8.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/upd8.js b/upd8.js
index 7bb60348..173fcc77 100644
--- a/upd8.js
+++ b/upd8.js
@@ -2452,6 +2452,7 @@ function generateSidebarForAlbum(album, currentTrack = null) {
                         ${track.group && fixWS`
                             <dt style="${getThemeString(track)}" ${classes(currentTrack && track.group === currentTrack.group && 'current')}>
                                 <a href="${C.TRACK_DIRECTORY}/${track.directory}/index.html">${track.group}</a>
+                                ${listTag === 'ol' ? `(${i + 1}&ndash;${arr.length - arr.slice().reverse().findIndex(t => t.group === track.group)})` : `<!-- (here: track number range) -->`}
                             </dt>
                         `}
                         <dd style="${getThemeString(track)}"><${listTag === 'ol' ? `ol start="${i + 1}"` : listTag}>