diff --git a/script.js b/script.js index c872d74..f81acb0 100644 --- a/script.js +++ b/script.js @@ -128,6 +128,12 @@ hideContent(); } + function openUrlInQuizModal(href) { + $("#regular-modal-iframe").attr("src", href); + + $("#regularModal").modal("show"); + } + async function openQuizModal(number) { let href = getFeedbackLinks()[number - 1]; @@ -148,9 +154,7 @@ href = href + "&embed=1&modal=1"; - $("#regular-modal-iframe").attr("src", href); - - $("#regularModal").modal("show"); + openUrlInQuizModal(href); } function closeQuizModal() {