mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-27 06:52:35 -04:00
[en] Update events.js - moving transition week to main calendar
This commit is contained in:
parent
090af1edf2
commit
34c9c0be72
@ -231,23 +231,6 @@ module.exports = [
|
||||
}
|
||||
}, EventLevel.Day, [], null, 'Paush 6 / पौष ६'),
|
||||
|
||||
// last full week (Monday - Friday) in January
|
||||
new Event('{https://nationaltransitionweek.wordpress.com/=Transition Week}', 'Transgender', 1, function* (monthDays) {
|
||||
let lastFullWeek = [];
|
||||
let currentWeek = [];
|
||||
for (let d of monthDays) {
|
||||
if (d.dayOfWeek === 1) {
|
||||
lastFullWeek = currentWeek;
|
||||
currentWeek = [];
|
||||
}
|
||||
if (d.dayOfWeek >= 1 && d.dayOfWeek <= 5) {
|
||||
currentWeek.push(d);
|
||||
}
|
||||
}
|
||||
yield* currentWeek.length === 5
|
||||
? currentWeek
|
||||
: lastFullWeek;
|
||||
}, EventLevel.Week),
|
||||
|
||||
// one-off events
|
||||
new Event('Day of Silence', null, 4, dayYear(23, 2021), EventLevel.Day),
|
||||
|
Loading…
x
Reference in New Issue
Block a user