You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
774 B
JavaScript
28 lines
774 B
JavaScript
10 years ago
|
|
||
|
|
||
|
$(function() {
|
||
|
$('.discover .row').isotope({
|
||
|
// options
|
||
|
itemSelector : '.book',
|
||
|
layoutMode : 'fitRows'
|
||
|
});
|
||
|
|
||
|
$('.load-more .row').infinitescroll({
|
||
|
debug: false,
|
||
|
navSelector : ".pagination",
|
||
|
// selector for the paged navigation (it will be hidden)
|
||
|
nextSelector : ".pagination a:last",
|
||
|
// selector for the NEXT link (to page 2)
|
||
|
itemSelector : ".load-more .book",
|
||
|
animate : true,
|
||
|
extraScrollPx: 300,
|
||
|
// selector for all items you'll retrieve
|
||
|
}, function(data){
|
||
|
$('.load-more .row').isotope( 'appended', $(data), null );
|
||
|
});
|
||
|
});
|
||
|
|
||
|
$(window).resize(function(event) {
|
||
|
$('.discover .row').isotope('reLayout');
|
||
|
});
|