-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsessionExpired.html
124 lines (86 loc) · 4.57 KB
/
sessionExpired.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link href="http://fonts.cdnfonts.com/css/gilroy-bold" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/css/all.min.css">
<!-- Magnific Popup core CSS file -->
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/style1.css">
<!-- Sweet Alert -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="sweetalert2.all.min.js"></script>
<title> session timeout</title>
</head>
<body>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content rounded-3 bg-white">
<div class="modal-body ">
<!-- <div class="container gx-1 gx-lg-0 mt-3 mt-lg-5 my-auto"> -->
<div class="text-end"> <button type="button" class="btn-close text-end" data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="row justify-content-center">
<div class="col-lg-12">
<div class="row ">
<div id="bodyModal" class="col-12 col-lg-12 mt-1 mb-0">
<div class="row justify-content-center">
<div
class="imageTimeout mb-3 text-center">
<img src="/picture/expired.png" alt="" width="80" height="80">
</div>
<div class="col-lg-12 col-8 mb-0">
<h3 class="text-danger text-center">Timeout Warning </h3>
<p class="text-muted text-center mb-0">Your session will expire in <span id="countdowntimer" class="text-danger">60</span>
seconds.<br> Please click on Stay Logged in to continue or Cancel to
logout.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer justify-content-center justify-content-sm-end ">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary">Stay Logged in</button>
</div>
</div>
>
</div>
</div>
<script src="/js/script.js"></script>
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="js/magnific-popup.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous">
</script>
<script type="text/javascript">
//counter
var timeleft = 60;
var downloadTimer = setInterval(function () {
timeleft--;
document.getElementById("countdowntimer").textContent = timeleft;
if (timeleft <= 0){
clearInterval(downloadTimer);
//put location after countdown
window.location.replace("/browser.html")
}
}, 1000);
// timeout
$(window).load(function(){
setTimeout(function(){
$('#exampleModal').modal('show');
}, 2000);
});
</script>
</body>
</html>