From 3e9d3b0dc37b6e5b760b7f7f760762a4fbe2b258 Mon Sep 17 00:00:00 2001 From: Lani Aung Date: Sat, 17 Aug 2024 16:18:50 -0600 Subject: [PATCH] Colors --- calendar.html | 193 +++++++++++++++++++++++++------------------------- 1 file changed, 98 insertions(+), 95 deletions(-) diff --git a/calendar.html b/calendar.html index 2b8c029..f1d3b31 100644 --- a/calendar.html +++ b/calendar.html @@ -8,7 +8,7 @@ @@ -80,7 +81,7 @@ - + @@ -92,102 +93,102 @@ - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - + + + + - - - - - - - + + + + + + + - - - - + + + + - - - - - - - + + + + + + + - - - - + + + + - - - - - - - + + + + + + + - - - - + + + + - - - - - - - + + + + + + +
YearYear
18152229MonTueWedThuFriSatSun18152229MonTueWedThuFriSatSun
29162330TueWedThuFriSatSunMon29162330TueWedThuFriSatSunMon
310172431WedThuFriSatSunMonTue310172431WedThuFriSatSunMonTue
41118254111825 ThuFriSatSunMonTueWedThuFriSatSunMonTueWed
51219265121926 FriSatSunMonTueWedThuFriSatSunMonTueWedThu
61320276132027 SatSunMonTueWedThuFriSatSunMonTueWedThuFri
71421287142128 SunMonTueWedThuFriSatSunMonTueWedThuFriSat
@@ -208,7 +209,7 @@ for (let year = 0; year < 5; year++) { const table = document.importNode(template, true); // Clone now.setFullYear(currentYear + year); - table.querySelector(".year").textContent = now.getFullYear(); + table.querySelector(".year span").textContent = now.getFullYear(); for (let day = 0; day < 7; day++) { for (let month = 0; month < 12; month++) { @@ -225,7 +226,9 @@ if (now.getDay() == day) { const div = document.createElement("div"); - div.textContent = months[month]; + const span = document.createElement("span"); + span.textContent = months[month]; + div.appendChild(span); table.querySelector(`thead .col-${day}`).appendChild(div); div.classList.add(`d${future.getDate()}`); div.setAttribute("title", `${future.getDate()} days`);