var data_next = $(".previous-issue").attr("href");
var fetchDataNext = function() {
console.log(data_next);
return data_next;
}
mindful_matter.infinitescroll = function() {
if ($('.issue-container').length == 0) return false;
$('.issue-container').infinitescroll({
navSelector: ".navigation",
nextSelector: ".previous-issue",
itemSelector: ".issue",
extraScrollPx: 250,
path: function() {
return fetchDataNext();
},
loading: {
finished: undefined,
finishedMsg: "",
img: "data:image/gif;base64,R0lGODlhAQABAHAAACH5BAUAAAAALAAAAAABAAEAAAICRAEAOw==",
msg: null,
msgText: "",
selector: null,
speed: 'fast',
start: undefined
}
}, function(newElements, data, url) {
data_next = $(newElements).attr("data-next");
console.log(data_next);
if ($("[data-bg-image]") == 0) return false;
$("[data-bg-image]").each(function() {
var $this = $(this);
var img = $this.attr("data-bg-image");
$this.backstretch(img);
});
mindful_matter.masonry();
});
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…