-
Notifications
You must be signed in to change notification settings - Fork 2
/
rpopup.html
39 lines (35 loc) · 1.23 KB
/
rpopup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="styles/rpopup.css">
</head>
<body>
<div class="pcontainer">
<button type="submit" class="pbtn" onclick="openPopUp()">Click here to view your status</button>
<div class="popup" id="pop">
<img src="https://w7.pngwing.com/pngs/300/744/png-transparent-yellow-and-white-check-button-logo-symbol-yellow-orange-clear-tick-orange-data-check-mark-thumbnail.png" alt="">
<h2>Thank You!</h2>
<p class="pp">Your Room is Booked</p>
<button id="rok" type="button" onclick="closePopUp()">Ok</button>
</div>
</div>
<script>
let po = document.getElementById('pop');
function openPopUp(){
po.classList.add('open-popup');
}
function closePopUp(){
po.classList.remove('open-popup');
}
let ok = document.getElementById('rok');
ok.addEventListener('click',()=>{
setTimeout(() => {
window.location.href = "index.html";
});
})
</script>
</body>
</html>