ソースを参照

Add timeline.js

Daniel Supernault 7 年 前
コミット
993f831867
1 ファイル変更9 行追加0 行削除
  1. 9 0
      resources/assets/js/timeline.js

+ 9 - 0
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,
+  });
+});