|
|
|
@ -73,6 +73,12 @@ window.addEventListener("keyup", (e)=> {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
window.addEventListener("DOMContentLoaded", (e) => {
|
|
|
|
|
if (location.protocol == "file:") {
|
|
|
|
|
document.querySelectorAll(".svedit").forEach((i) => {
|
|
|
|
|
i.style.display = "inline";
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
document.querySelectorAll('.triadlink').forEach((i) => {
|
|
|
|
|
console.log(i)
|
|
|
|
|
i.addEventListener("click", (ev) => {
|
|
|
|
@ -94,15 +100,17 @@ window.addEventListener("DOMContentLoaded", (e) => {
|
|
|
|
|
let par = document.querySelector(
|
|
|
|
|
"#TableOfContents > ol:first-child > li:first-child"
|
|
|
|
|
);
|
|
|
|
|
let s = document.createElement("span");
|
|
|
|
|
s.appendChild(par.cloneNode(true));
|
|
|
|
|
par.remove();
|
|
|
|
|
document
|
|
|
|
|
.querySelector("#TableOfContents > ol:first-child")
|
|
|
|
|
.insertBefore(
|
|
|
|
|
s,
|
|
|
|
|
document.querySelector("#TableOfContents > ol:first-child").firstChild
|
|
|
|
|
);
|
|
|
|
|
if (par) {
|
|
|
|
|
let s = document.createElement("span");
|
|
|
|
|
s.appendChild(par.cloneNode(true));
|
|
|
|
|
par.remove();
|
|
|
|
|
document
|
|
|
|
|
.querySelector("#TableOfContents > ol:first-child")
|
|
|
|
|
.insertBefore(
|
|
|
|
|
s,
|
|
|
|
|
document.querySelector("#TableOfContents > ol:first-child").firstChild
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (document.querySelector(".soundcite")) {
|
|
|
|
|
let relPath = "../".repeat(relPathDepth - 1);
|
|
|
|
|