Add takeSnapshot but it needs rewriting

pull/3646/head
Isaac Connor 2022-11-30 15:09:06 -05:00
parent d76fb5e5cb
commit c3fda9be2a
1 changed files with 10 additions and 0 deletions

View File

@ -1131,6 +1131,16 @@ function initPage() {
this.form.submit();
});
}
function takeSnapshot() {
monitor_ids = [];
for (const key in monitorIndex) {
monitor_ids[monitor_ids.length] = 'monitor_ids[]='+key;
}
console.log(monitor_ids);
window.location = '?view=snapshot&action=create&'+monitor_ids.join('&');
}
window.addEventListener("resize", redrawScreen, {passive: true});
// Kick everything off
window.addEventListener('DOMContentLoaded', initPage);