From 78a4439044be2de66ed0e3ba8b0365e055c0c8ac Mon Sep 17 00:00:00 2001 From: Sundog Date: Mon, 9 Sep 2024 12:51:05 -0400 Subject: [PATCH] add times to schedule grid --- layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout.html b/layout.html index 0f324cd..3695b10 100644 --- a/layout.html +++ b/layout.html @@ -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 = `${hour.toString().padStart(2, "0")}:${minutes.toString().padStart(2, "0")}`; template_clone.firstElementChild.setAttribute('data-time', hour + ":" + minutes); grid.appendChild(template_clone); }