%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
/*** * Javascript For All Maxwell Pages * * This script is intended to provide all client side functionality * required for Maxwell Biotech Project * * Author : Amit Verma * Created : 25 Aug, 2021 */ Maxwell_CommonFunction = new function () { /* * onclick : contact-request */ $(".contact-request").on("click", function () { // Custom Values var name = $("#full_name").val(); var email = $("#email_id").val(); var mobile = $("#mobile_no").val(); var remarks = $("#remarks").val(); var emailReg = /^[a-z0-9]+([-._][a-z0-9]+)*@([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,4}$/; $("#email_msg").remove(); $("#name_msg").remove(); $("#mobile_msg").remove(); $("#remarks_msg").remove(); var error_flag = 'N'; if (name == '') { $("<span style='color:red;' id='name_msg'>Please enter full name.</span>").insertAfter("#full_name"); error_flag = 'Y'; } if (email == '') { $("<span style='color:red;' id='email_msg'>Please enter your email id.</span>").insertAfter("#email_id"); error_flag = 'Y'; } if (email != '' && !emailReg.test(email)) { $("<span style='color:red;' id='email_msg'>Please enter your email id.</span>").insertAfter("#email_id"); error_flag = 'Y'; } if (mobile == '') { $("<span style='color:red;' id='mobile_msg'>Please enter 10 digit valid mobile number.</span>").insertAfter("#mobile_no"); error_flag = 'Y'; } else if (!mobile.match('[0-9]{10}')) { $("<span style='color:red;' id='mobile_msg'>Please enter 10 digit valid mobile number.</span>").insertAfter("#mobile_no"); error_flag = 'Y'; } if (remarks == '') { $("<p style='color:red;' id='remarks_msg'>Please enter your message.</p>").insertAfter("#remarks"); error_flag = 'Y'; } if (error_flag == 'N') { $('.submit_info').show(); $.ajax({ url: $('body').attr('data-base-url') + 'contact/registrationsuccessful', method: 'post', data: { name: name, email: email, mobile: mobile, remarks: remarks } }).done(function (response) { $("#full_name").val(''); $("#email_id").val(''); $("#mobile_no").val(''); $("#remarks").val(''); $('.submit_info').hide(); $("#request_success").html('<p style="color:#green;">' + response + '</p>'); setTimeout(function () { $('#request_success').slideUp("slow"); }, 5000); return false; }); } else { return false; } });/* * onclick : getintouch */ $(".request-a-call").on("click", function () { // Custom Values var name = $("#full_name").val(); var email = $("#email_id").val(); var mobile = $("#mobile_no").val(); var contact_reason = $("#contact_reason").val(); var emailReg = /^[a-z0-9]+([-._][a-z0-9]+)*@([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,4}$/; $("#email_msg").remove(); $("#name_msg").remove(); $("#mobile_msg").remove(); $("#contact_reason_msg").remove(); var error_flag = 'N'; if (name == '') { $("<span style='color:red;' id='name_msg'>Please enter full name.</span>").insertAfter("#full_name"); error_flag = 'Y'; } if (email == '') { $("<span style='color:red;' id='email_msg'>Please enter your email id.</span>").insertAfter("#email_id"); error_flag = 'Y'; } if (email != '' && !emailReg.test(email)) { $("<span style='color:red;' id='email_msg'>Please enter your email id.</span>").insertAfter("#email_id"); error_flag = 'Y'; } if (mobile == '') { $("<span style='color:red;' id='mobile_msg'>Please enter 10 digit valid mobile number.</span>").insertAfter("#mobile_no"); error_flag = 'Y'; } else if (!mobile.match('[0-9]{10}')) { $("<span style='color:red;' id='mobile_msg'>Please enter 10 digit valid mobile number.</span>").insertAfter("#mobile_no"); error_flag = 'Y'; } if (contact_reason == '') { $("<span style='color:red;' id='contact_reason_msg'>Please select your reason.</span>").insertAfter("#contact_reason"); error_flag = 'Y'; } if (error_flag == 'N') { $('.submit_info').show(); $.ajax({ url: $('body').attr('data-base-url') + 'contact/addEnquiry', method: 'post', data: { name: name, email: email, mobile: mobile, contact_reason: contact_reason } }).done(function (response) { $("#full_name").val(''); $("#email_id").val(''); $("#mobile_no").val(''); $("#contact_reason").val(''); $('.submit_info').hide(); $("#request_success").html('<p style="color:#fff;">' + response + '</p>'); setTimeout(function () { $('#request_success').slideUp("slow"); }, 5000); return false; }); } else { return false; } }); }; //Email Subscribe function checkEmailField() { var email_id = $("#subscribeEmail").val(); $("#subscribeEmail").removeClass('has-error'); var emailReg = /^[a-z0-9]+([-._][a-z0-9]+)*@([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,4}$/; $("#subscribeEmail_msg").remove(); if (email_id == '') { $("#subscribeEmail").addClass('has-error'); $("<span style='color:red;' id='subscribeEmail_msg'>Please enter valid email id.</span>").insertAfter("#subscribe_div"); return false; } else { if (emailReg.test(email_id)) { $.ajax({ type: "POST", url: $('body').attr('data-base-url') + 'staticpages/subscribedNow', data: { email_id: email_id }, dataType: 'json', success: function (data) { if (data > 0) { $("<span style='color:#000;' id='subscribeEmail_msg'>You have subscribed for Maxwell Biotech updates successfully.</span>").insertAfter("#subscribe_div"); $("#subscribeEmail").val(''); setTimeout(function () { $('#subscribeEmail_msg').slideUp("slow"); }, 8000); return false; } else if (data == 'Already subscribed') { $("<span style='color:red;' id='subscribeEmail_msg'>You have already subscribed for Maxwell Biotech updates.</span>").insertAfter("#subscribe_div"); $("#subscribeEmail").val(''); setTimeout(function () { $('#subscribeEmail_msg').slideUp("slow"); }, 8000); return false; } else { $("<span style='color:red;' id='subscribeEmail_msg'>Invalid Request</span>").insertAfter("#subscribe_div"); setTimeout(function () { $('#subscribeEmail_msg').slideUp("slow"); }, 4000); return false; } } }); } else { $("#subscribeEmail").addClass('has-error'); $("<span style='color:red;' id='subscribeEmail_msg'>Please enter valid email id.</span>").insertAfter("#subscribe_div"); return false; } } return false; }