move sensitive tags to non-working hours

This commit is contained in:
Mylloon 2025-01-06 10:29:40 +01:00
parent fed97a269b
commit 67cab57425
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -14,20 +14,12 @@ window.addEventListener("load", () => {
`;
const mono = "font-family: monospace";
const tags = [
let tags = [
new Tag("Comment fonctionne un PC 😵‍💫"),
new Tag("undefined", mono),
new Tag("/api/v1/love", mono),
new Tag("/api/v1/websites", mono),
new Tag("Peak D2 sur Valo 🤡"),
new Tag(
"0x520",
`
background: linear-gradient(to bottom right, red 0%, red 50%, black 50%);
${clipping_text}
text-shadow: 0px 0px 20px light-dark(transparent, var(--font-color));
`
),
new Tag("Nul en CSS", "font-family: 'Comic Sans MS', TSCu_Comic, cursive"),
new Tag("anri k... caterpillar 🐛☝️"),
new Tag(
@ -38,6 +30,24 @@ window.addEventListener("load", () => {
text-shadow: 0px 0px 20px light-dark(var(--font-color), transparent);
`
),
new Tag("Étudiant"),
new Tag("Rempli de malice"),
new Tag("anri.exe", mono),
];
const hour = new Date().getHours();
if (hour < 8 || hour > 18) {
tags = tags.concat([
new Tag(
"0x520",
`
background: linear-gradient(to bottom right, red 0%, red 50%, black 50%);
${clipping_text}
text-shadow: 0px 0px 20px light-dark(transparent, var(--font-color));
`
),
new Tag("School hater"),
new Tag(
new Tag(
"Free Palestine",
`
@ -47,10 +57,6 @@ window.addEventListener("load", () => {
text-shadow: 0px 0px 20px var(--font-color);
`
),
new Tag("School hater"),
new Tag("Étudiant"),
new Tag("Rempli de malice"),
new Tag(
"#NouveauFrontPopulaire ✊",
`
background: linear-gradient(to bottom, #4fb26b 0%, #4fb26b 36%, \
@ -63,8 +69,8 @@ window.addEventListener("load", () => {
`
),
new Tag("s/centre/droite/g", mono),
new Tag("anri.exe", mono),
];
]);
}
const random = Math.round(Math.random() * (tags.length - 1));
const element = document.getElementById("subname");