Today's Rahu Kalam Timing | Rahu Kaal Today Bangalore Urban, Karnataka, India | Aaj ka Rahu Kaal Sunday, June 30, 2024 (2024)

", function () { }); } } function isNumberKey1(evt) { var e = event || evt; var CharCode = e.which || e.keyCode; if (CharCode == 13) { $("#getOtp").click(); return false; } if (CharCode > 31 && (CharCode < 48 || CharCode > 57)) return false; } function IsMobileNoValid(MobNo) { var yValid = false; if (MobNo >= 6000000000 && MobNo <= 9999999999) { yValid = true; } return yValid; } //trackingUrl $("#getOtp").click(function () { var trackingUrl = ""; var frmMobileRegister = $('#MobileRegister'); $.validator.unobtrusive.parse(frmMobileRegister); frmMobileRegister.validate(); if (!frmMobileRegister.valid()) { //var btn = jQuery(this); //btn.prop('disabled', true); //setTimeout(function () { // btn.prop('disabled', false); //}, 3000); return false; } else { let customercountryCode = $("#MobCode").find(':selected').attr('data-country'); if ($("#MobCode").val() == '+91' && !IsMobileNoValid($("#ContactMobile").val())) { alertify.notify("

Please Enter A Valid Mobile Number

",'error', function () { }); return false; } else if ($("#captchaenabled").val() == 0 && isCaptchaAvailable > 0) { //$("#UserName").focus(); alertify.notify('

Please verify Captcha

', 'error', function () { }); return false; } var action = frmMobileRegister.attr("action"); /* var control = jQuery(this);*/ var ReturnUrl = getUrlParameter('ReturnUrl'); if (ReturnUrl != null && ReturnUrl != 'undefined') { if (ReturnUrl.length > 0) { let ParamsArray = ReturnUrl.split('?'); let Params = ParamsArray[1]; trackingUrl = Params; } } let userCounryCode = $("#MobCode").find(':selected').attr('data-country'); let referralCode = null; try { referralCode = new URLSearchParams(htmlDecode('?utm_source=astroweb&utm_campaign=site&utm_medium=AST5690_AST5561_RUNT')).get('crefcode'); console.log('refcode', referralCode); } catch (e) { console.error(e); } //let captchaenabled = $("#captchaenabled").val(); var model = { ContactMobile: $("#ContactMobile").val(), MobCode: $("#MobCode").val(), trackingUrl: trackingUrl, ReferralCode: referralCode, reCaptchaResponse: captchaResponse, CountryCode: userCounryCode, captchaenabled: isCaptchaAvailable } $.ajax({ type: 'POST', url: action, dataType: "json", data: (model), beforeSend: function () { //Load icon will show onOtpBegin(); }, success: function (response) { onOtpSuccess(response); //jQuery(control).attr('disabled', false); }, complete: function (jqXhR, textStatus) { onOtpComplete(); }, error: function (xhr, status, error) { if (xhr.status == 422 || xhr.status == 429 || xhr.status == 500) { //do something about the error var errMsg = xhr.status + "\r\n" + status + "\r\n" + error; alertify.notify("

Please enter a valid mobile number or try with other login options.

","error", function () { }); } else { //do something about the error var errMsg = xhr.status + "\r\n" + status + "\r\n" + error; alertify.notify("

Unable to complete your request please try again

","error", function () { }); } } }); } });

", "error", function () { }); $('#loaderVerifyLogin').hide(); $('#btnVerify').show(); clearInterval(x); $("#btnResendOtp").attr("disabled", true); document.getElementById("divTimer").innerHTML = ""; }, requestTimeOut) } function ResetForm() { $("#btnResendOtp").attr("disabled", true); $('#btnVerify').show(); $('#loaderVerifyLogin').hide(); $("#Otp1").val(''); //$("#Otp2").val(''); //$("#Otp3").val(''); //$("#Otp4").val(''); //$("#Otp5").val(''); //$("#Otp6").val(''); StartTimer(); } function ResendOtp() { trackBtnClicks("Registration", "OTP_Screen", "ResendOTP_Requested", ""); let RegisterMobileUrl = 'https://www.anytimeastro.com/Account/RegisterMobile/'; $.post(RegisterMobileUrl, { UserId: $("#UserId").val(), MobCode: $("#MobCode").val() ,ContactMobile: $("#ContactMobile").val(), ResendOtp: true, OTPRequestId: $("#hfOTPRequestId").val() }, function (response) { if (response.UserId > 0) { $("#hfOTPRequestId").val(response.OtpRequestId); ResetForm(); alertify.notify("

