Add birthday previews and restore checklist taps
This commit is contained in:
parent
d2c7f004ea
commit
aaa3013890
11 changed files with 146 additions and 27 deletions
11
static/calendar.js
Normal file
11
static/calendar.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(function exposeCalendar(root, factory) {
|
||||
const api = factory();
|
||||
if (typeof module === "object" && module.exports) module.exports = api;
|
||||
if (root) root.ValleyCalendar = api;
|
||||
})(typeof window === "undefined" ? globalThis : window, () => ({
|
||||
birthdayOn(birthdays, season, day, year) {
|
||||
const entry = birthdays?.[season]?.[day];
|
||||
if (!entry || (entry[1] && entry[1] !== year)) return null;
|
||||
return entry[0];
|
||||
}
|
||||
}));
|
||||
Loading…
Add table
Add a link
Reference in a new issue