dev-master
9999999-dev https://github.com/peterfriz/yii2-page-visibilityJS plugin that enables reacting to changes in the visibility state of a webpage
BSD 3-Clause
The Requires
extension yii2 page visibility
JS plugin that enables reacting to changes in the visibility state of a webpage
JS plugin that enables reacting to changes in the visibility state of a webpage., (*1)
This simple plugin wraps the Page Visibility functionality for a Yii2 application., (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
$ php composer.phar require peterfriz/yii2-page-visibility "dev-master"
or add, (*5)
"peterfriz/yii2-page-visibility": "dev-master"
to the require
section of your composer.json
file., (*6)
Enable the plugin in a view file:, (*7)
use peterfriz\pagevisibility\PageVisibilityAsset; PageVisibilityAsset::register($this);
React on visibilty changes in js:, (*8)
pageVisibility.init( function() { console.log('visible'); }, function() { console.log('hidden'); } );
yii2-page-visibility is released under the BSD 3-Clause License. See the bundled LICENSE.md
for details., (*9)
JS plugin that enables reacting to changes in the visibility state of a webpage
BSD 3-Clause
extension yii2 page visibility