-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimeout.html
More file actions
50 lines (50 loc) · 1.82 KB
/
timeout.html
File metadata and controls
50 lines (50 loc) · 1.82 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ui</title>
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
<style>
.Ad{ display: none; position: absolute; left: 40%; top: 20%; padding: 20px; background-color: aliceblue; border-radius: 20px; font-family: 'poppins';}
.Ad input{ margin: 20px; padding: 4px; border-radius: 10px; }
.overlay{width: 100%; height: 100%; background-color: rgb(99, 99, 99); display: none; position: fixed;}
button{padding: 8px; font-family: 'poppins'; border-radius: 10px;}
</style>
<script>
let jaadu;
function open(){
a=document.getElementById("ad")
document.getElementById("overlay").style.display='block';
a.style.display = 'block'
}
jaadu = setTimeout(open,5000)
function gayab(){
a=document.getElementById("ad")
document.getElementById("overlay").style.display='none'
a.style.display = 'none'
clearTimeout(jaadu);
}
function thank() {
a=document.getElementById("name").value;
alert("Succesfully signed in as "+a);
}
</script>
</head>
<body>
<div class="overlay" id="overlay"></div>
<div class="Ad" id="ad">
<form action="#">
<h4>Welcome Back</h4>
<h3>Log-In</h3>
<p>© Mudit Web Workers</p>
<label for="user">Username: </label>
<input type="text" name="name" id="name"><br>
<label for="pass">Password: </label>
<input type="password" name="pass" id="pass"><br>
</form>
<button onclick="gayab()">close</button>
<button onclick="thank()">Sign In</button>
</div>
</body>
</html>