Make base work for new entries

This commit is contained in:
Hans5958 2022-04-14 13:44:39 +07:00
parent a6868219fd
commit 9639c9ee4f

View file

@ -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;