-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOTP.html
124 lines (109 loc) · 3.61 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<html>
<title>SuperMarket</title>
<head>
<style>
body {
background-image: url(https://i.pinimg.com/originals/b4/f9/f9/b4f9f97ef17f943e969494a3f8e57cfb.jpg);
background-repeat: no-repeat;
background-size: 1000 500;
}
/* Full-width input fields */
input[type=text],
input[type=password] {
width: 300px;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}
.button {
width: 115px;
background-color: #4CAF50;
color: white;
position: absolute;
z-index: 0;
display: inline-block;
padding: 14px 20px;
margin: 80px -205px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #4574a0e0;
}
.imgcontainer {
text-align: center;
margin: 24px 0 12px 0;
position: relative;
}
img.avatar {
width: 200px;
border-radius: 100;
}
.container {
padding: 16px;
}
span.psw {
float: right;
padding-top: 20px;
}
/* The Modal (background) */
.modal {
display: none;
/* Hidden by default */
position: fixed;
/* Stay in place */
z-index: 1;
/* Sit on top */
left: 0;
top: 0;
width: 500px;
/* Full width */
height: 600px;
/* Full height */
overflow: auto;
/* Enable scroll if needed */
background-color: rgb(0, 0, 0);
/* Fallback color */
background-color: rgba(0, 0, 0, 0.4);
/* Black w/ opacity */
padding-top: 60px;
}
/* Modal Content/Box */
.modal-content {
background-color: rgba(228, 196, 196, 0.582);
margin: 15px auto 25px auto;
border: 1px solid #888;
width: 350px;
height: 500px;
}
</style>
<body>
<script>
var v=0
system.log(v[0])
if(v==0){window.alert("OTP Sent to your mobile number")}
else if(v==1){ document.write("<form id='f1' action="admin" method='post'></form>")
document.getElementById('f1').submit()}
else(v==2){window.alert("inccorect otp")}
</script>
<div class="container">
<form class="modal-content animate" action="otp" method="post">
<div class="imgcontainer">
<img src="https://blog.cpanel.com/wp-content/uploads/2019/08/user-01.png" alt="Avatar" class="avatar">
</div>
<div class="container">
<h1 style="font-size:20px;">
<center>OTP
<p>Two-Step authentication</p>
</center>
</h1>
<input type="text" placeholder="Enter user OTP" name="otp" required>
<button class="button" type="submit" name="status" value="1">Submit</button>
</div>
</form>
</div>
<form id="f1" action='' method="post"></form>
</body></html>