Skip to content

Instantly share code, notes, and snippets.

@robotlolita
Created November 18, 2010 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robotlolita/705279 to your computer and use it in GitHub Desktop.
Save robotlolita/705279 to your computer and use it in GitHub Desktop.
var element = document.getElementById("sum-div");
(function() {
var timer_id;
function check_visible() {
// you have access to timer_id here :3
if (element.style.display != "none")
clearInterval(timer_id);
}
timer_id = setInterval(check_visible, 100);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment