Commit 99700c96 authored by Lucas Drezet's avatar Lucas Drezet
Browse files

new loading shortTable

parent e56f0a6e
const arrayHeadingShort = ["Floor", "Id", "Dlc", "Data"];
let arrayDataShort = {
4: [0, 0, [0, 0]],
3: [0, 0, [0, 0]],
2: [0, 0, [0, 0]],
1: [0, 0, [0, 0]],
0: [0, 0, [0, 0]],
};
let arrayDataShort;
let colShort = 4;
const getFloorID = {
2: 4,
3: 3,
4: 2,
5: 1,
6: 0,
};
window.addEventListener("load", function () {
function loadShort() {
arrayDataShort = {
4: [0, 0, [0, 0]],
3: [0, 0, [0, 0]],
2: [0, 0, [0, 0]],
1: [0, 0, [0, 0]],
0: [0, 0, [0, 0]],
};
supprShortTable();
createShortTable();
modifyShortTable(undefined);
});
modifyShortTable();
};
function createShortTable() {
let table = document.createElement("table");
......@@ -100,14 +109,6 @@ function reloadShortTable() {
modifyShortTable();
}
const getFloorID = {
2: 4,
3: 3,
4: 2,
5: 1,
6: 0,
};
function addShortTable(data) {
let floorID;
if ((floorID = getFloorID[data[2] - defaultCANId["input"]]) != undefined) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment