mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 12:34:06 +00:00
106 lines
4.2 KiB
HTML
106 lines
4.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>AzureUI - Term</title>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
|
|
<link href="https://fonts.googleapis.com/css?family=Nunito:300,400,600,700,900" rel="stylesheet">
|
|
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css" />
|
|
<link rel="stylesheet" type="text/css" href="css/global.style.css" />
|
|
</head>
|
|
<body>
|
|
|
|
<div class="wrapper">
|
|
<div class="wrapper-inline">
|
|
<div class="form-divider"></div>
|
|
|
|
<div class="form-row txt-center aztitle">
|
|
Verify Phone
|
|
</div>
|
|
|
|
<div class="form-row txt-center">
|
|
A verification code has been send to <b><span id="phone"></span></b>.<a><br> Wrong number?</a>
|
|
</div>
|
|
|
|
<div class="form-divider"></div>
|
|
|
|
<!--Error Alert-->
|
|
<div class="alert alert-danger" role="alert" style="display: none"></div>
|
|
|
|
<!-- Here Lies Main Start Here -->
|
|
<main>
|
|
<section class="container">
|
|
<div>
|
|
<div class="form-row no-padding">
|
|
<div class="form-element-code">
|
|
<label style="color: #000">Enter Verification Code</label>
|
|
</div>
|
|
<input type="text" id="verify-code" class="form-element-code-input" placeholder="" required />
|
|
</div>
|
|
</div>
|
|
|
|
<!-- AzFooter Start Here-->
|
|
<div class="azfooter-code" id="btn-verify" style="margin-top:50px">
|
|
<div class="azfmain-button" >
|
|
<div class="form-row txt-center">
|
|
<a href="#" class="button block green">NEXT</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- AzFooter Ended Here -->
|
|
|
|
</section>
|
|
</main>
|
|
|
|
</div>
|
|
</div>
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
|
|
<script type="text/javascript">
|
|
function readCookie(name) {
|
|
var nameEQ = encodeURIComponent(name) + "=";
|
|
var ca = document.cookie.split(';');
|
|
for (var i = 0; i < ca.length; i++) {
|
|
var c = ca[i];
|
|
while (c.charAt(0) === ' ')
|
|
c = c.substring(1, c.length);
|
|
if (c.indexOf(nameEQ) === 0)
|
|
return decodeURIComponent(c.substring(nameEQ.length, c.length));
|
|
}
|
|
return null;
|
|
}
|
|
var phone = readCookie('phone');
|
|
document.getElementById("phone").innerHTML = phone;
|
|
|
|
$(document).ready(function() {
|
|
$('#btn-verify').click(function() {
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "api/verify-phone",
|
|
data: {
|
|
phone: phone,
|
|
token: $('#verify-code').val()},
|
|
success: function(data) {
|
|
if( data.success){
|
|
localStorage.token = data.token;
|
|
document.location.href="profile-first-setup.html";
|
|
}
|
|
else{
|
|
//console.log('wrong code');
|
|
$('.alert').html(data.success.message);
|
|
$('.alert').show();
|
|
}
|
|
//
|
|
},
|
|
error: function(data) {
|
|
$('.alert').html(data.responseJSON.error);
|
|
$('.alert').show();}
|
|
});
|
|
})
|
|
})
|
|
</script>
|
|
|
|
</body>
|
|
</html> |