Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- head.ready(function() {
- opts = {
- offset: '85%',
- continuous: 'true',
- onlyOnScroll: 'true'
- };
- //$('.share-this').on('click', function(e){
- $('.share-this').waypoint(function(event, direction) {
- if (direction === 'down') {
- var contentId = $('.share-this').attr('rel');
- var uri = $('.share-this').attr('rev');
- $.ajax({
- url: 'http://www.entendu.info/share',
- type: 'GET',
- dataType: 'html',
- data: {id:contentId, url:uri},
- complete: function(xhr, textStatus) {
- },
- success: function(data, textStatus, xhr) {
- $('#'+contentId).html(data);
- },
- error: function(xhr, textStatus, errorThrown) {
- }
- });
- }
- else {
- // do this on the way back up through the waypoint
- }
- //});
- }, opts);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement