Skip to content

Commit 7dde935

Browse files
authored
Add TVW + TDoR to CSS styling (#980)
* Add TVW + TDoR to CSS styling * Formatter run
1 parent 536a864 commit 7dde935

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎js/colourOverride.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* 31st March: Trans Day of Visibility ("tdov")
55
* Month of June: Pride ("pride")
6+
* 13th-20th November: Transgender Visibility Week + Transgender Day of Remembrance ("tdov")
67
* 18th December onwards: Christmas ("christmas")
78
*
89
* Classes are defined in:
@@ -27,6 +28,15 @@ document.addEventListener("DOMContentLoaded", () => {
2728
asciiElement.classList.add("pride");
2829
}
2930

31+
// Transgender Visibility Week (13th-19th Nov) + Transgender Day of Remembrance (20th Nov)
32+
if (
33+
currentDate.getMonth() === 10 &&
34+
currentDate.getDate() >= 13 &&
35+
currentDate.getDate() <= 20
36+
) {
37+
asciiElement.classList.add("tdov");
38+
}
39+
3040
// 18th December onwards
3141
if (currentDate.getMonth() === 11 && currentDate.getDate() >= 18) {
3242
asciiElement.classList.add("christmas");

0 commit comments

Comments
 (0)