Update toc.js

This commit is contained in:
Helen Chong 2023-08-13 23:04:53 +08:00
parent cf92ce76e0
commit a40d445367
1 changed files with 0 additions and 1 deletions

View File

@ -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();