CLOSE BUTTON is not working
Browse files- index.html +12 -16
index.html
CHANGED
|
@@ -22,7 +22,7 @@
|
|
| 22 |
<span class="font-medium text-red-800">Error</span>
|
| 23 |
</div>
|
| 24 |
<!-- CLOSE BUTTON -->
|
| 25 |
-
<button type="button" onclick="
|
| 26 |
class="close-alert ml-auto p-2 rounded hover:bg-red-100 focus:outline-none">
|
| 27 |
<i data-feather="x" class="w-4 h-4"></i>
|
| 28 |
</button>
|
|
@@ -46,7 +46,7 @@
|
|
| 46 |
<span class="font-medium text-green-800">Success</span>
|
| 47 |
</div>
|
| 48 |
<!-- CLOSE BUTTON -->
|
| 49 |
-
<button type="button" onclick="
|
| 50 |
class="close-alert ml-auto p-2 rounded hover:bg-green-100 focus:outline-none">
|
| 51 |
<i data-feather="x" class="w-4 h-4"></i>
|
| 52 |
</button>
|
|
@@ -354,20 +354,16 @@
|
|
| 354 |
|
| 355 |
|
| 356 |
});
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
}
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
</script>
|
| 371 |
|
| 372 |
<script src="https://www.google.com/recaptcha/api.js?render=6LfWu2YcAAAAAPooSewjuw82sSxhAdh657M4VvzT"></script>
|
| 373 |
|
|
|
|
| 22 |
<span class="font-medium text-red-800">Error</span>
|
| 23 |
</div>
|
| 24 |
<!-- CLOSE BUTTON -->
|
| 25 |
+
<button type="button" onclick="this.parentElement.parentElement.classList.add('hidden')"
|
| 26 |
class="close-alert ml-auto p-2 rounded hover:bg-red-100 focus:outline-none">
|
| 27 |
<i data-feather="x" class="w-4 h-4"></i>
|
| 28 |
</button>
|
|
|
|
| 46 |
<span class="font-medium text-green-800">Success</span>
|
| 47 |
</div>
|
| 48 |
<!-- CLOSE BUTTON -->
|
| 49 |
+
<button type="button" onclick="this.parentElement.parentElement.classList.add('hidden')"
|
| 50 |
class="close-alert ml-auto p-2 rounded hover:bg-green-100 focus:outline-none">
|
| 51 |
<i data-feather="x" class="w-4 h-4"></i>
|
| 52 |
</button>
|
|
|
|
| 354 |
|
| 355 |
|
| 356 |
});
|
| 357 |
+
function removeQuery() {
|
| 358 |
+
const url = new URL(window.location.href);
|
| 359 |
+
url.search = '';
|
| 360 |
+
window.history.replaceState({}, document.title, url);
|
| 361 |
+
|
| 362 |
+
// Also hide the alerts
|
| 363 |
+
document.getElementById('fail_email').classList.add('hidden');
|
| 364 |
+
document.getElementById('success_email').classList.add('hidden');
|
| 365 |
+
}
|
| 366 |
+
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 367 |
|
| 368 |
<script src="https://www.google.com/recaptcha/api.js?render=6LfWu2YcAAAAAPooSewjuw82sSxhAdh657M4VvzT"></script>
|
| 369 |
|