Fix fluctuating tbody heights by not using tables.
This commit is contained in:
parent
742a51b674
commit
d89bcbec06
3 changed files with 225 additions and 185 deletions
|
@ -80,11 +80,11 @@ function populate(pnum) {
|
|||
const week = node.getElementsByClassName("week")[0].querySelectorAll(".day");
|
||||
let weekh = null;
|
||||
for (let i=0; i < week.length && i < data.days.length; i++) {
|
||||
let day = week[i].children;
|
||||
let day = week[i].querySelectorAll(".day-line");
|
||||
let dayh = null;
|
||||
for (let j=0; j < day.length && j < data.days[i].length; j++) {
|
||||
day[j].querySelectorAll("td")[0].textContent = data.days[i][j][0];
|
||||
day[j].querySelectorAll("td")[1].textContent = data.days[i][j][1];
|
||||
day[j].querySelectorAll("div")[0].textContent = data.days[i][j][0];
|
||||
day[j].querySelectorAll("div")[1].textContent = data.days[i][j][1];
|
||||
dayh += data.days[i][j][1];
|
||||
}
|
||||
day[day.length-1].querySelector(".subtotal").textContent = dayh;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue