remove prints
This commit is contained in:
parent
a670600ad7
commit
89ece03307
1 changed files with 0 additions and 5 deletions
|
@ -76,7 +76,6 @@ const minDepth = Math.min(...headings.map((heading) => heading.depth));
|
||||||
// if it wasn't previously visible
|
// if it wasn't previously visible
|
||||||
// let's make the link active
|
// let's make the link active
|
||||||
if (associatedEls.size === 0) {
|
if (associatedEls.size === 0) {
|
||||||
console.log("SHIET", link);
|
|
||||||
link.parentNode.classList.add("active");
|
link.parentNode.classList.add("active");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +95,6 @@ const minDepth = Math.min(...headings.map((heading) => heading.depth));
|
||||||
});
|
});
|
||||||
|
|
||||||
const postContentEl = document.getElementById("post-content");
|
const postContentEl = document.getElementById("post-content");
|
||||||
console.log("content", postContentEl);
|
|
||||||
|
|
||||||
let belongsTo;
|
let belongsTo;
|
||||||
for (const child of postContentEl.children) {
|
for (const child of postContentEl.children) {
|
||||||
|
@ -111,9 +109,6 @@ const minDepth = Math.min(...headings.map((heading) => heading.depth));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("headings map", headingsMap);
|
|
||||||
console.log("reverse", reverseHeadingMap);
|
|
||||||
|
|
||||||
[...headingsMap.values()]
|
[...headingsMap.values()]
|
||||||
.flatMap((x) => [...x])
|
.flatMap((x) => [...x])
|
||||||
.forEach((x) => {
|
.forEach((x) => {
|
||||||
|
|
Loading…
Reference in a new issue