mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-29 01:05:32 +00:00
sidenotes bug
This commit is contained in:
@@ -392,17 +392,13 @@ function Letter() {
|
|||||||
console.log("Aligned sidenotes", positionedIntervals);
|
console.log("Aligned sidenotes", positionedIntervals);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.htmx) {
|
|
||||||
htmx.on("htmx:afterSettle", (e) => {
|
|
||||||
alignSidenotes();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener("load", () => {
|
window.addEventListener("load", () => {
|
||||||
alignSidenotes();
|
alignSidenotes();
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener("resize", alignSidenotes);
|
window.addEventListener("resize", alignSidenotes);
|
||||||
|
|
||||||
|
alignSidenotes();
|
||||||
}
|
}
|
||||||
|
|
||||||
customElements.define(SCROLL_BUTTON_ELEMENT, ScrollButton);
|
customElements.define(SCROLL_BUTTON_ELEMENT, ScrollButton);
|
||||||
|
|||||||
Reference in New Issue
Block a user