This commit is contained in:
isUnknown 2025-02-03 14:06:04 +01:00
parent 979106e8eb
commit 4172bba4cc
2 changed files with 7 additions and 4 deletions

View file

@ -84,9 +84,11 @@ body {
opacity: var(--opacity-light); opacity: var(--opacity-light);
} }
.footnote::before {
content: " [";
}
.footnote::after { .footnote::after {
content: "+"; content: "]";
margin-left: calc(var(--unit--horizontal) / 6);
} }
/* ================= COLORS ================= */ /* ================= COLORS ================= */

View file

@ -84,11 +84,12 @@ function fixFootNotes() {
footnotes.forEach((footnote) => { footnotes.forEach((footnote) => {
const href = footnote.href; const href = footnote.href;
footnote.classList.add("footnote"); footnote.classList.add("footnote");
if (href.includes("sym")) { if (href.includes("sym")) {
footnote.id = footnote.hash.replace("sym", "anc").replace("#", ""); footnote.id = footnote.hash.replace("sym", "anc").replace("#", "");
} } else if (href.includes("anc")) {
if (href.includes("anc")) {
footnote.id = footnote.hash.replace("anc", "sym").replace("#", ""); footnote.id = footnote.hash.replace("anc", "sym").replace("#", "");
} }
}); });