mirror of
https://gitea.tendokyu.moe/eamuse/docs.git
synced 2024-11-24 06:50:11 +01:00
9 lines
260 B
JavaScript
9 lines
260 B
JavaScript
for (const el of document.querySelectorAll("[id]")) {
|
|
el.classList.add("haspara")
|
|
const pilcrow = document.createElement("a");
|
|
pilcrow.className = "pilcrow"
|
|
pilcrow.href = "#" + el.id;
|
|
pilcrow.innerHTML = "¶"
|
|
el.prepend(pilcrow)
|
|
}
|