2015-08-02 18:59:11 +00:00
|
|
|
|
|
|
|
$(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 );
|
|
|
|
});
|
2016-03-27 21:36:51 +00:00
|
|
|
|
|
|
|
$('#sendbtn').click(function(){
|
|
|
|
var $this = $(this);
|
|
|
|
$this.text('Please wait...');
|
|
|
|
$this.addClass('disabled');
|
|
|
|
});
|
|
|
|
|
2015-08-02 18:59:11 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$(window).resize(function(event) {
|
|
|
|
$('.discover .row').isotope('reLayout');
|
|
|
|
});
|