Skip to content

Commit

Permalink
Missing TODO: Show notification as ticket sales starts, reload page
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmoonui authored and crypto-rizzo committed Dec 14, 2023
1 parent 0df8369 commit e0539c4
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion backend/templates/redesign/checkout/checkout_page_one.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h1 class="text-body-emphasis display-6 m-0 text-break">

<!-- Countdown timer start -->
{% if sales_status == "UPCOMING" %}
<div class="card border-0 rounded-4 shadow-sm overflow-hidden my-3 my-sm-4">
<div class="card border-0 rounded-4 shadow-sm overflow-hidden my-3 my-sm-4" id="countdown-timer">
<div class="p-3 p-sm-4">
<div class="container-fluid overflow-hidden">
<div class="row g-3 g-sm-4 align-items-center">
Expand Down Expand Up @@ -185,6 +185,22 @@ <h1 class="text-body-emphasis display-6 m-0 text-break">
</div>
</div>
</div>
<div class="card border-0 rounded-4 shadow-sm overflow-hidden my-3 my-sm-4 d-none" id="ticket-sales-has-started">
<div class="p-3 p-sm-4">
<div class="d-flex align-items-center justify-content-center">
<div class="specific-w-25 specific-h-25 flex-shrink-0 d-flex align-items-center justify-content-center bg-primary-subtle rounded">
<i class="fa-solid fa-party-horn fs-6 text-primary-emphasis"></i>
</div>
<strong class="text-primary-emphasis ms-3">{% trans "Ticket Sales Has Started!" %}</strong>
</div>
<div class="mt-2 text-center">
<span class="text-body-secondary">
<i class="fa-light fa-circle-notch fa-spin me-1"></i>
{% trans "Re-loading page automatically" %}...
</span>
</div>
</div>
</div>
{% endif %}
<!-- Countdown timer end -->

Expand Down Expand Up @@ -378,6 +394,13 @@ <h6 class="m-0">
document.getElementById("hours").innerHTML = "";
document.getElementById("mins").innerHTML = "";
document.getElementById("secs").innerHTML = "";
document.getElementById("countdown-timer").classList.add("d-none");
document.getElementById("ticket-sales-has-started").classList.remove("d-none");

// Re-load page after 3 seconds
setInterval(function() {
location.reload();
}, 3000);
}
}, 1000);
</script>
Expand Down

0 comments on commit e0539c4

Please sign in to comment.