$(window).on('load', function () { setTimeout(function () { $('#PopUp').modal('show'); }, 3000); }); $("select").html(` `) var id; $('[data-target][data-toggle=modal]').on('click', function () { id = $(this).attr('data-target'); Title = { 'Homemeeting': "Put your interests in action, get all the details right now.", 'DownloadBrochure': "Mention your whatsapp number to receive Brochure on whatsapp", 'PriceSection': "Get explicit details about the pricing and on spot offers", 'FloorPlan': "You are trying to download a big file, get it on Whatsapp", 'Location': "Due to huge rush at site we would request you to book your sitevisit in advance", 'Gallery': "Inside features of the project at a glance", 'video_call': 'Virtual Zoom Meetings - With The Experts', 'default': "PLEASE SHARE YOUR DETAILS. OUR SALES EXPERT WILL CALL YOU SHORTLY" } $('.modal.form h4').text(Title[id]) $('.modal.form').attr('id', id).modal('show'); }); var projectId; var RegNo; var city; var is_magnet = 0; var magnet_id; var magnet_number; let apiDataGet = async () => { let data = getProjectData(1075).then((data) => { phone_no = data.result.magnet_id? data.result.magnet_number:data.result.phone; whatsapp_url = data.result.wp_links_sms; whatsapp_url = whatsapp_url.split("="); whatsapp_url[1]= data.result.magnet_id?("+91"+data.result.magnet_number+"&text"):whatsapp_url[1]; whatsapp_url[2] = "I want to know more about " + whatsapp_url[2]; whatsapp_url = whatsapp_url.join("="); projectId = data.result.Project.p_id; city = data.result.Project.Region.city; is_magnet = data.result.is_magnet; magnet_id = data.result.magnet_id ? data.result.magnet_id : null; RegNo = data.result.Project.Region.region_name; $(".phone_url").attr("href", "tel:" + phone_no + ""); $(".whatsapp_url").attr("href", whatsapp_url + "."); $(".phone_no").html(phone_no); }).catch((error) => { var whatsapp_url = "https://api.whatsapp.com/send?phone=917304412403&text=Hi!" $(".whatsapp_url").attr("href", whatsapp_url); $(".phone_url").attr("href", "tel:" + 917304927701 + ""); $(".phone_no").html("917304927701") }); } apiDataGet(); var param_nationality = 1; $('input[type=checkbox]').on('change', function () { this.value = this.checked ? 1 : 0; }).change(); function OnlyAlphaValidationWithSpace(e) { if (navigator.appName.toLowerCase() == 'netscape') { var key1; var keychar1; key1 = e.which; keychar1 = String.fromCharCode(key1); if ((key1 == null) || (key1 == 0) || (key1 == 8) || (key1 == 9) || (key1 == 27) || (key1 == 46) || (key1 == 22)) { return true; } else if ((("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ").indexOf(keychar1) > -1)) { return true; } else { return false; } } else { key1 = e.keyCode; keychar1 = String.fromCharCode(key1); if ((key1 == null) || (key1 == 0) || (key1 == 8) || (key1 == 9) || (key1 == 27) || (key1 == 46) || (key1 == 22)) { return true; } else if ((("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ").indexOf(keychar1) > -1)) { return true; } else { return false; } } } function OnlyNumberValidationDash(e) { if (navigator.appName.toLowerCase() == 'netscape') { var key1; var keychar1; key1 = e.which; keychar1 = String.fromCharCode(key1); if ((key1 == null) || (key1 == 0) || (key1 == 8) || (key1 == 9) || (key1 == 27) || (key1 == 45)) { return true; } else if ((("0123456789").indexOf(keychar1) > -1)) { return true; } else { return false; } } else { key1 = e.keyCode; keychar1 = String.fromCharCode(key1); if ((key1 == null) || (key1 == 0) || (key1 == 8) || (key1 == 9) || (key1 == 27) || (key1 == 45)) { return true; } else if ((("0123456789").indexOf(keychar1) > -1)) { return true; } else { return false; } } } $('#dropAnEnquiry').on("submit", function () { debugger var name = $('#dropname').val(); var email = null; var number = $('#dropnumber').val(); var country_code = $('#drop_CountryCode').val(); var checkbox = $('#dropAnEnquiry_checkbox').val(); saveLead(name, email, number, country_code, checkbox, 'top_enquire_form'); return !1 }) $('#KnowMoreForm').on("submit", function () { debugger var name = $('#KnowMoreName').val(); var email = null; var number = $('#KnowMoreNumber').val(); var country_code = $('#KnowMore_CountryCode').val(); var checkbox = $('#KnowMore_checkbox').val(); saveLead(name, email, number, country_code, checkbox, id + '_overview_homepage'); return !1 }) $('#PopUpForm').on("submit", function () { debugger; var name = $('#PopUpname').val(); var email = "No email"; var number = $('#PopUpnumber').val(); var country_code = $('#PopUp_CountryCode').val(); var checkbox = $('#PopUp_checkbox').val(); saveLead(name, email, number, country_code, checkbox, 'PopUp_form_overview_homepage'); return !1 }) queryForm(); async function saveLead(name, email, number, country_code, checkbox, pref) { debugger; var getUtmData = queryForm(); var ipAddress = await getIpAddress(); var user_device = deviceData(); var user_browser = browserData(); var obj = {}; obj.name = name; obj.number = number; obj.email = email; obj.country_code = country_code; obj.is_tc_agree = parseInt(checkbox); obj.nationality = param_nationality; obj.source_id = 31; obj.project_id = projectId; if (getUtmData) { obj.Utm = { utm_medium: getUtmData.utmmedium, utm_source: getUtmData.utmsource, utm_content: getUtmData.utmcontent, utm_term: getUtmData.utmterm }; } obj.Digital = { user_device: user_device, user_browser: user_browser, campaing_type: getUtmData ? getUtmData.utmcampaign : null, launch_name: "", client_ipaddress: ipAddress, client_pref: pref } if (is_magnet === 1) { obj.is_magnet = is_magnet; obj.magnet_id = magnet_id; obj.source_id = 49; } else { obj.source_id = 31; } if (pref == 'DownloadBrochure_overview_homepage') { SendLead(obj, "thankyou.html"); } else { SendLead(obj, "thankyou.html"); } } $(".Main").slick({ slidesToShow: 1, slidesToScroll: 1, arrows: !0, centerPadding: "0px", infinite: !0, asNavFor: ".MainNav", prevArrow: '
', nextArrow: '
' }), $(".MainNav").slick({ slidesToShow: 3, slidesToScroll: 1, asNavFor: ".Main", centerPadding: "0px", dots: !1, arrows: !1, centerMode: !0, focusOnSelect: !0 }), function (o) { "use strict"; o(function () { var n = o(".start-style"); o(window).scroll(function () { o(window).scrollTop() >= 10 ? n.removeClass("start-style").addClass("scroll-on") : n.removeClass("scroll-on").addClass("start-style") }) }), o(document).ready(function () { o("body.hero-anime").removeClass("hero-anime") }), o("body").on("mouseenter mouseleave", ".nav-item", function (n) { if (o(window).width() > 750) { var t = o(n.target).closest(".nav-item"); t.addClass("show"), setTimeout(function () { t[t.is(":hover") ? "addClass" : "removeClass"]("show") }, 1) } }), o("#switch").on("click", function () { o("body").hasClass("dark") ? (o("body").removeClass("dark"), o("#switch").removeClass("switched")) : (o("body").addClass("dark"), o("#switch").addClass("switched")) }) }(jQuery)