OTP Sent Successfully

", "success", function () { }); } else { alertify.notify("

Please try again later

", "error", function () { }); } }) } function isNumberKey(evt) { var e = event || evt; var CharCode = e.which || e.keyCode; if (CharCode == 13) { $("#btnVerify").click(); return false; } if (CharCode > 31 && (CharCode < 48 || CharCode > 57)) return false; } function IsValid() { if ($("#Otp1").val() == "") { $("#Otp1").focus(); return false; } return true; } function onVerifyBegin() { if (IsValid()) { $('#btnVerify').hide(); $('#loaderVerifyLogin').show(); StartVerifyOtp(); return true; } else { $("#Otp1").focus(); alertify.notify("

Enter valid OTP

", "error", function () { }); return false; } } function onComplete() { clearTimeout(verifyOtp); sessionStorage.removeItem("SessionPlans"); } function getUrlVarsForOtp() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; } function GetSessionClicked() { let ExpertProfileClicked = { "action": "", "experturl": "" }; var BeforePaymentSession = "BeforeLoginSession"; let BeforeLoginChatSession = sessionStorage.getItem(BeforePaymentSession); if (BeforeLoginChatSession != null && typeof BeforeLoginChatSession !== 'undefined') { traceLog("BeforeLoginSession", BeforeLoginChatSession); if (typeof BeforeLoginChatSession === 'string') { BeforeLoginChatSession = JSON.parse(BeforeLoginChatSession); } let BeforeLoginChatSessionType = sessionStorage.getItem("BeforeLoginSessionType"); if (typeof BeforeLoginChatSessionType !== 'undefined') { switch (BeforeLoginChatSessionType) { case "CHAT": ExpertProfileClicked.action = BeforeLoginChatSessionType; ExpertProfileClicked.experturl=BeforeLoginChatSession.ExpertUrl; break; case "CALL": ExpertProfileClicked.action = BeforeLoginChatSessionType; ExpertProfileClicked.experturl = BeforeLoginChatSession.ExpertUrl; break; case "MSG": ExpertProfileClicked.action = BeforeLoginChatSessionType; ExpertProfileClicked.experturl = BeforeLoginChatSession.ExpertUrl; break; } } } return ExpertProfileClicked; } function getBeforeLoginSessionPrefrence() { var ExpertSessionClicked = GetSessionClicked(); let redirectUrl = ""; if (ExpertSessionClicked != null && typeof ExpertSessionClicked === 'object') { if (ExpertSessionClicked.action != "" && ExpertSessionClicked.experturl != "") { if (ExpertSessionClicked.experturl.indexOf("http") >=0 && ExpertSessionClicked.experturl.indexOf("undefined") < 0) { redirectUrl = ExpertSessionClicked.experturl; } else if (ExpertSessionClicked.action.toLowerCase() == "chat") { redirectUrl = "https://www.anytimeastro.com/chat-with-astrologer/?utm_source=astroweb&utm_campaign=site&utm_medium=AST5690_AST5561_RUNT"; } else if (ExpertSessionClicked.action.toLowerCase() == "call") { redirectUrl = "https://www.anytimeastro.com/talk-to-astrologer/?utm_source=astroweb&utm_campaign=site&utm_medium=AST5690_AST5561_RUNT"; } } } return redirectUrl; } function showCustomerNameDobModal(customerinfo) { //console.log(customerinfo); $("#loginSignUp").modal("hide"); $("#customerName").val(customerinfo.DisplayName); if (customerinfo.DOB != "01/01/1900") { $("#customerDob").val(customerinfo.DOB); } $("#customerprofileinfo").modal("show"); } function redirectToPage(responseParams) { let redirectUrl = getBeforeLoginSessionPrefrence(); if (redirectUrl != "") { location.href = redirectUrl; } else { if (responseParams != "" && CheckIfDefaultParams(responseParams)) { let path = window.location.href.split('?')[0]; let allparams = window.location.href.split('?')[1]; if (allparams != null && allparams != "") { allparams = removeSpecificParameterFromAllParams(allparams, "utm_source"); allparams = removeSpecificParameterFromAllParams(allparams, "utm_campaign"); allparams = removeSpecificParameterFromAllParams(allparams, "utm_medium"); allparams = responseParams + "&" +allparams; location.href = path + allparams; } else { location.href = path + responseParams; } } else { var url = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); var uri = window.location.toString(); if (uri.indexOf("#") > 0) { url[0] = url[0].substring(0, url[0].length - 1) } if (url[0].indexOf("ReturnUrl") >= 0) globalIsClickOn = getUrlVarsForOtp()["ReturnUrl"]; if (globalIsClickOn == null || typeof globalIsClickOn === 'undefined') { if (typeof url[0] === 'string' && url[0].length > 3) { //location.href = url[0]; location.reload(); } else { location.href = "https://www.anytimeastro.com/?utm_source=astroweb&utm_campaign=site&utm_medium=AST5690_AST5561_RUNT"; } } else if (globalIsClickOn == "chat") { location.href = "https://www.anytimeastro.com/chat-with-astrologer/?utm_source=astroweb&utm_campaign=site&utm_medium=AST5690_AST5561_RUNT"; } else if (globalIsClickOn == "call") { location.href = "https://www.anytimeastro.com/talk-to-astrologer/?utm_source=astroweb&utm_campaign=site&utm_medium=AST5690_AST5561_RUNT"; } else if (globalIsClickOn.indexOf("walletrecharge") > 0) { location.href = "https://www.anytimeastro.com/walletrecharge/?utm_source=astroweb&utm_campaign=site&utm_medium=AST5690_AST5561_RUNT"; } else if (globalIsClickOn.indexOf("wallet") > 0) { let urlCurrentParams = decodeURIComponent(globalIsClickOn); location.href = "https://www.anytimeastro.com/{0}".format(urlCurrentParams); } else { location.reload(); } } } } function onVerifySuccess(response) { traceLog("onverifysuccess",response); clearTimeout(verifyOtp); if (response.ecode == 200) { var IsFirstSignUp = response.IsSignUp; var isCustomerInfoRequired = false; if (IsFirstSignUp != undefined && IsFirstSignUp != null) { if (IsFirstSignUp == true) { isCustomerInfoRequired = true; if (IsCleverTapAllow) { cleverTapEvent("Sign Up", response.clevartap); } trackBtnClicks("Registration", "OTP_Screen", "OTP_SignUp_Done", ""); } else { if (response.DisplayName == "" || response.DOB == "" || response.DOB == "01/01/1900") { isCustomerInfoRequired = true; } if (IsCleverTapAllow) { cleverTapEvent("Login", response.clevartap); } } } $('#LoginVerifyOtp').html(null); $('#LoginVerifyOtp').html(response.ecode); if (isCustomerInfoRequired) { /**Enable commented code if to show form*/ // showCustomerNameDobModal(response); redirectToPage(response.Params); } else { redirectToPage(response.Params); } } else { $('#btnVerify').show(); $('#loaderVerifyLogin').hide(); $("#Otp1").val(''); $("#Otp1").focus(); trackBtnClicks("Registration", "OTP_Screen", "OTP_Failed_Invalid", ""); if (response.ecode == 403) { alertify.notify("

