1jQuery(document).ready(function ($) { 2 3 $(".pooja_booking").click(function () { 4 var id = $(this).attr('rev'); 5 $('#user_url').val(id); 6 $("#book_servicepopup").modal("show"); 7 }); 8 9 function sendOtp(email) { 10 $.post(otp_ajax.ajax_url, { 11 action: "send_otp", 12 user_url: $("#user_url").val(), 13 email: email 14 }, function (response) { 15 16 $("#responseMsg").html(response.message); 17 18 if (response.status === "verified") { 19 window.location.href = response.redirect; 20 } 21 22 if (response.status === "success") { 23 $("#otprequestSection").hide(); 24 $("#otpSection").show(); 25 // $("#resendOtpBtn").show(); 26 $("#responseMsg").show(); 27 setTimeout(function () { 28 $("#responseMsg").fadeOut(); 29 }, 5000); 30 } 31 32 }, "json"); 33 } 34 35 // Change Email 36 $(".resnt_change").click(function () { 37 //$("#user_email").val(); 38 $("#otprequestSection").show(); 39 $("#otpSection").hide(); 40 }); 41 42 // Send OTP 43 $("#sendOtpBtn").click(function () { 44 let email = $("#user_email").val(); 45 sendOtp(email); 46 }); 47 48 // Resend OTP 49 $("#resendOtpBtn").click(function () { 50 let email = $("#user_email").val(); 51 sendOtp(email); 52 }); 53 54 // Verify OTP 55 $("#verifyOtpBtn").click(function () { 56 57 $.post(otp_ajax.ajax_url, { 58 action: "verify_otp", 59 email: $("#user_email").val(), 60 user_url: $("#user_url").val(), 61 otp: $("#user_otp").val() 62 }, function (response) { 63 64 $("#responseMsg").html(response.message); 65 $("#responseMsg").show(); 66 setTimeout(function () { 67 $("#responseMsg").fadeOut(); 68 }, 5000); 69 70 if (response.status === "success") { 71 window.location.href = response.redirect; 72 } 73 74 }, "json"); 75 }); 76 77});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.