d
This commit is contained in:
parent
3447efb020
commit
70aba720a9
@ -607,18 +607,17 @@
|
||||
|
||||
document.getElementById("schedules_tab").addEventListener("click", (e) => {
|
||||
setActiveTab(e);
|
||||
console.log("Switching to schedule tab");
|
||||
const tab_content = document.querySelector("#tab_content");
|
||||
tab_content.innerHTML = "";
|
||||
const template = document.querySelector("#schedules_template");
|
||||
const template_clone = template.content.cloneNode(true);
|
||||
console.dir(template_clone);
|
||||
tab_content.appendChild(template_clone);
|
||||
init_schedules();
|
||||
});
|
||||
|
||||
const init_schedules = (day) => {
|
||||
const day_of_schedule = new Date(day) || Date.now();
|
||||
console.dir(day_of_schedule);
|
||||
|
||||
for (let i = 0; i < 8; i++) {
|
||||
if (i === 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user