From 993f831867f512975bfb1b6daa59813554714582 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 19 May 2018 21:12:42 -0600 Subject: [PATCH] Add timeline.js --- resources/assets/js/timeline.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 resources/assets/js/timeline.js 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