This commit is contained in:
Jan Broer
2015-08-02 20:59:11 +02:00
commit 64a9cbce2d
743 changed files with 233749 additions and 0 deletions

27
cps/static/js/main.js Executable file
View File

@ -0,0 +1,27 @@
$(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');
});