From 77b97bea6bd933f4833f1d1a09201598e3e10ef1 Mon Sep 17 00:00:00 2001 From: uPagge Date: Sat, 20 Mar 2021 11:34:54 +0300 Subject: toc js change --- src/js/theme.js | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src') diff --git a/src/js/theme.js b/src/js/theme.js index a967922..c0ee01b 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -389,15 +389,6 @@ class Theme { }); } - initHeaderLink() { - for (let num = 1; num <= 6; num++) { - this.util.forEach(document.querySelectorAll('h' + num), $header => { - $header.classList.add('headerLink'); - $header.insertAdjacentHTML('afterbegin', ``); - }); - } - } - initShareHeader() { this.util.forEach(document.querySelectorAll('.content-break h2'), $header => { $header.insertAdjacentHTML('afterend', ` @@ -712,7 +703,6 @@ class Theme { this.initDetails(); this.initHighlight(); this.initTable(); - this.initHeaderLink(); this.initShareHeader(); this.initSmoothScroll(); this.initMath(); -- cgit v1.2.3