This commit is contained in:
parent
979106e8eb
commit
4172bba4cc
2 changed files with 7 additions and 4 deletions
|
|
@ -84,9 +84,11 @@ body {
|
|||
opacity: var(--opacity-light);
|
||||
}
|
||||
|
||||
.footnote::before {
|
||||
content: " [";
|
||||
}
|
||||
.footnote::after {
|
||||
content: "+";
|
||||
margin-left: calc(var(--unit--horizontal) / 6);
|
||||
content: "]";
|
||||
}
|
||||
|
||||
/* ================= COLORS ================= */
|
||||
|
|
|
|||
|
|
@ -84,11 +84,12 @@ function fixFootNotes() {
|
|||
|
||||
footnotes.forEach((footnote) => {
|
||||
const href = footnote.href;
|
||||
|
||||
footnote.classList.add("footnote");
|
||||
|
||||
if (href.includes("sym")) {
|
||||
footnote.id = footnote.hash.replace("sym", "anc").replace("#", "");
|
||||
}
|
||||
if (href.includes("anc")) {
|
||||
} else if (href.includes("anc")) {
|
||||
footnote.id = footnote.hash.replace("anc", "sym").replace("#", "");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue