mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-26 10:28:47 +00:00
switched theme
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
document.querySelectorAll('.post-body h2[id], .post-body h3[id]').forEach(function (heading) {
|
||||
var a = document.createElement('a');
|
||||
a.href = '#' + heading.id;
|
||||
a.className = 'heading-anchor';
|
||||
a.setAttribute('aria-label', 'Link to this section');
|
||||
a.setAttribute('tabindex', '-1');
|
||||
a.textContent = '#';
|
||||
heading.appendChild(a);
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user