Explorar o código

Add timeline.js

Daniel Supernault %!s(int64=7) %!d(string=hai) anos
pai
achega
993f831867
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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,
+  });
+});