From 9937900e911a901e58d0c14e7ca21cebd06ec267 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Fri, 10 Feb 2023 16:04:24 +0100 Subject: [PATCH] remove IE6 support --- js/modal.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/js/modal.js b/js/modal.js index 48196ae..35e46b9 100644 --- a/js/modal.js +++ b/js/modal.js @@ -25,21 +25,4 @@ function createModal(text,renderAsHTML=false) { document.getElementById("modal-text-div").innerText = text } currentModal.style.display = shade.style.display = "block" -} - - -// This code is a workaround for IE6's lack of support for the -// position: fixed style. -// -if (!('maxHeight' in document.body.style)) { - function modalsize() { - const top = document.documentElement.scrollTop; - const winsize = document.documentElement.offsetHeight; - const docsize = document.documentElement.scrollHeight; - shade.style.height = Math.max(winsize, docsize) + 'px'; - modal.style.top = top + Math.floor(winsize / 3) + 'px'; - }; - modal.style.position = shade.style.position = 'absolute'; - window.onscroll = window.onresize = modalsize; - modalsize(); - } \ No newline at end of file +} \ No newline at end of file