Compare commits
No commits in common. "7a31ac4ba08ba601cd60894d90a4e87d66423e89" and "32b247cfc588fa6d3489ada9d3bb13f108bc2ad0" have entirely different histories.
7a31ac4ba0
...
32b247cfc5
@ -99,19 +99,6 @@ function make_table(url) {
|
|||||||
"Venerdì",
|
"Venerdì",
|
||||||
"Sabato",
|
"Sabato",
|
||||||
];
|
];
|
||||||
let thead = document.createElement("thead");
|
|
||||||
let tr = document.createElement("tr");
|
|
||||||
let th = document.createElement("th");
|
|
||||||
th.scope = "col";
|
|
||||||
tr.appendChild(th);
|
|
||||||
for (let i = 0; i < columns; i++) {
|
|
||||||
let th = document.createElement("th");
|
|
||||||
th.scope = "col";
|
|
||||||
th.textContent = i + 1;
|
|
||||||
tr.appendChild(th);
|
|
||||||
}
|
|
||||||
thead.appendChild(tr);
|
|
||||||
table.appendChild(thead);
|
|
||||||
week.forEach((weekday) => {
|
week.forEach((weekday) => {
|
||||||
let tr = document.createElement("tr");
|
let tr = document.createElement("tr");
|
||||||
let th = document.createElement("th");
|
let th = document.createElement("th");
|
||||||
@ -122,7 +109,7 @@ function make_table(url) {
|
|||||||
let inserted = 0;
|
let inserted = 0;
|
||||||
data[weekday].forEach((student_class) => {
|
data[weekday].forEach((student_class) => {
|
||||||
let td = document.createElement("td");
|
let td = document.createElement("td");
|
||||||
td.textContent = student_class.replace(/ (?=[a-z])/g, "");
|
td.textContent = student_class;
|
||||||
tr.appendChild(td);
|
tr.appendChild(td);
|
||||||
inserted++;
|
inserted++;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user