- Fixes
- ADD list view for allocations
- ADD hide dhcp option (list view)
This commit is contained in:
Lucas committed 2026-01-22 16:39:38 +01:00
1 parent 03e543e7f8
commit 800ff061b7
8 files changed
+100 -33

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
if (history.scrollRestoration) {
history.scrollRestoration = 'manual';
}
function instantCenter() {
const hash = window.location.hash;
if (!hash) return;
const targetId = hash.substring(1);
const element = document.getElementById(targetId);
if (element) {
setTimeout(() => {
const elementRect = element.getBoundingClientRect();
const absoluteElementTop = elementRect.top + window.scrollY;
const middle = absoluteElementTop - (window.innerHeight / 2) + (elementRect.height / 2);
window.scrollTo({
top: middle,
behavior: 'auto'
});
}, 0);
}
}
window.addEventListener('load', instantCenter);