Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
| **OS type** | 64-bit only |
| **HD space** | 75 MB |
| **Memory** | 35 MB |
| **Network interface** | <li> WIFI or LAN </li> <li> MTU ≥ 1280 bytes</li> |
| **Network interface type** | WIFI or LAN |
| **Minimum MTU** | 1360 bytes[^1] |

[^1]: WireGuard requires 1360 bytes for IPv6 and 1340 bytes for IPv4. MASQUE requires 1350 bytes for IPv6 and 1330 bytes for IPv4.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
| **OS type** | 64-bit only |
| **HD space** | 75 MB |
| **Memory** | 35 MB |
| **Network interface** | <li> WIFI or LAN </li> <li> MTU ≥ 1280 bytes</li> |
| **Network interface type** | WIFI or LAN |
| **Minimum MTU** | 1360 bytes[^1]|

[^1]: WireGuard requires 1360 bytes for IPv6 and 1340 bytes for IPv4. MASQUE requires 1350 bytes for IPv6 and 1330 bytes for IPv4.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@
| **.NET Framework version** | 4.7.2 or later |
| **HD space** | 184 MB |
| **Memory** | 3 MB |
| **Network interface** | <li> WIFI or LAN </li> <li> MTU ≥ 1280 bytes</li> |
| **Network interface type** | WIFI or LAN |
| **Minimum MTU** | 1360 bytes[^1]|

[^1]: WireGuard requires 1360 bytes for IPv6 and 1340 bytes for IPv4. MASQUE requires 1350 bytes for IPv6 and 1330 bytes for IPv4.
30 changes: 16 additions & 14 deletions src/scripts/footnotes.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
import { addTooltip } from "~/util/tippy";

const footnotes = document.querySelector("section.footnotes");
const footnotes = document.querySelectorAll("section.footnotes");

if (footnotes) {
const notes = footnotes.querySelectorAll("li");
for (const section of footnotes) {
const notes = section.querySelectorAll("li");

for (const note of notes) {
const content = note.querySelector("p") as HTMLParagraphElement;
for (const note of notes) {
const content = note.querySelector("p") as HTMLParagraphElement;

const fnrefs = document.querySelectorAll<HTMLAnchorElement>(
`a[id^='${note.id.replace("fn", "fnref")}']`,
);
const fnrefs = document.querySelectorAll<HTMLAnchorElement>(
`a[id^='${note.id.replace("fn", "fnref")}']`,
);

for (const fnref of fnrefs) {
addTooltip(fnref, content.innerHTML);
for (const fnref of fnrefs) {
addTooltip(fnref, content.innerHTML);

fnref.classList.add("footnote");
fnref.classList.add("footnote");

fnref.setAttribute("tabindex", "0");
fnref.removeAttribute("href");
fnref.setAttribute("tabindex", "0");
fnref.removeAttribute("href");
}
}
}

footnotes.remove();
section.remove();
}
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
"baseUrl": ".",
"target": "ESNext",
"paths": {
"~/*": ["src/*"]
}
Expand Down
Loading