Skip to content

Instantly share code, notes, and snippets.

@simonista
Created September 17, 2012 20:28
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 simonista/3739578 to your computer and use it in GitHub Desktop.
Save simonista/3739578 to your computer and use it in GitHub Desktop.
function measureForTopicList() {
windowHeight = $(window).height();
if($after_topic_list.length > 0) {
afterTopicListTop = $after_topic_list.offset().top;
} else {
afterTopicListTop = windowHeight;
}
}
measureForTopicList();
setInterval(measureForTopicList, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment