mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-02-03 23:00:32 +00:00
Beginning of the documentation
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
/* Styles for section anchors */
|
||||
a.anchor-section::before {content: '#';font-size: 80%;}
|
||||
@@ -0,0 +1,4 @@
|
||||
/* Styles for section anchors */
|
||||
a.anchor-section {margin-left: 10px; visibility: hidden; color: inherit;}
|
||||
.hasAnchor:hover a.anchor-section {visibility: visible;}
|
||||
ul > li > .anchor-section {display: none;}
|
||||
@@ -0,0 +1,11 @@
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// If section divs is used, we need to put the anchor in the child header
|
||||
const headers = document.querySelectorAll("div.hasAnchor.section[class*='level'] > :first-child")
|
||||
|
||||
headers.forEach(function (x) {
|
||||
// Add to the header node
|
||||
if (!x.classList.contains('hasAnchor')) x.classList.add('hasAnchor')
|
||||
// Remove from the section or div created by Pandoc
|
||||
x.parentElement.classList.remove('hasAnchor')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user