]> git.proxmox.com Git - proxmox-backup.git/blame - docs/_static/custom.js
docs: move custom.js and custom.css into _static folder
[proxmox-backup.git] / docs / _static / custom.js
CommitLineData
8a40e226
TL
1window.addEventListener('DOMContentLoaded', (event) => {
2 let activeSection = document.querySelector("a.current");
3 if (activeSection) {
4 // https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
5 activeSection.scrollIntoView({ block: 'center' });
6 }
7});