refactor(script.js): remove unused modal resize code

Eliminated unnecessary code handling modal content resizing. This cleanup simplifies the modal setup and avoids redundant calculations, improving code maintainability.
This commit is contained in:
Kumi 2024-07-08 12:57:59 +02:00
parent 51c0f2e058
commit ad89a284fc
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -32,10 +32,6 @@
var myModal = document.getElementById("fullScreenModal");
myModal.addEventListener("shown.bs.modal", function () {
var modalContent = myModal.querySelector(".modal-content");
var modalWidth = modalContent.offsetWidth;
var modalHeight = modalContent.offsetHeight;
const modalIframe = window.$("#modal-iframe");
modalIframe.css("width", "100%");
@ -130,7 +126,6 @@
function openUrlInQuizModal(href) {
$("#regular-modal-iframe").attr("src", href);
$("#regularModal").modal("show");
}