| Server IP : 94.136.191.34 / Your IP : 216.73.216.25 Web Server : Apache System : Linux hostpanel.netbiz.in 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64 User : omkar.com_6nnuz6y629h ( 10087) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/omkar.com/httpdocs/assets/js/ |
Upload File : |
function verify_otp1(e) {
var a = $("#match_otp").val();
$.ajax({
type: "POST",
url: base_url + "home/match",
data: { otp1: e, otp_hidden1: a },
async: !1,
success: function (e) {
var a;
"match" == e
? ((a = $("#enquiry_id").val()),
(e = $("#tbl_project").val()),
$.ajax({
type: "POST",
url: base_url + "home/update_contact_otp",
data: { id: a, tbl_project: e },
success: function (e) {
var a,
r = $("#form_id").val();
"1" == r
? (window.location.href = base_url + "home/thank_you/contact-us/")
: "2" == r
? ((a = $("#project_type_redirect").val()), (window.location.href = base_url + "home/" + a))
: "3" == r
? (window.location.href = base_url + "home/thank_you/vendor")
: "4" == r
? ((a = $("#project_type_redirect").val()), (window.location.href = base_url + a))
: "5" == r
? (window.location.href = base_url + "home/thank_you/channel-partner")
: "6" == r || "7" == r
? (window.location.href = base_url + "home/thank_you/enquiry")
: "8" == r
? ((a = $("#broucher_name").val()), (window.location.href = base_url + "home/download_broucher_project/" + a))
: "9" == r
? form.submit()
: "10" == r && (window.location.href = base_url + "home/thank_you/whatsapp");
},
}))
: alert("OTP does not match");
},
failure: function (e) {
alert("Fail to send OTP");
},
});
}
function resend_otp1(e, a, r) {
$.ajax({
type: "POST",
url: base_url + "home/resend",
data: { resend_otp_hidden1: a, mob1: r },
async: !1,
success: function (e) {},
failure: function (e) {
alert("Fail to send OTP");
},
});
}
$(".dsk-whatsapp-msg").hide(),
$.validator.addMethod(
"mobile",
function (e, a) {
return this.optional(a) || e.match(/^[7-9][0-9]{9}$/);
},
"Please enter valid mobile number"
),
$.validator.addMethod(
"alphabets",
function (e, a) {
return this.optional(a) || /^[a-zA-Z ]*$/.test(e);
},
"Please enter Alphabets only"
),
$.validator.addMethod(
"email",
function (e, a) {
return this.optional(a) || /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e);
},
"Please enter a valid email address."
),
$.validator.addMethod(
"intlTelNumber",
function (e, a) {
return this.optional(a) || $(a).intlTelInput("isValidNumber");
},
"Please enter a valid mobile number"
),
$.validator.addMethod(
"alpha_num",
function (e, a) {
return this.optional(a) || /^[a-zA-Z 0-9]*$/.test(e);
},
"Please enter Alpha numuric only"
),
$.validator.addMethod(
"numuric",
function (e, a) {
return this.optional(a) || /^[0-9 ]*$/.test(e);
},
"Please enter Alpha numuric only"
),
$.validator.addMethod(
"designation",
function (e, a) {
return this.optional(a) || /^[a-zA-Z -.]*$/.test(e);
},
"Please enter Alphabets with - and . only"
),
$.validator.addMethod(
"chekmultiple",
function (e, a) {
return !!$(this).find('input[name="area[]"]:checked').length || (alert("You must check at least one box!"), !1);
},
"Please enter Alphabets with - and . only"
),
$("#btnOtpsubmit").click(function () {
verify_otp1($("#filled_otp").val());
}),
$("#btnReset").click(function () {
$("#filled_otp").val(), $("#match_otp").val(), $("#user_mobile").val();
}),
$("#propertyFinder").validate({
rules: { category: { required: !0 }, loc: { required: !0 }, find: { required: !0 } },
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e) {
window.location = $("#find").val();
},
}),
$(document).on("click", ".omkar-close", function () {
$(".home-roadblock").fadeOut(500), $.ajax({ url: base_url + "home/set_roadblock_cookie", type: "POST", success: function (e) {}, error: function (e, a, r) {} });
});
var is_cookie_set = $("#road_block_value").val();
function send_otp(e, a, r) {
$.ajax({
type: "POST",
url: BASE_URL + "home/send_otp_message/",
data: { mob1: e },
async: !1,
success: function (e) {
$("#channel_partner_form #match_otp").val(e);
},
failure: function (e) {
alert("Fail to send OTP");
},
});
}
$("#visitor_mobile").keyup(function () {
0 == $("#visitor_mobile").val().length &&
setTimeout(function () {
$("#visitor_mobile").val("+");
}, 200),
$("#visitor_mobile").val().indexOf("+") <= -1 && $("#visitor_mobile").val("+" + $("#visitor_mobile").val());
}),
$("#contact_us").validate({
rules: { name: { required: !0, alphabets: !0, minlength: 3, maxlength: 100 }, email_id: { required: !0, email: !0 }, phone: { required: !0, intlTelNumber: !0 }, location: { required: !0 }, captcha: { required: !0 } },
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e, a) {
a.preventDefault();
var captchaValue = $("#captcha").val();
var codeValue = $("#code").val();
if (captchaValue !== codeValue) {
alert("Captcha does not match. Please try again.");
return false; // Stop form submission
}
$(".sub-btn").attr("disabled", "disabled"),
$("body").addClass("showloader"),
$("#contact_no").val(),
$.ajax({
url: base_url + "home/contact_enquiry",
type: "POST",
data: { name: $("#name").val(), email_id: $("#email_id").val(), phone: $("#contact_no").val(), location: $("#location").val(), comments: $("#comments").val() },
beforeSend: function () {
$(".loader").show();
},
success: function (e) {
$("#enquiry_id").val(e), $("#tbl_project").val("contact_enquiries"), $("body").addClass("hideloader"), (window.location.href = base_url + "home/thank_you"), $("#message_for_applicant").html("Successfully submitted");
},
error: function (e, a, r) {
$("#message_for_applicant").html("Some error occured"), $("#message_for_applicant").addClass("error_msg");
},
complete: function () {
$(".loader").hide();
},
});
},
}),
$("#resi_comm_upcoming_prjct_form").validate({
rules: { name: { required: !0, alphabets: !0, minlength: 3, maxlength: 100 }, email_id: { required: !0, email: !0 }, phone: { required: !0, intlTelNumber: !0 }, city: { required: !0 }, selected_project: { required: !0 } },
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e, a) {
a.preventDefault(),
$(".btn-primary").attr("disabled", "disabled"),
$("body").addClass("showloader"),
$("#phone").val(),
$.ajax({
url: base_url + "home/save_upcoming_project_form",
type: "POST",
data: { name: $("#name").val(), email_id: $("#email_id").val(), phone: $("#phone").val(), city: $("#city").val(), selected_project: $("#selected_project").val(), project_type: $("#project_type").val() },
beforeSend: function () {
$(".loader").show();
},
success: function (e) {
e = $.parseJSON(e);
$("#enquiry_id").val(e.id), $("#project_type_redirect").val(e.redirect_path), $("#tbl_project").val("saved_upcoming_project_form");
},
error: function (e, a, r) {
$("#message_for_applicant").html("Some error occured"), $("#message_for_applicant").addClass("error_msg");
},
complete: function () {
$(".loader").hide();
},
});
},
}),
$("#vendor_form").validate({
rules: {
name: { required: !0, alphabets: !0, minlength: 3, maxlength: 100 },
phone: { required: !0, intlTelNumber: !0 },
company_name: { required: !0 },
company_profile: { required: !0, accept: "application/pdf,application/msword,application/vnd.ms-powerpoint" },
category: { required: !0 },
},
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e, a) {
$("#vendor_form .sub-btn").attr("disabled", "disabled"), $("body").addClass("showloader"), e.submit();
},
}),
$(document).on("change", "#category", function () {
var e = $(this).val();
"" != e &&
$.ajax({
url: base_url + "home/get_location_on_property_type",
type: "POST",
data: { property_type: e },
success: function (e) {
"" != e && $("#loc").html(e);
},
error: function (e, a, r) {},
});
}),
$(document).on("change", "#loc", function () {
"" != $(this).val() &&
$.ajax({
url: base_url + "home/get_property_on_property_location",
type: "POST",
data: { property_loc: $(this).val() },
success: function (e) {
"" != e && $("#find").html(e);
},
error: function (e, a, r) {},
});
}),
$("#prop-finder").validate({
rules: { category: { required: !0 }, loc: { required: !0 }, find: { required: !0 } },
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e) {
var a = $("#prop-finder #find").val();
return window.open(a, "_blank"), !1;
},
}),
$("#project_details_enquire").validate({
rules: { name: { required: !0, alphabets: !0, maxlength: 100, minlength: 3 }, email: { required: !0, email: !0 }, phone: { required: !0, intlTelNumber: !0 } },
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e, a) {
a.preventDefault(),
$("#project_details_submit").attr("disabled", "disabled"),
$("body").addClass("showloader"),
$("#phone").val(),
$.ajax({
url: base_url + "home/project_enquiry",
type: "POST",
data: { name: $("#project_details_enquire #name").val(), email: $("#project_details_enquire #email").val(), phone: $("#project_details_enquire #phone").val(), project_interested: $("#project_interested").val() },
beforeSend: function () {
$(".loader").show();
},
success: function (e) {
(window.location.href = base_url + "home/thank_you/project-details"), $("#project_details_enquire")[0].reset();
},
error: function (e, a, r) {
$("#message_for_applicant").html("Some error occured"), $("#message_for_applicant").addClass("error_msg");
},
complete: function () {
$(".loader").hide();
},
});
},
}),
$.validator.addMethod(
"filesize",
function (e, a, r) {
return this.optional(a) || a.files[0].size <= r;
},
"File size must be less than {0}"
),
$("#channel_partner_form").validate({
rules: {
name: { required: !0, alphabets: !0, maxlength: 100, minlength: 3 },
owner_name: { required: !0, alphabets: !0, minlength: 3 },
entity: { required: !0 },
office_address: { required: !0 },
email_id: { required: !0, email: !0 },
phoneno: { required: !0 },
website: { required: !0 },
pan_card_no: { required: !0, alpha_num: !0 },
tax_no: { alpha_num: !0 },
tin_no: { numuric: !0 },
broker_asso: { required: !0 },
"area[]": { required: !0 },
"expertise[]": { required: !0 },
"interested_in[]": { required: !0 },
authorised_signatories: { required: !0 },
authorised_signatories_name1: { required: !0, alphabets: !0 },
authorised_signatories_designation1: { required: !0, designation: !0 },
authorised_signatories_name2: { alphabets: !0 },
authorised_signatories_designation2: { designation: !0 },
years_in_operation: { required: !0 },
agree: { required: !0 },
pan_card: { required: !0, accept: "image/jpg,image/jpeg,image/png", filesize: 2e6 },
adhar_card: { required: !0, accept: "image/jpg,image/jpeg,image/png", filesize: 2e6 },
},
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e, a) {
return $("body").addClass("showloader"), $("#submitButton").attr("disabled", "disabled"), message_for_applicant("submitted Successfully"), !0;
},
}),
$(document).on("click", "#resend", function () {
$("#otp_authentication #span_otperror").html("New OTP has been send."),
$("#otp_authentication #span_otperror").show(),
$("#otp_authentication #lblotp").val(),
$("#channel_partner_form #match_otp").val(),
$("#channel_partner_form #phoneno").val();
}),
$("#nri-prop-finder").validate({
rules: { nri_full_name: { required: !0 }, nri_email: { required: !0, email: !0 }, nri_phone: { required: !0, intlTelNumber: !0 } },
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e) {
$(':input[type="submit"]').prop("disabled", !0),
$.ajax({
url: base_url + "home/save_nri_details",
type: "POST",
data: { country: $("#hdn_country").val(), dialcode: $("#hdn_dialcode").val(), full_name: $("#nri_full_name").val(), nri_email: $("#nri_email").val(), phone: $("#nri_phone").val(), location: $("#nri_loc").val() },
success: function (e) {
console.log(e),
$("#nri_full_name").val(""),
$("#nri_email").val(""),
$("#nri_phone").val(""),
$("#nri_loc").val(""),
$("option:selected").prop("selected", !1),
(window.location.href = base_url + "home/thank_you/nri"),
$(".nri-error-success").html("Thank you for enquiring with us."),
$(':input[type="submit"]').prop("disabled", !1);
},
error: function (e, a, r) {
$("#message_for_applicant").html("Some error occured"), $("#message_for_applicant").addClass("error_msg");
},
});
},
}),
$("#cplist_form").validate({
rules: { email_cplist: { required: !0, email: !0 }, sel_pro: { required: !0 } },
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e) {
$.ajax({
url: base_url + "home/check_cplist",
type: "POST",
data: { email: $("#email_cplist").val(), project: $("#sel_pro").val() },
success: function (e) {
var a = $("#sel_pro").val();
"success" == e
? ((a =
"Omkar Alta Monte" == a
? "altamonte.pdf"
: "Omkar Meridia" == a
? "meredia.pdf"
: "Omkar Vive" == a
? "Vive.pdf"
: "TSBB The Summit" == a
? "TSBB.pdf"
: "Omkar Lawns and Beyond" == a
? "LandB.pdf"
: "Omkar Trilliant" == a
? "Trilliant.pdf"
: ""),
$("#email_cplist").val(""),
$("option:selected").prop("selected", !1),
(window.location.href = base_url + "home/download_cpkit/" + a),
$("#cpkit-popup-m").hide(),
$(".cp_page").removeClass("modal-open"),
$(".fade.in").css("opacity", "0"))
: ($("#email_cplist").addClass("error"), $(".invalid_cplist").addClass("error"), $(".invalid_cplist").html("Email ID not Registered with us"));
},
error: function (e, a, r) {
$("#message_for_applicant").html("Some error occured"), $("#message_for_applicant").addClass("error_msg");
},
});
},
}),
$("#omka-roadblock").validate({
rules: { roadblock_name: { required: !0, alphabets: !0, minlength: 3, maxlength: 100 }, roadblock_email: { required: !0, email: !0 }, roadblock_phone: { required: !0, intlTelNumber: !0 } },
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e) {
$("#omka-roadblock .cls").prop("disabled", !0),
$("#omka-roadblock .btn").attr("disabled", "disabled"),
$("body").addClass("showloader"),
$.ajax({
url: base_url + "home/project_enquiry",
type: "POST",
data: { name: $("#roadblock_name").val(), email: $("#roadblock_email").val(), phone: $("#roadblock_phone").val(), project_interested: $("#roadblock_project_interested").val(), message: "", type: "2" },
beforeSend: function () {
$(".loader").show();
},
success: function (e) {
e = $.parseJSON(e);
$("#roadblock_phone").val(),
$("#enquiry_id").val(e.id),
$("#tbl_project").val("project_contact_enquiry"),
$("input[type=text]").val(""),
$("input[type=email]").val(""),
$("#applicant_address").val(""),
$("input[type=phone]").val(""),
$("#comments").val(""),
$(".omkar-close").trigger("click");
},
error: function (e, a, r) {
$("#message_for_applicant").html("Some error occured"), $("#message_for_applicant").addClass("error_msg");
},
complete: function () {
$(".loader").hide();
},
});
},
}),
$("#top_form").validate({
rules: {
top_name: { required: !0, alphabets: !0, minlength: 3, maxlength: 100 },
top_email_id: { required: !0, email: !0 },
phone: { required: !0, intlTelNumber: !0 },
top_project_name: { required: !0 },
top_message: { required: !0 },
captcha1: { required: !0 }
},
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e, a) {
a.preventDefault();
var captchaValue = $("#captcha1").val();
var codeValue = $("#code1").val();
if (captchaValue !== codeValue) {
alert("Captcha does not match. Please try again.");
return false; // Stop form submission
}
$("#btn_submit").attr("disabled", "disabled"),
$("body").addClass("showloader"),
$.ajax({
url: base_url + "home/project_enquiry",
type: "POST",
beforeSend: function () {
$(".loader").show();
},
data: { name: $("#top_name").val(), email: $("#top_email_id").val(), phone: $("#top_contact_no").val(), project_interested: $("#top_project_name").val(), message: $("#top_message").val(), type: "2" },
success: function (e) {
e = $.parseJSON(e);
$("#top_contact_no").val(),
$("#enquiry_id").val(e.id),
$("#tbl_project").val("project_contact_enquiry"),
$(".fancybox-close").click(),
$("#message_for_applicant").html("Thank you for contacting us. Our team will get back to you."),
$("input[type=text]").val(""),
$("input[type=email]").val(""),
$("#applicant_address").val(""),
$("input[type=phone]").val(""),
$("#comments").val("");
},
error: function (e, a, r) {
$("#message_for_applicant").html("Some error occured"), $("#message_for_applicant").addClass("error_msg");
},
complete: function () {
$(".loader").hide();
},
});
},
}),
$("#top_form_broucher").validate({
rules: { br_top_name: { required: !0, alphabets: !0, minlength: 3, maxlength: 100 }, br_top_email_id: { required: !0, email: !0 }, phone: { required: !0, intlTelNumber: !0 }, br_top_message: { required: !0 } },
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e) {
$("#top_form_broucher #btn_broucher").attr("disabled", "disabled"),
$("body").addClass("showloader"),
$.ajax({
url: base_url + "home/project_enquiry",
type: "POST",
data: { name: $("#br_top_name").val(), email: $("#br_top_email_id").val(), phone: $("#br_top_contact_no").val(), project_interested: $("#current_project_name").val(), message: $("#br_top_message").val(), type: "2" },
beforeSend: function () {
$(".loader").show();
},
success: function (e) {
e = $.parseJSON(e);
$("#br_top_contact_no").val(),
$("#enquiry_id").val(e.id),
$("#tbl_project").val("project_contact_enquiry"),
$(".fancybox-close").click(),
$("#message_for_applicant").html("Submitted Successfully"),
$("input[type=text]").val(""),
$("input[type=email]").val(""),
$("#applicant_address").val(""),
$("input[type=phone]").val(""),
$("#comments").val(""),
$(".fancybox-close").trigger("click");
},
error: function (e, a, r) {
$("#message_for_applicant").html("Some error occured"), $("#message_for_applicant").addClass("error_msg");
},
complete: function () {
$(".loader").hide();
},
});
},
}),
$("#mbassy_form").validate({
rules: {
name: { required: !0, alphabets: !0, maxlength: 100, minlength: 3 },
residential_address_zone: { required: !0 },
residential_address: { required: !0 },
project_name: { required: !0 },
phone1: { required: !0, mobile: !0 },
flat_no: { required: !0 },
alternate_no: { mobile: !0 },
wing_no: { required: !0 },
email: { required: !0, email: !0 },
ref_name1: { required: !0, alphabets: !0, maxlength: 100, minlength: 3 },
ref_phone1: { required: !0, mobile: !0 },
ref_email1: { required: !0, email: !0 },
},
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e) {
$("#project_details_submit").attr("disabled", "disabled"), $("body").addClass("showloader"), e.submit();
},
}),
$("#whats-app").validate({
rules: { whatsapp_name: { required: !0, alphabets: !0, maxlength: 100, minlength: 3 }, whatsapp_phone: { required: !0, mobile: !0 } },
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e) {
$("#dsk-whatsapp-btn").attr("disabled", "disabled"),
$("body").addClass("showloader"),
$.ajax({
url: base_url + "home/whatsapp_enquiry",
type: "POST",
data: { name: $("#whatsapp_name").val(), mobile_no: $("#whatsapp_phone").val(), country: $("#hdn_country_whats").val(), dialcode: $("#hdn_dialcode_whats").val() },
beforeSend: function () {
$(".loader").show();
},
success: function (e) {
$("#whatsapp_phone").val(), $("#enquiry_id").val(e), $("#tbl_project").val("whatsapp_enquiries"), $(".fancybox-close").click(), (window.location.href = base_url + "home/thank_you/whatsapp");
},
error: function (e, a, r) {
alert("Some error occurred");
},
complete: function () {
$(".loader").hide();
},
});
},
}),
$("#pln-enquiry").validate({
rules: { name: { required: !0, alphabets: !0 }, email: { required: !0, email: !0 }, mobile: { numuric: !0, required: !0 }, configuration: { alpha_num: !0, maxlength: 100 } },
onkeyup: !1,
errorPlacement: function (e, a) {},
submitHandler: function (e) {
var a = $("#phone").val(),
r = $("#name").val(),
t = $("#email").val(),
o = $("#configuration").val(),
n = $("#layout").val(),
i = $("#brochure").val();
$.ajax({
url: base_url + "home/floor_plan_enquiry",
type: "POST",
data: { name: r, email: t, mobile: a, configuration: o, layout: n },
success: function (e) {
window.open(base_url + "uploads/brochures/" + i, "_blank"), window.location.reload();
},
error: function (e, a, r) {
return alert(a), !1;
},
});
},
});