File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,14 @@ This cross-tab jQuery plugin keeps track of time and lets a user know before the
15
15
## How to use
16
16
``` html
17
17
<html >
18
- <head ></head >
18
+ <head >
19
+ <link rel =" stylesheet" src =" jAlert-master/dist/jAlert.css" />
20
+ </head >
19
21
<body >
20
22
<!-- your site content -->
21
23
<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 -->
24
26
<script >
25
27
$ (function (){
26
28
$ .jTimeout ( options ); // options outlined below.
@@ -62,6 +64,11 @@ $(function(){
62
64
});
63
65
```
64
66
67
+ ###Seting the default session length in PHP (recommended)
68
+ ``` javascript
69
+ $ .jTimeout ({ ' timeoutAfter' : < ? php echo ini_get (' session.gc_maxlifetime' ); ? > });
70
+ ` ` `
71
+
65
72
### How to reset the timer
66
73
` ` ` javascript
67
74
$ .jTimeout .reset ();
You can’t perform that action at this time.
0 commit comments