-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathotp.html
67 lines (63 loc) · 1.75 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
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
<!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>Get Otp | My Hours</title>
<link
rel="icon"
href="https://gdm-catalog-fmapi-prod.imgix.net/ProductLogo/b5f28d17-3a80-4bf3-aa0c-82ca5cdcccf2.png?w=100&q=50"
type="image/x-icon"
/>
<style>
#main{
width: 30%;
height: 150px;
margin: auto;
/* border: 1px solid gray; */
text-align: center;
margin-top: 150px;
padding: 30px;
padding-bottom: 30px;
font-size: 25px;
border-radius: 10px;
background-color: #f6f7f8;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
input{
width: 280px;
height: 25px;
}
::placeholder{
font-size: 17px;
}
button{
width: 90px;
padding: 6px;
font-size: 15px;
border: 1px solid rgb(101, 202, 232);
background-color: rgb(131, 226, 247);
border-radius: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<div id="main">
<p>Please Enter the OTP sent on your mail</p>
<input type="number" id="otp" placeholder="Enter otp here">
<button onclick="submit()">Submit</button>
</div>
</body>
</html>
<script>
let submit = () => {
let otp = document.getElementById("otp").value;
if(otp === "1234"){
window .location.href = "pay.html";
} else {
alert("Please enter correct OTP");
}
}
</script>