diff --git a/system/resources/css/toc.css b/system/resources/css/toc.css index 2e9f723..8f04b8c 100644 --- a/system/resources/css/toc.css +++ b/system/resources/css/toc.css @@ -49,4 +49,12 @@ summary { border:none; margin-left: 5px; box-shadow:none; +} + +.toc-link a { + display:none; +} + +.toc-link:hover a{ + display:inline-block; } \ No newline at end of file diff --git a/system/resources/js/toc.generator.js b/system/resources/js/toc.generator.js index a5f461a..41de474 100644 --- a/system/resources/js/toc.generator.js +++ b/system/resources/js/toc.generator.js @@ -39,7 +39,7 @@ function generateTOC (id) { anchor.setAttribute('href', '#' + heading.textContent.replace(/\s+/g, '-').toLowerCase() + id); anchor.setAttribute('class', 'anchor'); anchor.setAttribute('aria-label', heading.textContent); - anchor.innerHTML = ''; + anchor.innerHTML = ''; var link = documentRef.createElement('a'); link.setAttribute('href', '#' + heading.textContent.replace(/\s+/g, '-').toLowerCase() + id);