-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtestPopUpWindow.html
83 lines (73 loc) · 1.85 KB
/
testPopUpWindow.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
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
*,
*:before,
*:after {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: #0855ae;
}
.popup {
background-color: #ffffff;
width: 420px;
padding: 30px 40px;
position: absolute;
transform: translate(-50%, -50%);
left: 50%;
top: 50%;
border-radius: 8px;
display: none;
font-family: "Poppins", sans-serif;
text-align: center;
}
.popup button {
font-size: 30px;
display: block;
width: 150px;
position: relative;
margin: 10px auto;
text-align: center;
background-color: #ed0a00;
border-radius: 0px;
color: #ffffff;
text-decoration: none;
padding: 8px 0;
}
.popup h1 {
margin:0 20px;
color: #001641;
}
.popup img {
width: 50px;
height: 50px;
margin: 0 20px;
}
</style>
</head>
<body>
<div class="popup">
<img src="Image/checked.png" alt="">
<h1>Upload Succeeded</h1>
<button id="close">Close</button>
</div>
<script>
window.addEventListener("load", function () {
setTimeout(
function open(event) {
document.querySelector(".popup").style.display = "block";
},
1000
)
});
document.querySelector("#close").addEventListener("click", function () {
document.querySelector(".popup").style.display = "none";
});
</script>
</body>
</html>