Examples and anchors on website

This commit is contained in:
Philipp Heckel 2021-11-18 09:22:33 -05:00
parent ba2f6e08cd
commit 6d7fec5337
8 changed files with 159 additions and 20 deletions

View file

@ -28,13 +28,13 @@ h1 {
}
h2 {
margin-top: 20px;
margin-top: 30px;
margin-bottom: 5px;
font-size: 1.8em;
}
h3 {
margin-top: 20px;
margin-top: 25px;
margin-bottom: 5px;
font-size: 1.3em;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

@ -338,6 +338,7 @@ if (match) {
}
}
// Add anchor links
document.querySelectorAll('.anchor').forEach((el) => {
if (el.hasAttribute('id')) {
const id = el.getAttribute('id');