Initial commit

This commit is contained in:
root
2023-04-27 14:46:18 +00:00
commit bbca1a86d1
35 changed files with 2418 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import RoverApi from "./roverApi.js";
const api = new RoverApi();
const body = document.getElementById("mainDivBody");
createBody();
setInterval(checkNewData, 3 * 1000);
function checkNewData() {
api.getRouteInfos(data => {
body.innerText = JSON.stringify(data.infoObj, null, 2);
});
}
function createBody() {
api.getRouteInfos(data => {
body.innerHTML = JSON.stringify(data.infoObj, null, 2);
});
}