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:
parent
51c0f2e058
commit
ad89a284fc
1 changed files with 0 additions and 5 deletions
|
@ -32,10 +32,6 @@
|
||||||
var myModal = document.getElementById("fullScreenModal");
|
var myModal = document.getElementById("fullScreenModal");
|
||||||
|
|
||||||
myModal.addEventListener("shown.bs.modal", function () {
|
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");
|
const modalIframe = window.$("#modal-iframe");
|
||||||
|
|
||||||
modalIframe.css("width", "100%");
|
modalIframe.css("width", "100%");
|
||||||
|
@ -130,7 +126,6 @@
|
||||||
|
|
||||||
function openUrlInQuizModal(href) {
|
function openUrlInQuizModal(href) {
|
||||||
$("#regular-modal-iframe").attr("src", href);
|
$("#regular-modal-iframe").attr("src", href);
|
||||||
|
|
||||||
$("#regularModal").modal("show");
|
$("#regularModal").modal("show");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue