Reorganize assets folder

This commit is contained in:
2026-05-08 08:34:11 +02:00
parent d8089d9cb3
commit fcbfeeb96a
18 changed files with 16 additions and 16 deletions
+17
View File
@@ -0,0 +1,17 @@
(function () {
var content = document.querySelector("main");
if (!content) return;
var headings = content.querySelectorAll("h2, h3, h4");
if (!headings) return
headings.forEach(function (h) {
if (!h.id) return;
var a = document.createElement('a');
a.href = '#' + h.id;
a.className = 'heading-anchor';
a.setAttribute('aria-label', 'Link to this section');
a.textContent = '#';
h.insertBefore(a, h.firstChild);
});
}());