Update GmeekTOC.js

This commit is contained in:
Meekdai 2024-08-06 18:41:23 +08:00
parent 2e78ea21dc
commit 6722f61728

View File

@ -23,7 +23,7 @@ function createTOC() {
tocElement.appendChild(link);
});
tocElement.insertAdjacentHTML('beforeend', '<a href="#" class="toc-end" onclick="window.scrollTo({top:0,behavior: \'smooth\'});">Top</a>');
tocElement.insertAdjacentHTML('beforeend', '<a class="toc-end" onclick="window.scrollTo({top:0,behavior: \'smooth\'});">Top</a>');
contentContainer.prepend(tocElement);
}