Something went wrong. Please try again or contact support

", "error", function () { }); } else { alertify.notify("

Invalid OTP, Try Again

", "error", function () { }); } $("#btnResendOtp").attr("disabled", false); clearInterval(x); document.getElementById("divTimer").innerHTML = ""; } } $("#frmVerifyOtp").on("submit", function (e) { e.preventDefault(); var frmMobileRegister = $('#frmVerifyOtp'); $.validator.unobtrusive.parse(frmMobileRegister); frmMobileRegister.validate(); if (!frmMobileRegister.valid()) { return false; } else { var action = frmMobileRegister.attr("action"); /* var control = jQuery(this);*/ var model = { UserId: $("#UserId").val(), Otp1: $("#Otp1").val(), OTPRequestId: $("#hfOTPRequestId").val() } $.ajax({ type: 'POST', url: action, dataType: "json", data: (model), beforeSend: function () { //Load icon will show onVerifyBegin(); }, success: function (response) { onVerifySuccess(response); //jQuery(control).attr('disabled', false); }, complete: function (jqXhR, textStatus) { onComplete(); }, error: function (xhr, status, error) { //do something about the error var errMsg = xhr.status + "\r\n" + status + "\r\n" + error; alertify.notify("

Please try again later

", "error", function () { }); } }); } }) $(".otp-list input").keyup(function () { var key = event.keyCode || event.charCode; if (key === 8 || key === 37) { $(this).parent().prev().find(".otpbox").focus().select(); } else if (key == 48 || key == 49 || key == 50 || key == 51 || key == 52 || key == 53 || key == 54 || key == 55 || key == 56 || key == 57 || key == 96 || key == 97 || key == 98 || key == 99 || key == 100 || key == 101 || key == 102 || key == 103 || key == 104 || key == 105) { //console.log($(this).parent().html()); $(this).parent().next().find(".otpbox").focus().select(); } });

