Refactored structur and fixed initia loading
This commit is contained in:
parent
0ab3c12cd0
commit
fbe5a99dd1
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
Loading…
Reference in a new issue