10 years later #1

Merged
sthag merged 374 commits from development into main 2026-03-07 00:18:59 +01:00
Showing only changes of commit 9e560d7e62 - Show all commits

View file

@ -64,12 +64,18 @@ tags:
const currentSeconds = currentDate.getSeconds();
const currentMinutes = currentDate.getMinutes();
const currentHours = currentDate.getHours();
const currentDayOfWeek = currentDate.getDay(); // Get current day of the week (0-6, where 0 is Sunday)
const currentDayOfWeek = getNumericWeekday(currentDate);
const currentMonth = currentDate.getMonth() + 1; // Get current month (0-11)
drawCircle(currentSeconds, currentMinutes, currentHours, currentDayOfWeek, currentMonth);
}
// TODO: Parameter für Wochenstart ergänzen
function getNumericWeekday(date) {
const weekday = date.getDay(); // 0 (Sunday) to 6 (Saturday)
return (weekday === 0) ? 7 : weekday;
}
updateCircle();
setInterval(updateCircle, 1000);
</script>