Update webhook page

This commit is contained in:
2024-07-06 23:29:39 +02:00
parent 9da33b402c
commit f37975d94a
15 changed files with 122 additions and 127 deletions

View File

@ -107,16 +107,16 @@
</div>
</div>
<script type="module">
const scrollSpy = new bootstrap.ScrollSpy(document.body, {
target: '.toc'
})
const scrollSpy = new bootstrap.ScrollSpy(document.body, {
target: '.toc'
})
document.body.addEventListener('activate.bs.scrollspy', function (event) {
const activeItem = document.querySelector('.toc .active');
if (activeItem) {
activeItem.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' });
}
});
document.body.addEventListener('activate.bs.scrollspy', function (event) {
const activeItem = document.querySelector('.toc .active');
if (activeItem) {
activeItem.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' });
}
});
</script>
</body>
{% endblock content %}