Server IP : 150.95.80.236 / Your IP : 18.117.142.169 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/src/plugins/bootstrap-session-timeout/examples/ |
Upload File : |
<!DOCTYPE html> <html> <head> <title>Bootstrap-session-timeout - Countdown Timer</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.min.css"> </head> <body> <div class="container"> <h1>Bootstrap-session-timeout</h1> <h2>Countdown Timer</h2> <hr> <p>Shows the warning dialog with countdown timer after 3 seconds. If user takes no action (interacts with the page in any way), browser is redirected to redirUrl. On any user action (mouse, keyboard or touch) the timeout timer as well as the countdown timer are reset (visible if you don't close the warning dialog). </p> <pre> $.sessionTimeout({ keepAliveUrl: 'keep-alive.html', logoutUrl: 'login.html', redirUrl: 'locked.html', warnAfter: 3000, redirAfter: 10000, countdownMessage: 'Redirecting in {timer} seconds.' }); </pre> <a class="btn btn-primary" href="../index.html" role="button">Back to Demo Index</a> </div> <script src="../bower_components/jquery/dist/jquery.min.js"></script> <script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="../dist/bootstrap-session-timeout.js"></script> <script> $.sessionTimeout({ keepAliveUrl: 'keep-alive.html', logoutUrl: 'login.html', redirUrl: 'locked.html', warnAfter: 3000, redirAfter: 10000, countdownMessage: 'Redirecting in {timer} seconds.' }); </script> </body> </html>