{"size": 663, "ext": "js", "max_stars_repo_path": "src/jaymvc/wwwroot/js/Globals/70-jay.onvisible.js", "max_stars_repo_name": "unscrum/jaymvc", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/jaymvc/wwwroot/js/Globals/70-jay.onvisible.js", "max_issues_repo_name": "unscrum/jaymvc", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/jaymvc/wwwroot/js/Globals/70-jay.onvisible.js", "max_forks_repo_name": "unscrum/jaymvc", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.52, "max_line_length": 85, "alphanum_fraction": 0.5263951735}
﻿/*!
* jay.onvisible jQuery plugin
* Copyright 2011-2018 Jay Brummels
* Licensed under MIT (https://github.com/unscrum/jaymvc/LICENSE)
*/
(function ($, jay, window) {

    $(function() {
        window.setInterval(function() {

            $('.on-visible:visible').removeClass('on-visible').each(function() {
                var $t = $(this);
                var data = $t.data();
                log('triggering visibility action for', this, data.visibilityAction);
                if (data && data.visibilityAction) {
                    $t.doAction(data.visibilityAction);
                }
            });

        }, 200);
    });


})(jQuery, jay, window);
