forked from Chaospott/site
Adjust the Pride Month styling to blend in better with the existing page design. CCC/Chaospott logo wall is no longer covered up, the Repair Café logo no longer clashes with the pride background, and the whole thing is a bit easier on the eyes.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
(function () {
|
||||
var month = Number(
|
||||
new Intl.DateTimeFormat("de-DE", {
|
||||
timeZone: "Europe/Berlin",
|
||||
month: "numeric"
|
||||
}).format(new Date())
|
||||
);
|
||||
|
||||
if (month !== 6) {
|
||||
return;
|
||||
}
|
||||
|
||||
document.querySelectorAll("img[data-pride-src]").forEach(function (img) {
|
||||
img.src = img.getAttribute("data-pride-src");
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user