GithubHelp home page GithubHelp logo

pagevisibilityevent.js's Introduction

PageVisibilityEvent.js Build Status

npm

PageVisibilityEvent.js is event dispatcher.

This module made of WebModule.

Documentation

Browser compatibility

Browser PageVisibilityEvent.on
Safari 6.1+
Chrome 33+
AOSP Browser 4.0+
Firefox
Edge
IE 10+

Browser, NW.js and Electron

<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/PageVisibilityEvent.js"></script>
<script>
if (PageVisibilityEvent.enable) {
    PageVisibilityEvent.on(function(hidden) {
        console.log(hidden ? "page hide"
                           : "page show");
    });
}
</script>

pagevisibilityevent.js's People

Contributors

uupaa avatar

Stargazers

 avatar Akihiro Oyamada avatar  avatar people-of-the-s avatar Sho Sato avatar  avatar  avatar Keiji Matsuzaki avatar HAKASHUN avatar Paul Young avatar hashrock avatar Toru Yamaguchi avatar sea_mountain avatar

Watchers

 avatar sea_mountain avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.