finance form template displayed
This commit is contained in:
@@ -16,16 +16,48 @@
|
||||
<!-- Car Loan Calculator Form -->
|
||||
<section class="max-w-7xl mx-auto">
|
||||
|
||||
<div class="py-8 flex items-center justify-center">
|
||||
<div class="px-4 py-8">
|
||||
<div>
|
||||
<p style="width: 260px"><a href="http://www.carpaymentcalcualtor.net"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/logos/rogers-motors-logo.png" alt="Rogers Motors Full Logo" /></a></p>
|
||||
<p style="width: 260px"><iframe src="https://www.carpaymentcalculator.net/free-tools/calc.php" frameborder="0" height="350px" scrolling="no"></iframe></p>
|
||||
<p>
|
||||
<font size="1">Powered by <a href="https://www.carpaymentcalculator.net/free-tools/">Free Auto Calculator</a></font>
|
||||
</p>
|
||||
<p style="width: 300px"><a href="http://www.carpaymentcalcualtor.net"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/logos/rogers-motors-logo.png" alt="Rogers Motors Full Logo" /></a></p>
|
||||
<div id="appointment-body"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<style>
|
||||
button#next-step,
|
||||
[data-tab] {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const appointmentForm = new AppointmentForm();
|
||||
if (appointmentForm) {
|
||||
const financeForm = new FinanceForm({}, appointmentForm, () => {});
|
||||
const appointmentBody = document.querySelector('#appointment-body');
|
||||
let userForm = financeForm.initForm();
|
||||
|
||||
const elementsToRemove = userForm.querySelectorAll('.finance-view-only');
|
||||
elementsToRemove.forEach(element => {
|
||||
element.remove();
|
||||
});
|
||||
|
||||
appointmentBody.appendChild(userForm);
|
||||
|
||||
|
||||
financeForm.updateView();
|
||||
const advertisePriceInput = document.getElementById('advertise_price');
|
||||
advertisePriceInput.value = 2500;
|
||||
advertisePriceInput.dispatchEvent(new Event('input', {
|
||||
bubbles: true
|
||||
}));
|
||||
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user