à jour
This commit is contained in:
@@ -38,12 +38,15 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||
const hours = document.getElementById('hours').value;
|
||||
const minutes = document.getElementById('minutes').value;
|
||||
const frequency = days * 1440 + hours * 60 + minutes;
|
||||
start_timelapse(projectId, frequency)
|
||||
start_timelapse(projectId, frequency).then(()=>{
|
||||
location.reload();
|
||||
})
|
||||
})
|
||||
}
|
||||
if(document.getElementById('stop-camera') != null){
|
||||
document.getElementById('stop-camera').addEventListener('click', async () => {
|
||||
stopCamera(projectId)
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user