visibilityjs 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +3 -0
- data/README.md +17 -0
- data/lib/visibility.timers.js +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de243ac1043eb09b23462dac69cfab08b89ac53a
|
4
|
+
data.tar.gz: afb78cc909abbdc95185d5c385758fe6c98a9115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4edb3b804218f87a18cdd4bfc1d64205688f4d4883fad44e3b613b1ede3e975e9836f3e588681b8f1b69e32ba3b399c7069c90a51d2953bdbe241cc405859db4
|
7
|
+
data.tar.gz: ee4ba45b83f5e19d909d51b136fbdd73a826128f55b118f0f97f838153847da244402b11ab48c8eec0edd6b532af7e7e0cf3b6a45c972c88405b64d01f6a4048
|
data/ChangeLog.md
CHANGED
data/README.md
CHANGED
@@ -251,6 +251,14 @@ Visibility.js is available by Bower package manager:
|
|
251
251
|
bower install --save visibilityjs
|
252
252
|
```
|
253
253
|
|
254
|
+
### NPM
|
255
|
+
|
256
|
+
Available by [NPM](https://www.npmjs.com/package/visibilityjs):
|
257
|
+
|
258
|
+
```
|
259
|
+
npm install --save visibilityjs
|
260
|
+
```
|
261
|
+
|
254
262
|
### Ruby on Rails
|
255
263
|
|
256
264
|
For Ruby on Rails you can use gem for Assets Pipeline.
|
@@ -280,6 +288,15 @@ For Ruby on Rails you can use gem for Assets Pipeline.
|
|
280
288
|
#= require visibility.core
|
281
289
|
```
|
282
290
|
|
291
|
+
### CDN
|
292
|
+
|
293
|
+
If you don’t use any assets packaging manager use [cdnjs](http://cdnjs.com/).
|
294
|
+
Add to your site:
|
295
|
+
|
296
|
+
```html
|
297
|
+
<script src="//cdnjs.cloudflare.com/ajax/libs/visibility.js/1.2.4/visibility.min.js"></script>
|
298
|
+
```
|
299
|
+
|
283
300
|
### Other
|
284
301
|
|
285
302
|
If you need just a files, you can take already minified packages from
|
data/lib/visibility.timers.js
CHANGED
@@ -116,12 +116,12 @@
|
|
116
116
|
|
117
117
|
if ( interval > last ) {
|
118
118
|
timer.delay = setTimeout(function () {
|
119
|
-
runner();
|
120
119
|
timer.id = setInterval(runner, interval);
|
120
|
+
runner();
|
121
121
|
}, interval - last);
|
122
122
|
} else {
|
123
|
-
runner();
|
124
123
|
timer.id = setInterval(runner, interval);
|
124
|
+
runner();
|
125
125
|
}
|
126
126
|
|
127
127
|
} else {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: visibilityjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Sitnik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sprockets
|