File: /home/r10qwwhj45te/public_html/alphaindiainternational.com/app_bottom.php
<?php include "app_modal.php" ?>
<script>
const BASE_URL = '<?= site_url; ?>';
</script>
<script src="<?= theme_url ?>js/bootstrap.min.js"></script>
<script src="<?= theme_url ?>js/wow.min.js"></script>
<script src="<?= theme_url ?>js/swiper.min.js"></script>
<script src="<?= theme_url ?>js/jquery-fancybox.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/js/intlTelInput-jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/odometer.js/0.4.8/odometer.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.9.0/jquery.validate.min.js"></script>
<script src="<?= theme_url ?>js/themes.js"></script>
<script src="<?= theme_url ?>js/custom.js"></script>
<button class="scrollToTop" id="scrollTopBtn"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M6 15l6 -6l6 6" />
</svg></button>
<button data-bs-target="#whatsappEnquiry" data-bs-toggle="modal" class="whatapp_btn" title="Whatsapp Now">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path
d="M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z">
</path>
</svg>
</button>
<button class="business-enq" data-bs-toggle="modal" data-bs-target="#sendEnquiry">
<span class="icon"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-chat-square-text" viewBox="0 0 16 16">
<path
d="M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-2.5a2 2 0 0 0-1.6.8L8 14.333 6.1 11.8a2 2 0 0 0-1.6-.8H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2.5a1 1 0 0 1 .8.4l1.9 2.533a1 1 0 0 0 1.6 0l1.9-2.533a1 1 0 0 1 .8-.4H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z">
</path>
<path
d="M3 3.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5M3 6a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9A.5.5 0 0 1 3 6m0 2.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5">
</path>
</svg></span>
Send Enquiry
</button>
<script>
const scrollBtn = document.getElementById("scrollTopBtn");
window.addEventListener("scroll", () => {
scrollBtn.classList.toggle("show", window.scrollY >= 100);
});
scrollBtn.addEventListener("click", () => {
window.scrollTo({
top: 0,
behavior: "smooth"
});
});
$(".telePhone").intlTelInput({
preferredCountries: ["in", "us"],
initialCountry: "in",
separateDialCode: true,
});
$('.iti__country-list li').click(function () {
$("#code").val($(this).data('dial-code'));
$(".mobile").val($(this).data('country-code-code'));
$('#countryName').val($(".iti__country-name", this).text());
$(".code").val($(this).data('dial-code'));
$('.countryName').val($(".iti__country-name", this).text());
})
</script>
<script>
document.addEventListener("DOMContentLoaded", function () {
const modalTargets = ['#productEnquiry', '#sendEnquiry', '#callEnquiry', '#whatsappEnquiry'];
const defaultCatName = '<?php echo isset($cat_res["product_title"]) ? addslashes($cat_res["product_title"]) : ""; ?>';
const defaultCatImage = '<?php echo isset($cat_res["catImage"]) && $cat_res["catImage"] != ""
? addslashes($imglink)
: ""; ?> ';
modalTargets.forEach(target => {
document.querySelectorAll(`[data-bs-target="${target}"]`).forEach(btn => {
btn.addEventListener('click', function () {
const catName = this.getAttribute('data-cat-name') || defaultCatName;
const catImage = this.getAttribute('data-cat-image') || defaultCatImage;
getCatDetails(catName, catImage, target);
});
});
});
modalTargets.forEach(target => {
getCatDetails(defaultCatName, defaultCatImage, target);
});
});
function getCatDetails(catName = '', catImage = '', modalTarget = '') {
const modal = document.querySelector(modalTarget);
if (!modal) return;
const finalCatName = catName && catName.trim() !== '' ? catName.trim() : '';
const finalCatImage = catImage && catImage.trim() !== '' ? catImage.trim() : '';
modal.querySelectorAll('#cat_name').forEach(el => {
el.value = finalCatName;
});
modal.querySelectorAll('.respImg').forEach(img => {
if (finalCatImage) {
img.src = finalCatImage;
img.alt = finalCatName || 'Category Image';
img.title = finalCatName || 'Category';
} else {
img.removeAttribute('src');
// img.removeAttribute('alt');
// img.removeAttribute('title');
}
});
modal.querySelectorAll('.catName').forEach(el => {
el.textContent = finalCatName;
});
}
</script>