<style> #verifyOtpModal .otp_in { width: 24% !important;; font-size: 3rem !important; text-align: center !important; } /* Chrome, Safari, Edge, Opera */ #verifyOtpModal input::-webkit-outer-spin-button, #verifyOtpModal input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } /* Firefox */ #verifyOtpModal input[type=number] { -moz-appearance: textfield; } .otp_ajax_form_submit { width: 100%; margin-left: 0%; border-radius: 4px; font-size: 14px; font-weight: 600; background: #DDDDDD !important; color: #737373 !important; font-family: 'Poppins', sans-serif; text-transform: initial !important; } .otp_ajax_form_submit.ready { background: #1d5b9e !important; color: white !important;; }</style><div class="modal fade" id="verifyOtpModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-body"> <div class="row login-section"> <div class="col-md-12 login-inputs-modal" style="padding:1rem 1rem;"> <h2 style="text-align: center; color:#1D5B9E;font-size: 30px;font-weight: 600;">Enter OTP</h2> <p class="message_text" style=" margin: 0; text-align: center; color: #eb9f9f;"></p> <p style=" margin: 0; font-size: 13px;; text-align: center; ;">An OTP was sent to your email address.</p> {#<h6 style="margin: 40px 0 10px;color: #615A5A;">Login With:</h6>#} {#<h6 style="margin: 8px 0 10px;color: #615A5A;">An OTP was sent to your email address.</h6>#} <form action="" id="otp_ajax_form" method="post"> {#<div class="email-input" style="margin-top: 10px">#} {#<div class="email-title" style="text-align: center;"><label for="" style="margin-top: 0px;position: inherit;background: white; font-size: 1.5rem;" >Enter OTP</label></div>#} {#</div>#} <div class="email-input" style="margin-top: 10px;display: flex;justify-content: space-between;"> <input type="number" id="otp_in_1" name="otp_in_1" placeholder="" maxlength="1" required data-prev-id="_NONE_" data-next-id="2" class="otp_in otp_in_1"> <input type="text" id="otp_in_2" name="otp_in_2" placeholder="" maxlength="1" required data-prev-id="1" data-next-id="3" class="otp_in otp_in_2"> <input type="text" id="otp_in_3" name="otp_in_3" placeholder="" maxlength="1" required data-prev-id="2" data-next-id="4" class="otp_in otp_in_3"> <input type="text" id="otp_in_4" name="otp_in_4" placeholder="" maxlength="1" data-prev-id="3" data-next-id="_NONE_" required class="otp_in otp_in_4"> <input type="hidden" id="otp" name="otp" placeholder="otp" required maxlength="4" class="input_field"> <div class="eye-onoff"> {#<p class=" small_error_text email">Pikachu</p>#} <i class="fas fa-times small_error_icon email"></i> </div> <p class=" small_error_text email"></p> </div> {#<div class="email-input" style="margin-top: 10px">#} {#<div class="email-title"><label for="" style="margin-top: 38px;" >Email</label></div>#} {#<input type="text" id="username" name="username" placeholder="Username" data-field-type="username"#} {#required#} {#class="input_field username checkIfExists {{ errorField=='username'?'error_class':'' }}">#} {#<div class="eye-onoff">#} {#<i class="fas fa-check small_error_icon username"></i>#} {#</div>#} {#<p class=" small_error_text username"></p>#} {#</div>#} {#<div class="form-check" style="margin-top: 20px;">#} {#<a style="float: right;font-size: 14px;#} {#color: #615A5A;" href="">Forgot your password?</a>#} {#</div>#} <h6 style=" margin: 10px 0 10px; color: #615A5A; font-size:12px; text-align: center;"><span id="otpExpireTextPrefix">The OTP will expire</span> <span style="" id="otpExpireText" class=" time convert_to_moment_time" data-moment-ts-format="_today_or_date_" data-moment-ts="0"></span> <a class="resend_otp_button" style="display: inline-block;" href="#"> Resend OTP</a></h6> <button type="submit" class="otp_ajax_form_submit" style="">Proceed </button> </form> </div> </div> </div> {#<div class="modal-footer">#} {#</div>#} </div> </div></div><script> var otpModalInitiated=0; var verifyOtpModal=0; function initiateOtpModal(){ verifyOtpModal = new bootstrap.Modal(document.getElementById('verifyOtpModal'), { keyboard: false }); verifyOtpModal.show(); otpModalInitiated=1; } function triggerOtpVerification(options,callback) { options=options||{ }; var data={ } if(otpModalInitiated==0) initiateOtpModal(); callback(data); }</script>