mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-12-26 08:04:04 +01:00
Make base work for new entries
This commit is contained in:
parent
a6868219fd
commit
9639c9ee4f
1 changed files with 6 additions and 4 deletions
|
@ -447,8 +447,6 @@ function initDraw(){
|
|||
|
||||
console.log(pathWithPeriods)
|
||||
|
||||
initPeriodGroups()
|
||||
|
||||
zoom = 4;
|
||||
|
||||
zoomOrigin = [
|
||||
|
@ -462,8 +460,12 @@ function initDraw(){
|
|||
];
|
||||
|
||||
applyView();
|
||||
} else {
|
||||
pathWithPeriods.push([defaultPeriod, []])
|
||||
}
|
||||
|
||||
initPeriodGroups()
|
||||
|
||||
document.addEventListener('timeupdate', (event) => {
|
||||
updatePeriodGroups()
|
||||
})
|
||||
|
@ -601,8 +603,8 @@ function formatPeriod(start, end) {
|
|||
else return start + "-" + end
|
||||
}
|
||||
|
||||
function updatePath(path) {
|
||||
path = []
|
||||
function updatePath(newPath) {
|
||||
path = newPath
|
||||
render(path)
|
||||
if(path.length >= 3){
|
||||
finishButton.disabled = false;
|
||||
|
|
Loading…
Reference in a new issue