initial commit

This commit is contained in:
isUnknown 2024-07-24 09:43:31 +02:00
commit 880cae624a
906 changed files with 196528 additions and 0 deletions

12
assets/js/calendar.js Normal file
View file

@ -0,0 +1,12 @@
dayjs.locale("fr");
function getDaysInMonth(month, year) {
const daysInMonth = dayjs(new Date(year, month, 0)).daysInMonth();
const days = [];
for (let day = 1; day <= daysInMonth; day++) {
const currentDay = dayjs(new Date(year, month - 1, day));
days.push(currentDay.format("DD-MM-YYYY"));
}
return days;
}