瀏覽代碼

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