-
Notifications
You must be signed in to change notification settings - Fork 1
/
otp.html
50 lines (44 loc) · 1.62 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
<html lang="en">
<head>
<link rel="stylesheet" href="./styles/login.css">
<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>
<link rel="stylesheet" href="./styles/login.css">
<link rel="stylesheet" href="./footer.css">
<link rel="stylesheet" href="./navbar.css">
</head>
<body>
<div id="navbar1"></div>
<div id="container">
<div id="banner">
<img src="https://assets.myntassets.com/f_webp,dpr_1.5,q_60,w_400,c_limit,fl_progressive/assets/images/2022/8/23/fcfd9b29-41c9-443c-b17a-38f43e37dd5c1661232075382-offer-banner-300-600x240-code-_-MYNTRA300.jpg" alt="">
</div>
<div id="input">
<h2 id="head">Login or Signup</h2>
<form id="form" action="">
<input id="password" type="password" placeholder="Enter OTP"> <br>
<h2>By continuing,i agree ot the Terms of use & Privacy Policy</h2> <br>
<input id="button" type="submit" value="Continue">
</form>
</div>
</div>
<div id="feeter"></div>
</body>
</html>
<script>
document.querySelector("#form").addEventListener("submit",confirm);
function confirm(event){
event.preventDefault();
let otp=document.querySelector("#password").value;
if(otp==="123456"){
alert("You are succesfully login👌👌");
window.location.href="index.html"
}
else{
alert("Enter valid otp");
}
}
</script>
<script src="./IMnavbar.js" type="module"></script>