$(window).on('load', function () { setTimeout(function () { $('#PopUp').modal('show'); }, 3000); }); $("select").html(` Country Code India (+91) Australia (+61) Bahrain (+973) Canada (+1) Hong Kong (+852) Qatar (+974) Saudi Arabia (+966) Singapore (+65) South Africa (+27) United Arab Emirates (+971) USA (+1) UK (+44) Afghanistan (+93) Albania (+355) Algeria (+213) American Samoa (+1-684) Andorra (+376) Angola (+244) Anguilla (+1-264) Antarctica (+672) Antigua and Barbuda (+1-268) Argentina (+54) Armenia (+374) Aruba (+297) Austria (+43) Azerbaijan (+994) Bahamas (+1-242) Bangladesh (+880) Barbados (+1-246) Belarus (+375) Belgium (+32) Belize (+501) Benin (+229) Bermuda (+1-441) Bhutan (+975) Bolivia (+591) Bosnia and Herzegowina (+387) Botswana (+267) Bouvet Island (+47) Brazil (+55) British Indian Ocean Territory (+246) Brunei Darussalam (+673) Bulgaria (+359) Burkina Faso (+226) Burundi (+257) Cambodia (+855) Cameroon (+237) Cape Verde (+238) Cayman Islands (+1-345) Central African Republic (+236) Chad (+235) Chile (+56) China (+86) Christmas Island (+61) Cocos (Keeling) Islands (+61) Colombia (+57) Comoros (+269) Congo Democratic Republic of (+242) Cook Islands (+682) Costa Rica (+506) Cote D'Ivoire (+225) Croatia (+385) Cuba (+53) Cyprus (+357) Czech Republic (+420) Denmark (+45) Djibouti (+253) Dominica (+1-767) Dominican Republic (+1-809) Timor-Leste (+670) Ecuador (+593) Egypt (+20) El Salvador (+503) Equatorial Guinea (+240) Eritrea (+291) Estonia (+372) Ethiopia (+251) Falkland Islands (Malvinas) (+500) Faroe Islands (+298) Fiji (+679) Finland (+358) France (+33) French Guiana (+594) French Polynesia (+689) French Southern Territories (+) Gabon (+241) Gambia (+220) Georgia (+995) Germany (+49) Ghana (+233) Gibraltar (+350) Greece (+30) Greenland (+299) Grenada (+1-473) Guadeloupe (+590) Guam (+1-671) Guatemala (+502) Guinea (+224) Guinea-bissau (+245) Guyana (+592) Haiti (+509) Heard Island and McDonald Islands (+011) Honduras (+504) Hungary (+36) Iceland (+354) Indonesia (+62) Iran (Islamic Republic of) (+98) Iraq (+964) Ireland (+353) Israel (+972) Italy (+39) Jamaica (+1-876) Japan (+81) Jordan (+962) Kazakhstan (+7) Kenya (+254) Kiribati (+686) Korea, Democratic People's Republic of (+850) South Korea (+82) Kuwait (+965) Kyrgyzstan (+996) Lao People's Democratic Republic (+856) Latvia (+371) Lebanon (+961) Lesotho (+266) Liberia (+231) Libya (+218) Liechtenstein (+423) Lithuania (+370) Luxembourg (+352) Macao (+853) Macedonia, The Former Yugoslav Republic of (+389) Madagascar (+261) Malawi (+265) Malaysia (+60) Maldives (+960) Mali (+223) Malta (+356) Marshall Islands (+692) Martinique (+596) Mauritania (+222) Mauritius (+230) Mayotte (+262) Mexico (+52) Micronesia, Federated States of (+691) Moldova (+373) Monaco (+377) Mongolia (+976) Montserrat (+1-664) Morocco (+212) Mozambique (+258) Myanmar (+95) Namibia (+264) Nauru (+674) Nepal (+977) Netherlands (+31) Netherlands Antilles (+599) New Caledonia (+687 ) New Zealand (+64) Nicaragua (+505) Niger (+227) Nigeria (+234) Niue (+683) Norfolk Island (+672) Northern Mariana Islands (+1-670) Norway (+47) Oman (+968) Pakistan (+92) Palau (+680) Panama (+507) Papua New Guinea (+675) Paraguay (+595) Peru (+51) Philippines (+63) Pitcairn (+64) Poland (+48) Portugal (+351) Puerto Rico (+1-787) Reunion (+262) Romania (+40) Russian Federation (+7) Rwanda (+250) Saint Kitts and Nevis (+1-869) Saint Lucia (+1-758) Saint Vincent and the Grenadines (+1-784) Samoa (+685) San Marino (+378) Sao Tome and Principe (+239) Senegal (+221) Seychelles (+248) Sierra Leone (+232) Slovakia (Slovak Republic) (+421) Slovenia (+386) Solomon Islands (+677) Somalia (+252) South Georgia and the South Sandwich Islands (+500) Spain (+34) Sri Lanka (+94) Saint Helena, Ascension and Tristan da Cunha (+290) St. Pierre and Miquelon (+508) Sudan (+249) Suriname (+597) Svalbard and Jan Mayen Islands (+47) Swaziland (+268) Sweden (+46) Switzerland (+41) Syrian Arab Republic (+963) Taiwan (+886) Tajikistan (+992) Tanzania, United Republic of (+255) Thailand (+66) Togo (+228) Tokelau (+690) Tonga (+676) Trinidad and Tobago (+1-868) Tunisia (+216) Turkey (+90) Turkmenistan (+993) Turks and Caicos Islands (+1-649) Tuvalu (+688) Uganda (+256) Ukraine (+380) United Kingdom (+44) United States (+1) United States Minor Outlying Islands (+246) Uruguay (+598) Uzbekistan (+998) Vanuatu (+678) Vatican City State (Holy See) (+379) Venezuela (+58) Vietnam (+84) Virgin Islands (British) (+1-284) Virgin Islands (U.S.) (+1-340) Wallis and Futuna Islands (+681) Western Sahara (+212) Yemen (+967) Serbia (+381) Zambia (+260) Zimbabwe (+263) Aaland Islands (+358) Palestine (+970) Montenegro (+382) Guernsey (+44-1481) Isle of Man (+44-1624) Jersey (+44-1534) Curaçao (+599) Ivory Coast (+225) Kosovo (+383) `) 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)