Skip to content

Instantly share code, notes, and snippets.

@robflaherty
Created February 1, 2014 00:08
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 robflaherty/8745930 to your computer and use it in GitHub Desktop.
Save robflaherty/8745930 to your computer and use it in GitHub Desktop.
Change this:
$(function() {
$.scrollDepth();
});
To this:
jQuery(function() {
jQuery.scrollDepth();
});
@mmwine
Copy link

mmwine commented Feb 1, 2014

So - can I do this:

<script src="http://agoodtimewithwine.com/wp/wp-includes/js/jquery.scrolldepth.js"></script> <script> jQuery(function() { jQuery.scrollDepth({ elements: ['author-info']}); }); </script>

I want it to track when it gets to the end of the page (I dont know why - i saw someone else did it - so I want to see how it ends up )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment