Difference between revisions of "Template:Toronto/Javascript"

Line 6: Line 6:
 
});
 
});
  
 +
$(window).scroll(function() { 
 +
  if($(window).scrollTop() + $(window).height() == $(document).height()) {
 +
      alert("bottom!");
 +
  }
 +
});
  
 
</script>
 
</script>
 
</html>
 
</html>

Revision as of 20:19, 25 July 2016