Removed non functional resize code

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-05 14:39:18 +02:00
parent 697696347f
commit b8aad8b695
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E

View File

@ -100,14 +100,6 @@ document.addEventListener("DOMContentLoaded", function () {
headerH1.addEventListener("click", restoreOriginal); headerH1.addEventListener("click", restoreOriginal);
} }
// Responsive resize: adjust iframe height when window resizes
window.addEventListener("resize", function () {
const iframe = mainElement.querySelector("iframe");
if (iframe) {
iframe.style.height = mainElement.style.height;
}
});
// Wait until all resources are loaded before doing the initial iframe check // Wait until all resources are loaded before doing the initial iframe check
window.addEventListener("load", function () { window.addEventListener("load", function () {
const initialParams = new URLSearchParams(window.location.search); const initialParams = new URLSearchParams(window.location.search);