Skip to content

Fork of TabWindowVisibilityManager v1.0 by Jonathan Marzullo (jonathanfever@gmail.com)

License

Notifications You must be signed in to change notification settings

tatundkraft/TabWindowVisibilityManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TabWindowVisibilityManager

This plugin will listen when switching between browser tabs using the HTML5 Visibility API. And will also listen for browser window focus and blur events. Add your code to pause and resume when leaving and returning to your webpage.

Orignal by Jonathan Marzullo, Source

Usage

// TabWindowVisibilityManager
$(window).TabWindowVisibilityManager({
    onFocusCallback: function(){
           // resume() code goes here
    },
    onBlurCallback: function(){
           // pause() code goes here
    }
});

Install

Download from the project page.

Install with Bower: bower install --save tatundkraft/TabWindowVisibilityManager

About

Fork of TabWindowVisibilityManager v1.0 by Jonathan Marzullo (jonathanfever@gmail.com)

Resources

License

Stars

Watchers

Forks

Packages

No packages published