PageSourceSearch

https://lipogg.github.io/textanalyse-mit-r/libs/anchor-sections-1.1.0/anchor-sections.js

js lipogg.github.io collected 2026-10-03 09:31:17 UTC 487 bytes, 11 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2  // If section divs is used, we need to put the anchor in the child header
3  const headers = document.querySelectorAll("div.hasAnchor.section[class*='level'] > :first-child")
4
5  headers.forEach(function (x) {
6    // Add to the header node
7    if (!x.classList.contains('hasAnchor')) x.classList.add('hasAnchor')
8    // Remove from the section or div created by Pandoc
9    x.parentElement.classList.remove('hasAnchor')
10  })
11})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.