-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathotp.html
38 lines (37 loc) · 1.33 KB
/
otp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ONN BIKES</title>
<link rel="icon" href="https://www.onnbikes.com/img/ONN-logo-unit-without-shadow.png" type="image/gif">
<link rel="stylesheet" href="./style/otp.css" />
</head>
<body>
<div id="otpbox">
<form>
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQLvfoXdHn07ToY8z2CzRkjEjrCEdqqHWB45g&usqp=CAU">
<h2>Enter One Time Password(OTP)</h2>
<p>Onnbike has sent you an otp on your registered mobile number +91-**********</p>
<input type="password" id="otpenter" placeholder="Enter OTP here">
<br>
<input type="submit" id="confirm" value="CONFIRM"/>
</form>
</div>
</body>
</html>
<script>
document.querySelector("form").addEventListener("submit", confirm);
var x=JSON.parse(localStorage.getItem("Current_User"));
console.log(x);
function confirm(event){
event.preventDefault();
var selected= document.querySelector("#otpenter").value;
if(selected=="1234"){
alert("Payment Sucessfull")
alert(x[0].first_name+" Thanks for choosing Onnbike");
window.location.href="./index.html";
}
}
</script>