Skip to content

Commit

Permalink
Delay removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiitu committed Feb 15, 2024
1 parent 0f5aaaa commit c115fe2
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions quotes.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ <h1 class="display-4 text-white animated zoomIn">Ask Query</h1>
<div class="container-fluid py-5 wow fadeInUp" data-wow-delay="0.1s">
<div class="container py-5">
<div class="section-title text-center position-relative pb-3 mb-5 mx-auto" style="max-width: 600px;">
<h5 class="fw-bold text-primary text-uppercase">Ask Query</h5>
<!-- <h5 class="fw-bold text-primary text-uppercase">Ask Query</h5> -->
<h1 class="mb-0">If You Have Any Query, Feel Free To Fill The Form</h1>
</div>
<div class="row g-5 mb-5">
Expand Down Expand Up @@ -396,10 +396,11 @@ <h3>Relevant document upload</h3>
</div>

<div class="form-group">
<a href="index.html"><button type="submit">Submit</button></a>
<button type="submit"><a href="thankyou.html">Submit</a></button>
</div>
</form>
</div>

<!-- <div class="col-lg-4">
<div class="d-flex align-items-center wow fadeIn" data-wow-delay="0.4s">
<div class="bg-primary d-flex align-items-center justify-content-center rounded" style="width: 60px; height: 60px;">
Expand Down Expand Up @@ -594,6 +595,7 @@ <h3 class="text-light mb-0">Popular Links</h3>
<a href="#" class="btn btn-lg btn-primary btn-lg-square rounded back-to-top"><i class="bi bi-arrow-up"></i></a>

<script>

var coll = document.getElementsByClassName("collapsible");
var i;

Expand Down Expand Up @@ -627,7 +629,26 @@ <h3 class="text-light mb-0">Popular Links</h3>
// Handle error if needed
});
});

document.addEventListener('DOMContentLoaded', function () {
var form = document.getElementById('ai-solutions-form');
var loader = document.getElementById('loader');

form.addEventListener('submit', function (e) {
e.preventDefault(); // Prevent the form from submitting immediately

// Show loader
loader.style.display = 'block';

// Simulate a delay of 2 seconds (adjust as needed)
setTimeout(function () {
// Hide loader
loader.style.display = 'none';

// Proceed with form submission
form.submit();
}, 2000);
});
});
</script>
<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
Expand Down

0 comments on commit c115fe2

Please sign in to comment.