-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogout.form.php
More file actions
64 lines (52 loc) · 1.44 KB
/
logout.form.php
File metadata and controls
64 lines (52 loc) · 1.44 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<style>
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
}
.popup {
position: absolute;
top: 50%;
left: 50%;
width: 300px;
color: white;
transform: translate(-50%, -50%);
padding: 16px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
background: rgba(255, 255, 255, 0.2);
}
.close-btn {
position: absolute;
top: 10px;
right: 12px;
cursor: pointer;
}
</style>
<div class="overlay" id="overlay">
<div class="popup">
<span class="close-btn" onclick="closePopupLogout()">×</span>
<form action="includes/logout.inc.php" method="post">
<h3>Logout</h3><br>
<h5>Are you sure ?<br><br>
<button type="submit" name="submit_logout" class="btn btn-outline-warning col-5">Yes</button>
<button type="button" class="btn btn-outline-light col-5" id="cancel" onclick="closePopupLogoutCancel()">No</button>
</form>
</div>
<script>
function openPopupLogout() {
document.getElementById("overlay").style.display = "block";
}
function closePopupLogout() {
document.getElementById("overlay").style.display = "none";
}
function closePopupLogoutCancel() {
document.getElementById("overlay").style.display = "none";
}
</script>
</div>