1
0
Fork 0
timelinize/frontend/resources/js/input.js
Matthew Holt 3d11d65b8d
WIP settings page; #map mobility; WIP interactive imports
Settings page is started; non-functional, but location picker works.

Moving maps between container elements is improved by moving to nearest to mouse pointer, rather than just most center to the viewport. It also emits an event when the map is moved, allowing us to change/reset map configurations for certain displays.

More progress on interactive imports. More thought is needed before continuing.

Upgraded Mapbox libraries.
2024-12-26 11:51:47 -07:00

13 lines
No EOL
400 B
JavaScript

async function inputPageMain() {
const qs = new URLSearchParams(window.location.search);
const repoID = qs.get('repo_id');
const jobID = Number(qs.get('job_id'));
const graph = await app.NextGraph(repoID, jobID);
console.log("FIRST GRAPH:", graph);
await app.SubmitGraph(repoID, jobID, graph, false);
const graph2 = await app.NextGraph(repoID, jobID);
console.log("NEXT GRAPH:", graph2);
}