-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (28 loc) · 850 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cookies alert popup Tutorial</title>
<link rel="stylesheet" href="style.css">
</head>
<p><h1><center>day 03</center></h1></p>
<body onload="showModal">
<div id="modalbox">
<img src="images/cookies.png" class="Cookies=">
<p>we use Cookies to optimize user experience and content.</p>
<button type="button" onclick="closeModal()">Accept</button>
<img src="images/close.png" class="close-icon" onclick="closeModal()">
</div>
<script>
let modalbox = document.getElementById("modalbox");
function showModal(){
setTimeout(() => {
modalbox.style.display= "block";
}, 3000);
}
function closeModal(){
modalbox.style.display = "none";
}
</script>
</body>
</html>