diff --git a/assets/js/q.js b/assets/js/q.js index 17df1c8..7c6bfcf 100644 --- a/assets/js/q.js +++ b/assets/js/q.js @@ -2,6 +2,11 @@ function checkparam() { const params = new URLSearchParams(window.location.search) // console.log(params) Only uncomment this for testing purposes. + if(!params) { + const embed = document.getElementById("embed"); + embed.style.display = "block" + } + if (params.get('type') === 'pt') { const pt = document.getElementById("pt"); pt.style.display = "block"; @@ -9,6 +14,15 @@ function checkparam() { embed.style.display = "none"; } + if(params.get('type') === 'embed') { + const pt = document.getElementById("pt"); + pt.style.display = "none"; + const embed = document.getElementById("embed"); + embed.style.display = "block"; + const success = document.getElementById("success"); + success.style.display = "none"; + } + if (params.get('status') === 'success') { const pt = document.getElementById("pt"); pt.style.display = "none"; diff --git a/mcw.html b/mcw.html index 591b0a5..ea4fc27 100644 --- a/mcw.html +++ b/mcw.html @@ -7,7 +7,7 @@ - + @@ -27,8 +27,8 @@ - -
+ +
@@ -71,6 +71,7 @@
+