-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathotpPage.html
74 lines (68 loc) · 1.91 KB
/
otpPage.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!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>OTP PAGE</title>
<style>
body{
text-align: center;
}
h1{
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: navy;
}
button{
border-radius: 20px;
color: white;
background-color: orangered;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
input[type="text" ],
select,
textarea {
width: 10%;
padding: 12px;
border: 2px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
margin-top: 6px;
margin-bottom: 16px;
resize: vertical;
}
a{
text-decoration: none;
color: navy;
}
</style>
</head>
<body>
<h1>Enter the OTP send </h1>
<input id="code" type="text"><br>
<button id="cnfrm" type="submit">Confirm</button>
<p><a href="paymentGateway.html">Redirect to Card details</a> </p>
</body>
</html>
<script>
document.querySelector("button").addEventListener("click", check)
function check(){
event.preventDefault();
var input = document.getElementById("code").value == "1234";
if(input){
alert("Payment Successful!!");
}
else{
alert("Incorrect OTP");
}
location.href="subscribe.html"
}
</script>