mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-06-10 15:29:33 +02:00
Hide if default variation only has 1 version
This commit is contained in:
parent
f73c6d39e0
commit
9061ed66fc
|
@ -43,6 +43,8 @@ window.currentPeriod = currentPeriod
|
|||
window.currentVariation = currentVariation
|
||||
|
||||
// SETUP
|
||||
if (variationsConfig[currentVariation].versions.length === 1) bottomBar.classList.add('no-time-slider')
|
||||
|
||||
timelineSlider.max = variationsConfig[currentVariation].versions.length - 1
|
||||
timelineSlider.value = currentPeriod
|
||||
timelineList.children[0].value = defaultPeriod
|
||||
|
|
Loading…
Reference in a new issue