Refactored structur and fixed initia loading

This commit is contained in:
Maximilian Giller 2024-02-24 01:16:50 +01:00
parent 0ab3c12cd0
commit fbe5a99dd1

View file

@ -128,6 +128,9 @@
function addTimeSlotRow(time) {
const namesForTime = getNamesForTimeSlot(time);
document.getElementById("names").innerHTML += "<tr id=\"" + time + "\"><td class=\"" + personOrder[0] + "\">" + namesForTime[0] + "</td><td class=\"" + personOrder[1] + "\">" + namesForTime[1] + "</td><td class=\"" + personOrder[2] + "\">" + namesForTime[2] + "</td><td class=\"" + personOrder[3] + "\">" + namesForTime[3] + "</td></tr>";
if (time == latestUpdateTimeSlot) {
document.getElementById(latestUpdateTimeSlot).classList += "current";
}
}
function removeTimeSlotRow(time) {