-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathotpPage.html
More file actions
89 lines (88 loc) · 2.15 KB
/
Copy pathotpPage.html
File metadata and controls
89 lines (88 loc) · 2.15 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!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>Document</title>
<style>
#front {
width: 20%;
margin: auto;
margin-top: 50px;
}
#front img {
width: 90%;
}
h1 {
text-align: center;
color: brown;
margin-top: 80px;
font-size: xx-large;
}
#otp {
/* border: 1px solid red; */
width: 35%;
margin: auto;
text-align: center;
margin-top: 100px;
padding: 20px;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
#labe {
text-align: left;
margin-left: 30px;
font-size: xx-large;
}
input[type="number"] {
padding: 10px 150px;
border-radius: 15px;
border: 1px solid black;
margin-top: 10px;
margin-bottom: 30px;
}
button {
padding: 10px 120px;
border-radius: 15px;
border: 1px solid #0069ff;
background-color: #0069ff;
font-size: large;
cursor: pointer;
color: white;
font-family: 800;
}
input[type="number"]:placeholder-shown {
font-size: large;
}
</style>
</head>
<body>
<div id="front">
<img
src="https://assets.calendly.com/packs/authentication/media/logo-f885ef95906ef15bb6fb.png"
/>
</div>
<div id="otp">
<div id="labe"><label for="4digit">OTP</label></div>
<div>
<input id="4digit" type="number" placeholder="Enter 4 digit OTP" />
</div>
<div><button>Make Payment</button></div>
</div>
</body>
</html>
<script>
document.querySelector("button").addEventListener("click", otppay);
function otppay() {
var otp = document.getElementById("4digit").value;
if (otp == 1234) {
alert("Payment Successful");
setTimeout(function () {
window.open("index.html", "_self");
}, 60);
localStorage.clear();
} else {
alert(" Please Enter Correct OTP");
}
}
</script>