Add timeline.js

This commit is contained in:
Daniel Supernault 2018-05-19 21:12:42 -06:00
parent 6c9675a74d
commit 993f831867
1 changed files with 9 additions and 0 deletions

9
resources/assets/js/timeline.js vendored Normal file
View File

@ -0,0 +1,9 @@
$(document).ready(function() {
$('.pagination').hide();
let elem = document.querySelector('.timeline-feed');
let infScroll = new InfiniteScroll( elem, {
path: '.pagination__next',
append: '.timeline-feed',
history: false,
});
});