Skip to content

Commit 8f3d689

Browse files
author
VersatilityWerks
committed
improve structure, migrate logic to defaults, stop countdown after 0
2 parents 56d17e2 + 1bee38f commit 8f3d689

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ This cross-tab jQuery plugin keeps track of time and lets a user know before the
1515
## How to use
1616
```html
1717
<html>
18-
<head></head>
18+
<head>
19+
<link rel="stylesheet" src="jAlert-master/dist/jAlert.css"/>
20+
</head>
1921
<body>
2022
<!-- your site content -->
2123
<script src='https://code.jquery.com/jquery-1.11.3.min.js'></script> <!-- Include jQuery -->
22-
<script src='jAlert-master/src/jAlert-v3.5.min.js'></script> <!-- Include jAlert - Get it here: http://flwebsites.biz/jAlert/ -->
23-
<script src='jTimeout-master/src/jTimeout-v1.5.min.js'></script> <!-- Include this Plugin -->
24+
<script src='jAlert-master/dist/jAlert.min.js'></script> <!-- Include jAlert - Get it here: http://flwebsites.biz/jAlert/ -->
25+
<script src='jTimeout-master/dist/jTimeout.min.js'></script> <!-- Include this Plugin -->
2426
<script>
2527
$(function(){
2628
$.jTimeout( options ); //options outlined below.
@@ -62,6 +64,11 @@ $(function(){
6264
});
6365
```
6466

67+
###Seting the default session length in PHP (recommended)
68+
```javascript
69+
$.jTimeout({ 'timeoutAfter': <?php echo ini_get('session.gc_maxlifetime'); ?> });
70+
```
71+
6572
### How to reset the timer
6673
```javascript
6774
$.jTimeout.reset();

0 commit comments

Comments
 (0)