0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
bonniescraftygifts.com
/
iFzj4
/
configCHM
/
Jump
/
0-aserty
/
beatlesmontreal.com
/
wp-contentebbd3f
/
plugins
/
wptouch-pro
/
themes
/
foundation
/
modules
/
infinite-scroll
/
[
Home
]
File: infinite-scroll.js
function wptouchFoundationInfiniteScrollReady() { var loadMoreLink = 'a.infinite-link'; jQuery( window ).scroll( function() { var actualLink = jQuery( loadMoreLink ); if ( actualLink.length ) { var currentPosition = jQuery( loadMoreLink ).offset(); var pixelsVisible = window.innerHeight - currentPosition.top + jQuery( window ).scrollTop(); if ( pixelsVisible > 100 & !jQuery( loadMoreLink ).hasClass( 'ajaxing' ) ) { jQuery( loadMoreLink ).addClass( 'ajaxing' ).text( wptouchFdn.ajaxLoading ).prepend( '<span class="spinner"></span>' ); jQuery( '.spinner' ).spin( 'tiny' ); var loadMoreURL = jQuery( loadMoreLink ).attr( 'rel' ); jQuery( loadMoreLink ).after( "<span class='ajax-target'></span>" ); jQuery( '.ajax-target' ).load( loadMoreURL + ' #content > div, #content .infinite-link', function() { jQuery( '.ajax-target' ).replaceWith( jQuery( this ).html() ); jQuery( '.ajaxing' ).animate( { height: 'toggle' }, 200, 'linear', function(){ jQuery( this ).remove(); } ); }); } } }); } jQuery( document ).ready( function() { wptouchFoundationInfiniteScrollReady(); });