mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-28 07:20:49 -04:00
[en][calendar] hate crime week, deaf week
This commit is contained in:
parent
a27b322a9a
commit
06bc1114eb
@ -107,7 +107,26 @@ module.exports = [
|
|||||||
}
|
}
|
||||||
}, EventLevel.Day),
|
}, EventLevel.Day),
|
||||||
|
|
||||||
|
new Event('Hate Crime Awareness Week (UK)', null, 10, function* (monthDays) {
|
||||||
|
let saturdays = 0;
|
||||||
|
for (let d of monthDays) {
|
||||||
|
if (d.dayOfWeek === 6) {
|
||||||
|
saturdays++;
|
||||||
|
}
|
||||||
|
if (saturdays === 2 || (saturdays === 3 && d.dayOfWeek === 6)) {
|
||||||
|
yield d;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, EventLevel.Week),
|
||||||
|
|
||||||
// one-off events
|
// one-off events
|
||||||
new Event('Day of Silence', null, 4, dayYear(23, 2021), EventLevel.Day),
|
new Event('Day of Silence', null, 4, dayYear(23, 2021), EventLevel.Day),
|
||||||
new Event('LGBTQIA+ Equal Pay Awareness Day', null, 6, dayYear(16, 2021), EventLevel.Day),
|
new Event('LGBTQIA+ Equal Pay Awareness Day', null, 6, dayYear(16, 2021), EventLevel.Day),
|
||||||
|
new Event('Deaf LGBTQ Awareness Week', null, 4, function* (monthDays) {
|
||||||
|
for (let d of monthDays) {
|
||||||
|
if (d.day >= 11 && d.day <= 17 && d.year === 2021) {
|
||||||
|
yield d;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, EventLevel.Week),
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user