diff --git a/resources/assets/js/timeline.js b/resources/assets/js/timeline.js new file mode 100644 index 000000000..02ffbb239 --- /dev/null +++ b/resources/assets/js/timeline.js @@ -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, + }); +}); \ No newline at end of file