please wait added

This commit is contained in:
Hritikkk9
2024-07-17 13:02:43 +05:30
parent a8afd5352c
commit f93beff03f
2 changed files with 14 additions and 2 deletions

View File

@@ -130,6 +130,7 @@
</div>
</div>
<button type="submit" class="subscribe-button w-75">SUBSCRIBE NOW</button>
<div id="loadingMessage" style="display: none;">Please wait...</div>
</form>
{{-- <button class="subscribe-button w-75" type="button" data-bs-toggle="modal" data-bs-target="#exampleModal">SUBSCRIBE NOW</button> --}}
<p class="grey-para text-center mt-3">You will be charged ${{ $productList->product_value }} every
@@ -194,7 +195,18 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.0.1/js/toastr.js"></script>
<script>
document.getElementById('subscribe').addEventListener('submit', function() {
// Show the loading message
// document.getElementById('loadingMessage').style.display = 'block';
// Disable the submit button to prevent multiple submissions
document.querySelector('.subscribe-button').disabled = true;
// Optionally, change the button text to indicate loading
document.querySelector('.subscribe-button').innerText = 'Please wait...';
});
</script>
<script type="module">
import {
Tablist

View File

@@ -17,7 +17,7 @@ use Illuminate\Support\Facades\Route;
Route::post('/v1/stripe-webhook', [StripeWebhookController::class, 'handleWebhook']);
Route::post('/v1/stripe/webhook', [StripeWebhookController::class, 'getWebhook']);
// Route::post('/v1/stripe/webhook', [StripeWebhookController::class, 'getWebhook']);