Mylloon
9dfcc1101d
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
feat: Basic support for new `/cours` endpoint (not ready for release yet), see commit description for more - Basic /cours support - Fix LaTeX support (see #47 / cours+blog) - Better detection of when there is LaTeX in document - Don't shuffle markdown and LaTeX processing (thanks to comrak) - Macros on release - Local image support (cours+blog) - PDF support - Support of markdown files integration in other markdown files - Very basic exclusion support in toc (need a lot of improvement!!) - Update multiple dependencies (actix-web, ramhorns, comrak, reqwest, hljs) - Reformat some code - ToC in /cours support (very basic, works via building it in rust and processing it in js) - Remove very old assets (font + jspdf) - Hide navbar when printing the website - New tag in index page - Fix OCaml support for HLJS + add "pseudocode" derived from Julia Reviewed-on: #44 Co-authored-by: Mylloon <kennel.anri@tutanota.com> Co-committed-by: Mylloon <kennel.anri@tutanota.com>
35 lines
1.1 KiB
JavaScript
35 lines
1.1 KiB
JavaScript
class Tag {
|
|
constructor(variant, style = "") {
|
|
this.variant = variant;
|
|
this.style = style;
|
|
}
|
|
}
|
|
|
|
window.addEventListener("load", () => {
|
|
const tags = [
|
|
new Tag("Comment ça marche un PC 😵💫"),
|
|
new Tag("Idiot certifié"),
|
|
new Tag("undefined", "font-family: monospace"),
|
|
new Tag("/api/v1/love", "font-family: monospace"),
|
|
new Tag("Étudiant qui va rater son master"),
|
|
new Tag("Peak D2 sur Valo 🤡"),
|
|
new Tag(
|
|
"0x520",
|
|
`
|
|
display: inline;
|
|
background: linear-gradient(to bottom right, red 0%, red 50%, black 50%);
|
|
background-clip: text;
|
|
-webkit-background-clip: text; /* Chromium fix */
|
|
color: transparent;
|
|
`
|
|
),
|
|
new Tag("Nul en CSS", "font-family: 'Comic Sans MS', cursive"),
|
|
new Tag("Mention poufiasse"),
|
|
new Tag("anri k... caterpillar 🐛☝️"),
|
|
];
|
|
|
|
const random = Math.round(Math.random() * (tags.length - 1));
|
|
const element = document.getElementById("subname");
|
|
element.textContent = tags[random].variant;
|
|
element.style = tags[random].style;
|
|
});
|