aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/templates/pages/home.html
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-12-08 20:22:10 +0000
committerMatthew Lemon <y@yulqen.org>2024-12-08 20:22:10 +0000
commit411e79ada3d5bf315000ff5bb598235118d50b51 (patch)
tree74d8738bbd2dd2315c2ac17de50d3d761b43e136 /alphabetlearning/templates/pages/home.html
parentc563c092c34dacef2a9bffd7b89a89f025b726e9 (diff)
Adds spinner after submission
Diffstat (limited to 'alphabetlearning/templates/pages/home.html')
-rw-r--r--alphabetlearning/templates/pages/home.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/alphabetlearning/templates/pages/home.html b/alphabetlearning/templates/pages/home.html
index e0827c1..6261524 100644
--- a/alphabetlearning/templates/pages/home.html
+++ b/alphabetlearning/templates/pages/home.html
@@ -91,6 +91,9 @@
>
</p>
</form>
+ <div id="spinner-overlay" class="spinner-overlay">
+ <div class="spinner"></div>
+ </div>
</div>
<div class="col-lg-12">
<h2 class="display-4 font-weight-bolder my-3">Bonus offer!</h2>
@@ -201,4 +204,19 @@
launched in Spring 2025.
</p>
</div>
+{% block inline_javascript %}
+<script>
+document.addEventListener('DOMContentLoaded', () => {
+ const form = document.querySelector('form'); // Adjust this selector for your form
+ const spinnerOverlay = document.getElementById('spinner-overlay');
+
+ if (form) {
+ form.addEventListener('submit', () => {
+ spinnerOverlay.style.display = 'flex'; // Show the spinner overlay
+ });
+ }
+});
+</script>
+
+{% endblock inline_javascript %}
{% endblock content %}