diff options
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 |
commit | 106a96fbb4dcb146b808ddd5f08000fd458b8ff0 (patch) | |
tree | 99c194052bbd6d5c05bb1fbd1ebdf8e25348e9ac | |
parent | 8419ad1e5431184f309a0f1ee4547f20fb1813c1 (diff) |
show group track number range in sidebar
-rw-r--r-- | upd8.js | 1 |
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}–${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}> |