2017 © Pedro Peláez
 

yii2-extension yii2-page-visibility

JS plugin that enables reacting to changes in the visibility state of a webpage

image

peterfriz/yii2-page-visibility

JS plugin that enables reacting to changes in the visibility state of a webpage

  • Tuesday, April 19, 2016
  • by peterfriz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2-page-visibility

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)

Installation

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)

Usage

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');
    }
);

License

yii2-page-visibility is released under the BSD 3-Clause License. See the bundled LICENSE.md for details., (*9)

The Versions

19/04 2016

dev-master

9999999-dev https://github.com/peterfriz/yii2-page-visibility

JS plugin that enables reacting to changes in the visibility state of a webpage

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 page visibility