add times to schedule grid

This commit is contained in:
Sundog Jones 2024-09-09 12:51:05 -04:00
parent 65d301ae69
commit 78a4439044

View File

@ -642,7 +642,7 @@
const template = document.querySelector("#schedule_row_template");
const template_clone = template.content.cloneNode(true);
const grid = document.querySelector("#schedule_grid");
template_clone.firstElementChild.innerHTML = ``;
template_clone.firstElementChild.innerHTML = `<strong>${hour.toString().padStart(2, "0")}:${minutes.toString().padStart(2, "0")}</strong>`;
template_clone.firstElementChild.setAttribute('data-time', hour + ":" + minutes);
grid.appendChild(template_clone);
}