diff options
Diffstat (limited to 'libs/bower_components/visibilityjs')
-rw-r--r-- | libs/bower_components/visibilityjs/.bower.json | 13 | ||||
-rw-r--r-- | libs/bower_components/visibilityjs/ChangeLog.md | 7 | ||||
-rw-r--r-- | libs/bower_components/visibilityjs/README.md | 35 | ||||
-rw-r--r-- | libs/bower_components/visibilityjs/bower.json | 2 | ||||
-rw-r--r-- | libs/bower_components/visibilityjs/component.json | 14 | ||||
-rw-r--r-- | libs/bower_components/visibilityjs/logo.svg | 20 |
6 files changed, 42 insertions, 49 deletions
diff --git a/libs/bower_components/visibilityjs/.bower.json b/libs/bower_components/visibilityjs/.bower.json index a284725d7d..0b82dff9d0 100644 --- a/libs/bower_components/visibilityjs/.bower.json +++ b/libs/bower_components/visibilityjs/.bower.json @@ -1,6 +1,6 @@ { "name": "visibilityjs", - "version": "1.2.1", + "version": "1.2.3", "homepage": "https://github.com/ai/visibilityjs", "authors": [ "Andrey A.I. Sitnik <andrey@sitnik.ru>" @@ -19,14 +19,13 @@ "*.rb", ".*" ], - "_release": "1.2.1", + "_release": "1.2.3", "_resolution": { "type": "version", - "tag": "1.2.1", - "commit": "97c8ea0defd6737de911647598d6e195ff177e39" + "tag": "1.2.3", + "commit": "f4456f2a8ab9192b102c9bb111a627ea666e4986" }, - "_source": "git://github.com/ai/visibility.js.git", + "_source": "https://github.com/ai/visibility.js.git", "_target": "~1.2.1", - "_originalSource": "visibilityjs", - "_direct": true + "_originalSource": "visibilityjs" }
\ No newline at end of file diff --git a/libs/bower_components/visibilityjs/ChangeLog.md b/libs/bower_components/visibilityjs/ChangeLog.md index 5aa61359ac..9b6020c012 100644 --- a/libs/bower_components/visibilityjs/ChangeLog.md +++ b/libs/bower_components/visibilityjs/ChangeLog.md @@ -1,3 +1,10 @@ +### 1.2.3 “Vanguard 3, 300 years” +* Fix Rails support by @dimko. + +### 1.2.2 “Luna 2, impact” +* Fix Sprockets 3 support by Waseem Sadiq. +* Add Component support by Mitchel Kelonye. + ### 1.2.1 “Discoverer 6, again” * Fix Bower config by Misha Ponizil. diff --git a/libs/bower_components/visibilityjs/README.md b/libs/bower_components/visibilityjs/README.md index 3f072be38f..17ea5a71a0 100644 --- a/libs/bower_components/visibilityjs/README.md +++ b/libs/bower_components/visibilityjs/README.md @@ -1,32 +1,32 @@ -# Visibility.js +# Visibility.js [![Build Status](https://travis-ci.org/ai/visibilityjs.svg)](https://travis-ci.org/ai/visibilityjs) <img align="right" width="100" src="http://ai.github.io/visibilityjs/logo.svg" title="Visibility.js logo by Eugenia Tuchapets"> Visibility.js is a wrapper for the [Page Visibility API]. It hides vendor prefixes and adds high level functions. -Page Visibility API allows you to determine whether your web page is visible to -a user, is hidden in background tab or is prerendering. It allows you to use +Page Visibility API allows you to determine whether your web page is either visible to +a user or hidden in background tab or prerendering. It allows you to use the page visibility state in JavaScript logic and improve browser performance by disabling unnecessary timers and AJAX requests, or improve user interface experience (for example, by stopping video playback or slideshow when user switches to another browser tab). Moreover, you can detect if the browser is just [prerendering] the page while -the user has not still opened the link, and don’t count this as a visit in your +the user has still not opened the link, and don’t count this as a visit in your analytics module, or do not run heavy calculations or other actions which will disable the prerendering. Page Visibility API is [natively supported] by all browsers. For old browsers you can use `lib/visibility.fallback.js` with focus/blur hack (note that this -hack have issue, that document become to be hidden, when browser just -lose focus, but still visible for user). +hack has an issue: when browser just lose focus but still visible for user, its state will change to [hidden]). -Sponsored by [Evil Martians]. +<a href="https://evilmartians.com/?utm_source=visibilityjs"> +<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54"> +</a> [Page Visibility API]: http://www.w3.org/TR/page-visibility/ [prerendering]: http://code.google.com/chrome/whitepapers/prerender.html [natively supported]: http://caniuse.com/pagevisibility -[Evil Martians]: http://evilmartians.com/ ## Translations @@ -40,7 +40,7 @@ Currently the Page Visibility API supports three visibility states: * `visible`: user has opened the page and works within it. * `hidden`: user has switched to another tab or minimized browser window. * `prerender`: browser is just prerendering a page which may possibly be opened - by the user to make the apparent loading time lesser. + by the user to make the apparent loading time smaller. ## Timers @@ -69,7 +69,7 @@ Visibility.every(minute, 5 * minute, function () { ``` `Visibility.every` returns a timer identifier, much like the `setInterval` -function. It cannot be passed to `clearInterval`, through, and you should use +function. However, it cannot be passed to `clearInterval`, and you should use `Visibility.stop(id)` to stop the timer. ```js @@ -88,7 +88,7 @@ both the hidden and visible pages. ## Initializers -In another common use case you need to execute some actions upon a switch to +Another common use case is when you need to execute some actions upon a switch to particular visibility state. ### Waiting until the page becomes visible @@ -98,7 +98,7 @@ visible now, it will run `callback`, otherwise it will wait until state changes to `visible`, and then run `callback`. For example, let’s show an animated notification only when the page is visible, -so if an user opens a page in the background, the animation will delay until +so if some user opens a page in the background, the animation will delay until the page becomes visible, i.e. until the user has switched to a tab with the page: @@ -116,7 +116,7 @@ will run the `callback` immediately. A web developer can hint a browser (using Prerendering API) that an user is likely to click on some link (i.e. on a “Next” link in a multi-page article), and the browser then may prefetch and prerender the page, so that the user will -not wait after actually going via the like. +not wait after actually going via the link. But you may not want to count the browser prerendering a page as a visitor in your analytics system. Moreover, the browser will disable prerendering if you @@ -280,15 +280,6 @@ For Ruby on Rails you can use gem for Assets Pipeline. #= require visibility.core ``` -### CDN - -If you don’t use any assets packaging manager use [cdnjs](http://cdnjs.com/). -Add to your site: - -```html -<script src="//cdnjs.cloudflare.com/ajax/libs/visibility.js/1.2.0/visibility.min.js"></script> -``` - ### Other If you need just a files, you can take already minified packages from diff --git a/libs/bower_components/visibilityjs/bower.json b/libs/bower_components/visibilityjs/bower.json index bfcf95e48f..d7c435f570 100644 --- a/libs/bower_components/visibilityjs/bower.json +++ b/libs/bower_components/visibilityjs/bower.json @@ -1,6 +1,6 @@ { "name": "visibilityjs", - "version": "1.2.1", + "version": "1.2.3", "homepage": "https://github.com/ai/visibilityjs", "authors": ["Andrey A.I. Sitnik <andrey@sitnik.ru>"], "description": "Wrapper for the Page Visibility API", diff --git a/libs/bower_components/visibilityjs/component.json b/libs/bower_components/visibilityjs/component.json new file mode 100644 index 0000000000..aa05949c87 --- /dev/null +++ b/libs/bower_components/visibilityjs/component.json @@ -0,0 +1,14 @@ +{ + "name": "visibilityjs", + "version": "1.2.3", + "homepage": "https://github.com/ai/visibilityjs", + "authors": ["Andrey A.I. Sitnik <andrey@sitnik.ru>"], + "description": "Wrapper for the Page Visibility API", + "license": "MIT", + "main": "index.js", + "scripts": [ + "index.js", + "lib/visibility.core.js", + "lib/visibility.timers.js" + ] +} diff --git a/libs/bower_components/visibilityjs/logo.svg b/libs/bower_components/visibilityjs/logo.svg index 6ee7babf47..772fb61318 100644 --- a/libs/bower_components/visibilityjs/logo.svg +++ b/libs/bower_components/visibilityjs/logo.svg @@ -1,19 +1 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="120px" width="100px" y="0px" x="0px" viewBox="0 0 100 120"> - <path d="M49.712,108.06c-7.041,0.438-23.017-13.789-31.736-29.328s-4.818-55.592-2.983-57.7,12.849-8.098,34.718-8.098,32.883,5.691,34.718,8.098,5.736,42.46-2.983,58-24.693,29.768-31.734,29.328z" stroke="#000" stroke-width="2" fill="#FFF"/> - <path d="M95.154,36.153s-8.494-7.602-18.972-7.602-18.972,7.602-18.972,7.602,8.494,7.743,18.972,7.743,18.972-7.743,18.972-7.743z" stroke="#600" stroke-width="2" fill="#FFF"/> - <path d="M95.284,36.008l0.161,0.144-0.159,0.145c-0.086,0.078-8.67,7.794-19.103,7.794s-19.017-7.716-19.103-7.794l-0.159-0.145,0.161-0.144c0.085-0.076,8.67-7.652,19.102-7.652,10.43,0,19.015,7.575,19.1,7.652zm-19.101,7.033c9.486,0,16.938-6.327,18.174-7.387-1.24-1.045-8.686-6.908-18.174-6.908-9.484,0-16.899,5.83-18.14,6.875,1.236,1.06,8.65,7.42,18.14,7.42z" stroke="#600" stroke-width="2" fill="#FFF"/> - <path d="M95.154,58.073s-8.494-7.602-18.972-7.602-18.972,7.602-18.972,7.602,8.494,7.743,18.972,7.743,18.972-7.743,18.972-7.743z" stroke="#600" stroke-width="2" fill="#FFF"/> - <path d="M95.284,57.928l0.161,0.144-0.159,0.145c-0.086,0.078-8.67,7.794-19.103,7.794s-19.017-7.716-19.103-7.794l-0.159-0.145,0.161-0.144c0.085-0.076,8.67-7.652,19.102-7.652,10.43,0,19.015,7.575,19.1,7.652zm-19.101,7.033c9.486,0,16.938-6.327,18.174-7.387-1.24-1.045-8.686-6.908-18.174-6.908-9.484,0-16.899,5.83-18.14,6.875,1.236,1.061,8.65,7.42,18.14,7.42z" stroke="#600" stroke-width="2" fill="#FFF"/> - <path d="M94.864,80.282s-8.494-7.602-18.972-7.602-18.972,7.602-18.972,7.602,8.494,7.743,18.972,7.743,18.972-7.743,18.972-7.743z" stroke="#600" stroke-width="2" fill="#FFF"/> - <path d="M94.994,80.136l0.161,0.144-0.159,0.145c-0.086,0.078-8.67,7.794-19.103,7.794s-19.017-7.716-19.103-7.794l-0.159-0.145,0.161-0.144c0.085-0.076,8.67-7.652,19.102-7.652,10.43,0.001,19.014,7.576,19.1,7.652zm-19.102,7.034c9.486,0,16.938-6.327,18.174-7.387-1.24-1.045-8.686-6.908-18.174-6.908-9.484,0-16.899,5.83-18.14,6.875,1.236,1.06,8.65,7.42,18.14,7.42z" stroke="#600" stroke-width="2" fill="#FFF"/> - <path d="M44.126,36.858s-8.858,7.691-19.785,7.691-19.786-7.691-19.786-7.691,8.858-7.691,19.785-7.691,19.786,7.691,19.786,7.691z" stroke="#600" stroke-width="2" fill="#FFF"/> - <circle cy="36.748" cx="24.34" r="6.861" fill="#600"/> - <circle cy="36.858" cx="24.34" r="3.523" fill="#FFF"/> - <path d="M44.126,58.398s-8.858,7.691-19.785,7.691-19.786-7.691-19.786-7.691,8.858-7.691,19.785-7.691,19.786,7.691,19.786,7.691z" stroke="#600" stroke-width="2" fill="#FFF"/> - <circle cy="58.287" cx="24.34" r="6.861" fill="#600"/> - <circle cy="58.398" cx="24.34" r="3.523" fill="#FFF"/> - <path d="M44.126,80.109s-8.858,7.691-19.785,7.691-19.786-7.691-19.786-7.691,8.858-7.691,19.785-7.691,19.786,7.691,19.786,7.691z" stroke="#600" stroke-width="2" fill="#FFF"/> - <circle cy="79.998" cx="24.34" r="6.861" fill="#600"/> - <circle cy="80.109" cx="24.34" r="3.523" fill="#FFF"/> -</svg> +<svg xmlns="http://www.w3.org/2000/svg" viewBox="34 -44 100 120"><path fill="#FFF" stroke="#000" stroke-width="2" d="M83.7 64.1c-7.1 0-23-13.8-31.7-29.3S47.2-20.9 49-23c1.8-2.1 12.8-8.1 34.7-8.1s32.9 5.7 34.7 8.1 5.7 42.5-3 58-24.6 29.1-31.7 29.1z"/><path fill="#FFF" stroke="#600" stroke-width="2" d="M129.2-7.8s-8.5-7.6-19-7.6-19 7.6-19 7.6 8.5 7.7 19 7.7 19-7.7 19-7.7z"/><path fill="#FFF" stroke="#600" stroke-width="2" d="M129.3-8l.2.1-.2.1c-.1.1-8.7 7.8-19.1 7.8s-19-7.7-19.1-7.8l-.2-.1.2-.1c.1-.1 8.7-7.7 19.1-7.7 10.4.1 19 7.6 19.1 7.7zm-19.1 7c9.5 0 16.9-6.3 18.2-7.4-1.2-1-8.7-6.9-18.2-6.9S93.3-9.5 92.1-8.4c1.2 1.1 8.6 7.4 18.1 7.4zM129.2 14.1s-8.5-7.6-19-7.6-19 7.6-19 7.6 8.5 7.7 19 7.7 19-7.7 19-7.7z"/><path fill="#FFF" stroke="#600" stroke-width="2" d="M129.3 13.9l.2.1-.2.1c-.1.1-8.7 7.8-19.1 7.8s-19-7.7-19.1-7.8l-.2-.1.2-.1c.1-.1 8.7-7.7 19.1-7.7 10.4.1 19 7.7 19.1 7.7zM110.2 21c9.5 0 16.9-6.3 18.2-7.4-1.2-1-8.7-6.9-18.2-6.9s-16.9 5.8-18.1 6.9c1.2 1 8.6 7.4 18.1 7.4zM128.9 36.3s-8.5-7.6-19-7.6-19 7.6-19 7.6 8.5 7.7 19 7.7 19-7.7 19-7.7z"/><path fill="#FFF" stroke="#600" stroke-width="2" d="M129 36.1l.2.1-.2.1c-.1.1-8.7 7.8-19.1 7.8s-19-7.7-19.1-7.8l-.2-.1.2-.1c.1-.1 8.7-7.7 19.1-7.7 10.4.1 19 7.7 19.1 7.7zm-19.1 7.1c9.5 0 16.9-6.3 18.2-7.4-1.2-1-8.7-6.9-18.2-6.9S93 34.7 91.8 35.8c1.2 1 8.6 7.4 18.1 7.4zM78.1-7.1S69.2.6 58.3.6 38.6-7.1 38.6-7.1s8.9-7.7 19.8-7.7 19.7 7.7 19.7 7.7z"/><circle fill="#600" cx="58.3" cy="-7.3" r="6.9"/><circle fill="#FFF" cx="58.3" cy="-7.1" r="3.5"/><path fill="#FFF" stroke="#600" stroke-width="2" d="M78.1 14.4s-8.9 7.7-19.8 7.7-19.8-7.7-19.8-7.7 8.9-7.7 19.8-7.7 19.8 7.7 19.8 7.7z"/><circle fill="#600" cx="58.3" cy="14.3" r="6.9"/><circle fill="#FFF" cx="58.3" cy="14.4" r="3.5"/><path fill="#FFF" stroke="#600" stroke-width="2" d="M78.1 36.1s-8.9 7.7-19.8 7.7-19.8-7.7-19.8-7.7 8.9-7.7 19.8-7.7 19.8 7.7 19.8 7.7z"/><circle fill="#600" cx="58.3" cy="36" r="6.9"/><circle fill="#FFF" cx="58.3" cy="36.1" r="3.5"/></svg>
\ No newline at end of file |