Update toc.js
This commit is contained in:
parent
cf92ce76e0
commit
a40d445367
|
@ -2,7 +2,6 @@ window.addEventListener('DOMContentLoaded', (event) => {
|
|||
const article = document.querySelector("article");
|
||||
const headings = article.querySelectorAll("h2, h3");
|
||||
const toc = document.querySelector(".toc");
|
||||
const tocSidebar = document.querySelector(".sidebar__toc");
|
||||
const totalHeadings = headings.length;
|
||||
let tocOl = document.createElement("ol");
|
||||
let tocFragment = new DocumentFragment();
|
||||
|
|
Loading…
Reference in New Issue