Welcome Back!

Sign in to your account

", "error", function () { }); $('#loaderLogin').hide(); $('#btnLogin').show(); $('#btnLogin').removeAttr("disabled"); }, requestTimeOut) } function onBegin() { trackBtnClicks("Registration", "Login_Screen", "Login_Detail_Submitted", "PopUp"); startLoginTimer(); } function onComplete() { sessionStorage.removeItem("SessionPlans"); } function OnLoginSuccess(response) { if (response != null && response != undefined && response != "") { if (response.Status != 200) { $('#btnLogin').removeAttr("disabled"); } if (response.Status == 200) { clearTimeout(loginEmail); if (response.data != "" && response.data.UserParams != "" && CheckIfDefaultParams(response.data.UserParams)) { // let path = window.location.href.split('?')[0]; //location.href = path + response.data.UserParams; let path = window.location.href.split('?')[0]; let allparams = window.location.href.split('?')[1]; if (allparams != null && allparams != "") { allparams = removeSpecificParameterFromAllParams(allparams, "utm_source"); allparams = removeSpecificParameterFromAllParams(allparams, "utm_campaign"); allparams = removeSpecificParameterFromAllParams(allparams, "utm_medium"); allparams = response.data.UserParams + "&" + allparams; location.href = path + allparams; } else { location.href = path + response.data.UserParams; } } else { //location.reload(); var url = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); var uri = window.location.toString(); if (uri.indexOf("#") > 0) { url[0] = url[0].substring(0, url[0].length - 1) } if (url[0].indexOf("ReturnUrl") >= 0) globalIsClickOn = getUrlVarsForOtp()["ReturnUrl"]; if (globalIsClickOn == null || typeof globalIsClickOn === 'undefined') { if (typeof url[0] === 'string' && url[0].length > 3) { //location.href = url[0]; location.reload(); } else { location.href = "https://www.anytimeastro.com//?utm_source=astroweb&utm_campaign=site&utm_medium=AST5690_AST5561_RUNT"; } } else if (globalIsClickOn == "chat") { location.href = "https://www.anytimeastro.com/chat-with-astrologer/?utm_source=astroweb&utm_campaign=site&utm_medium=AST5690_AST5561_RUNT"; } else if (globalIsClickOn == "call") { location.href = "https://www.anytimeastro.com/talk-to-astrologer/?utm_source=astroweb&utm_campaign=site&utm_medium=AST5690_AST5561_RUNT"; } else { location.reload(); } } } else if (response.Status == 403) { alertify.notify("

Your account is marked In-Active, Please contact support.

", "error", function () { }); } else if (response.Status == 409) { alertify.notify("

Please try to sign in with valid credentials.

", "error", function () { }); } else if (response.Status == 417) { alertify.notify("

Please verify your email. A verification email has been sent. Follow the instructions in the email.

", "error", function () { }); } else { alertify.notify("

Invalid Email or Password.Please try again

