Didn't get SMS? <\/span>";$("#otpSentMsg").html(u+'Resend<\/a><\/span>');$("#otpSentMsg").show();$("#dvOtpSentMsg").show();$("#brResendWrng").show();$("#spChangeNumber").show();$("#spBar").show();i.style.width="350px";t.innerHTML=""}else i.style.width="295px",t.innerHTML=n+" sec.",n--}var n=120,t=document.getElementById("counter_span"),i=document.getElementById("Password"),r=setInterval(u,1e3),f='A 6 digit OTP has been sent to your phone '+document.getElementById("Phone").value+".
Didn't get SMS? To request new OTP please wait 2 minutes.<\/span>";$("#otpSentMsg").html(f);$("#otpSentMsg").show();$("#brResendWrng").show();$("#dvOtpSentMsg").show();$("#spChangeNumber").show();$("#spBar").show()}})}$(document).ready(function(){$("#sendOTP").click(function(){var n=document.getElementById("Phone"),t,i;if(/^01[3-9]\d{8}$/.test(n.value)==!1)return t="Please enter a valid mobile number.",i=t.fontcolor("red"),$("#otpSentMsg").html(i),$("#otpSentMsg").show(),$("#dvOtpSentMsg").show(),n.focus(),!1;$.ajax({contentType:"application/x-www-form-urlencoded; charset=UTF-8'",type:"POST",url:"sendOTP",dataType:"text",data:{phoneNumber:document.getElementById("Phone").value},success:function(n){var t;if(n=="Not found")t='No account found with the given phone number.<\/span>',$("#otpSentMsg").html(t),$("#otpSentMsg").show(),$("#dvOtpSentMsg").show();else{var i=120,r=document.getElementById("counter_span"),u=document.getElementById("Password"),f=setInterval(e,1e3);function e(){if(i==-1){clearTimeout(f);var n='A 6 digit OTP has been sent to your phone '+document.getElementById("Phone").value+".
Didn't get SMS? <\/span>";$("#otpSentMsg").html(n+'Resend<\/a><\/span>');$("#otpSentMsg").show();$("#dvOtpSentMsg").show();$("#brResendWrng").show();$("#spChangeNumber").show();$("#spBar").show();u.style.width="350px";r.innerHTML=""}else u.style.width="295px",r.innerHTML=i+" sec.",i--}$("#mobileDiv").hide();$("#otpDiv").show();t='A 6 digit OTP has been sent to your phone '+document.getElementById("Phone").value+".
Didn't get SMS? To request new OTP please wait 2 minutes.<\/span>";$("#otpSentMsg").html(t);$("#otpSentMsg").show();$("#dvOtpSentMsg").show();$("#brResendWrng").show();$("#spChangeNumber").show();$("#spBar").show();$("#signinMe").show();$("#sendOTP").hide()}}})});$("#signinMe").click(function(){$("#formLoginWithOTP").submit()})})