", "error", function () { }); } $('#loaderLogin').hide(); $('#btnLogin').show(); //$('#Login').html(null); //$('#Login').html(response); } else { $('#loaderLogin').hide(); $('#btnLogin').show(); $('#btnLogin').removeAttr("disabled"); } } //(function (d, s, id) { // var js, fjs = d.getElementsByTagName(s)[0]; // if (d.getElementById(id)) { return; } // js = d.createElement(s); js.id = id; // js.src = "https://connect.facebook.net/en_US/sdk.js"; // fjs.parentNode.insertBefore(js, fjs); //}(document, 'script', 'facebook-jssdk')); //function fb_login() { // gtag('event', 'facebook-click', { 'event_category': 'login' }); // trackBtnClicks("Facebook", "fb_login", "Request_Facebook_Login", "Facebook"); // checkFacebookLoginState(); //} //function checkFacebookLoginState() { // FB.getLoginStatus(function (response) { // statusChangeCallback(response); // }); //} //function statusChangeCallback(response) { // if (response.status === 'connected') { // login(response); // } else { // facebookLogin(); // } //} //function facebookLogin() { // FB.login(function (response) { // $('#loginSignUp').modal('hide'); // login(response) // }, { scope: 'email,public_profile' }); //} function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; } function login(response) { if (response.authResponse) { access_token = response.authResponse.accessToken; user_id = response.authResponse.userID; var data = { LoginProvider: 'Facebook', ExternalUserId: user_id, ExternalAccessToken: access_token }; trackBtnClicks("Facebook", "login(response)", "Success_Facebook_Login", "UserId:" + user_id); let LoginExternalUrl = 'https://www.anytimeastro.com/Account/LoginExternal/'; $.post(LoginExternalUrl, data, function (response) { if (response == "OK") { createCookieCommon('_facebookLogin', '1', 30); location.href = "/"; } else if (response == "EmailNotVerified") { $('#emailNotVerified').show(); } else if (response == "LoginViaEmail") { location.href = "/account/signin/"; } else if (response == "Register") { location.href = "/account/registerexternal/"; } else { alert("Something went wrong. Please try again or contact support") } }); } else { //console.log('User cancelled login or did not fully authorize.'); } } $(document).ready(function () { $(".showpassword").click(function () { var $this = $(this); $this.toggleClass("fa-eye fa-eye-slash"); var input = $($this.attr("toggle")); if (input.attr("type") == "password") { input.attr("type", "text"); } else { input.attr("type", "password"); } }); }); $("#frmLogin").on("submit", function (e) { e.preventDefault(); $("#btnLogin").click(); }) $("#btnLogin").click(function () { var frmLogin = $('#frmLogin'); $.validator.unobtrusive.parse(frmLogin); frmLogin.validate(); if (!frmLogin.valid()) { return false; } else { $('#btnLogin').attr("disabled", "disabled"); $('#btnLogin').hide(); $('#loaderLogin').show(); var action = frmLogin.attr("action"); /* var control = jQuery(this);*/ var token = $('input[name="__RequestVerificationToken"]', frmLogin).val(); var model = { Email: $("#txtLoginEmail").val(), Password: $("#Password").val() } $.ajax({ type: 'POST', url: action, dataType: "json", data: { __RequestVerificationToken: token, model: model}, beforeSend: function () { //Load icon will show onBegin(); }, success: function (response) { OnLoginSuccess(response); //jQuery(control).attr('disabled', false); }, complete: function (jqXhR, textStatus) { onComplete(); }, error: function (xhr, status, error) { //do something about the error var errMsg = xhr.status + "\r\n" + status + "\r\n" + error; alertify.notify("

Please try again later

", "error", function () { }); $('#loaderLogin').hide(); $('#btnLogin').show(); $('#btnLogin').removeAttr("disabled"); } }); } });

Today's Rahu Kalam Timing | Rahu Kaal Today Bangalore Urban, Karnataka, India | Aaj ka Rahu Kaal Sunday, June 30, 2024 (2024)

References

Top Articles
Latest Posts
Article information

Author: Melvina Ondricka

Last Updated:

Views: 6481

Rating: 4.8 / 5 (68 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Melvina Ondricka

Birthday: 2000-12-23

Address: Suite 382 139 Shaniqua Locks, Paulaborough, UT 90498

Phone: +636383657021

Job: Dynamic Government Specialist

Hobby: Kite flying, Watching movies, Knitting, Model building, Reading, Wood carving, Paintball

Introduction: My name is Melvina Ondricka, I am a helpful, fancy, friendly, innocent, outstanding, courageous, thoughtful person who loves writing and wants to share my knowledge and understanding with you.